journey: github.com/OlafRadicke/journey/database Index | Files

package database

import "github.com/OlafRadicke/journey/database"

Index

Package Files

deletion.go initialization.go insertion.go retrieval.go update.go

func DeletePostById Uses

func DeletePostById(id int64) error

func DeletePostTagsForPostId Uses

func DeletePostTagsForPostId(post_id int64) error

func Initialize Uses

func Initialize() error

func InsertPost Uses

func InsertPost(title []byte, slug string, markdown []byte, html []byte, featured bool, isPage bool, published bool, image []byte, created_at time.Time, created_by int64) (int64, error)

func InsertPostTag Uses

func InsertPostTag(post_id int64, tag_id int64) error

func InsertRoleUser Uses

func InsertRoleUser(role_id int, user_id int64) error

func InsertTag Uses

func InsertTag(name []byte, slug string, created_at time.Time, created_by int64) (int64, error)

func InsertUser Uses

func InsertUser(name []byte, slug string, password string, email []byte, image []byte, cover []byte, created_at time.Time, created_by int64) (int64, error)

func RetrieveActiveTheme Uses

func RetrieveActiveTheme() (*string, error)

func RetrieveBlog Uses

func RetrieveBlog() (*structure.Blog, error)

func RetrieveHashedPasswordForUser Uses

func RetrieveHashedPasswordForUser(name []byte) ([]byte, error)

func RetrieveNumberOfPosts Uses

func RetrieveNumberOfPosts() (int64, error)

func RetrieveNumberOfPostsByTag Uses

func RetrieveNumberOfPostsByTag(tag_id int64) (int64, error)

func RetrieveNumberOfPostsByUser Uses

func RetrieveNumberOfPostsByUser(user_id int64) (int64, error)

func RetrievePostById Uses

func RetrievePostById(id int64) (*structure.Post, error)

func RetrievePostBySlug Uses

func RetrievePostBySlug(slug string) (*structure.Post, error)

func RetrievePostsByTag Uses

func RetrievePostsByTag(tag_id int64, limit int64, offset int64) ([]structure.Post, error)

func RetrievePostsByUser Uses

func RetrievePostsByUser(user_id int64, limit int64, offset int64) ([]structure.Post, error)

func RetrievePostsForApi Uses

func RetrievePostsForApi(limit int64, offset int64) ([]structure.Post, error)

func RetrievePostsForIndex Uses

func RetrievePostsForIndex(limit int64, offset int64) ([]structure.Post, error)

func RetrieveTag Uses

func RetrieveTag(tagId int64) (*structure.Tag, error)

func RetrieveTagBySlug Uses

func RetrieveTagBySlug(slug string) (*structure.Tag, error)

func RetrieveTagIdBySlug Uses

func RetrieveTagIdBySlug(slug string) (int64, error)

func RetrieveTags Uses

func RetrieveTags(postId int64) ([]structure.Tag, error)

func RetrieveUser Uses

func RetrieveUser(id int64) (*structure.User, error)

func RetrieveUserByName Uses

func RetrieveUserByName(name []byte) (*structure.User, error)

func RetrieveUserBySlug Uses

func RetrieveUserBySlug(slug string) (*structure.User, error)

func RetrieveUsersCount Uses

func RetrieveUsersCount() int

func UpdateActiveTheme Uses

func UpdateActiveTheme(activeTheme string, updated_at time.Time, updated_by int64) error

func UpdateLastLogin Uses

func UpdateLastLogin(date time.Time, userId int64) error

func UpdatePost Uses

func UpdatePost(id int64, title []byte, slug string, markdown []byte, html []byte, featured bool, isPage bool, published bool, image []byte, updated_at time.Time, updated_by int64) error

func UpdateSettings Uses

func UpdateSettings(title []byte, description []byte, logo []byte, cover []byte, postsPerPage int64, activeTheme string, navigation []byte, updated_at time.Time, updated_by int64) error

func UpdateUser Uses

func UpdateUser(id int64, name []byte, slug string, email []byte, image []byte, cover []byte, bio []byte, website []byte, location []byte, updated_at time.Time, updated_by int64) error

func UpdateUserPassword Uses

func UpdateUserPassword(id int64, password string, updated_at time.Time, updated_by int64) error

Package database imports 9 packages (graph). Updated 2017-10-23. Refresh now. Tools for package owners.