Documentation
¶
Index ¶
- type Comments
- type CreateCommentRow
- type CreatePostRow
- type CreateTagRow
- type CreateUserRow
- type DBTX
- type GetCommentByIdRow
- type GetPopularPostsRow
- type GetPostByIdRow
- type GetPostsForTagRow
- type GetTagByIdRow
- type GetTagByNameRow
- type GetTagsForPostRow
- type GetUserByEmailRow
- type GetUserByIdRow
- type GetUserStatsRow
- type ListActiveUsersRow
- type ListCommentsByPostRow
- type ListCommentsByUserRow
- type ListPostsByUserRow
- type ListPostsRow
- type ListPublishedPostsRow
- type ListTagsRow
- type ListUsersRow
- type Posts
- type Querier
- type Queries
- func (q *Queries) AddTagToPost(ctx context.Context, arg1 *uuid.UUID, arg2 *uuid.UUID) (sql.Result, error)
- func (q *Queries) CreateComment(ctx context.Context, arg1 *uuid.UUID, arg2 *uuid.UUID, arg3 pgtype.Text) (CreateCommentRow, error)
- func (q *Queries) CreatePost(ctx context.Context, arg1 *uuid.UUID, arg2 pgtype.Text, arg3 pgtype.Text, ...) (CreatePostRow, error)
- func (q *Queries) CreateTag(ctx context.Context, arg1 pgtype.Text, arg2 pgtype.Text) (CreateTagRow, error)
- func (q *Queries) CreateUser(ctx context.Context, arg1 pgtype.Text, arg2 pgtype.Text, arg3 *[]byte, ...) (CreateUserRow, error)
- func (q *Queries) DeleteComment(ctx context.Context, arg1 uuid.UUID) (sql.Result, error)
- func (q *Queries) DeletePost(ctx context.Context, arg1 uuid.UUID) (sql.Result, error)
- func (q *Queries) DeleteTag(ctx context.Context, arg1 uuid.UUID) (sql.Result, error)
- func (q *Queries) DeleteUser(ctx context.Context, arg1 uuid.UUID) (sql.Result, error)
- func (q *Queries) GetCommentById(ctx context.Context, arg1 uuid.UUID) (GetCommentByIdRow, error)
- func (q *Queries) GetPopularPosts(ctx context.Context, arg1 pgtype.Int4) ([]GetPopularPostsRow, error)
- func (q *Queries) GetPostById(ctx context.Context, arg1 uuid.UUID) (GetPostByIdRow, error)
- func (q *Queries) GetPostsForTag(ctx context.Context, arg1 *uuid.UUID) ([]GetPostsForTagRow, error)
- func (q *Queries) GetTagById(ctx context.Context, arg1 uuid.UUID) (GetTagByIdRow, error)
- func (q *Queries) GetTagByName(ctx context.Context, arg1 pgtype.Text) (GetTagByNameRow, error)
- func (q *Queries) GetTagsForPost(ctx context.Context, arg1 *uuid.UUID) ([]GetTagsForPostRow, error)
- func (q *Queries) GetUserByEmail(ctx context.Context, arg1 pgtype.Text) (GetUserByEmailRow, error)
- func (q *Queries) GetUserById(ctx context.Context, arg1 uuid.UUID) (GetUserByIdRow, error)
- func (q *Queries) GetUserStats(ctx context.Context, arg1 uuid.UUID) (GetUserStatsRow, error)
- func (q *Queries) IncrementPostViews(ctx context.Context, arg1 uuid.UUID) (sql.Result, error)
- func (q *Queries) LikeComment(ctx context.Context, arg1 uuid.UUID) (sql.Result, error)
- func (q *Queries) ListActiveUsers(ctx context.Context) ([]ListActiveUsersRow, error)
- func (q *Queries) ListCommentsByPost(ctx context.Context, arg1 *uuid.UUID) ([]ListCommentsByPostRow, error)
- func (q *Queries) ListCommentsByUser(ctx context.Context, arg1 *uuid.UUID) ([]ListCommentsByUserRow, error)
- func (q *Queries) ListPosts(ctx context.Context) ([]ListPostsRow, error)
- func (q *Queries) ListPostsByUser(ctx context.Context, arg1 *uuid.UUID) ([]ListPostsByUserRow, error)
- func (q *Queries) ListPublishedPosts(ctx context.Context) ([]ListPublishedPostsRow, error)
- func (q *Queries) ListTags(ctx context.Context) ([]ListTagsRow, error)
- func (q *Queries) ListUsers(ctx context.Context) ([]ListUsersRow, error)
- func (q *Queries) RemoveTagFromPost(ctx context.Context, arg1 *uuid.UUID, arg2 *uuid.UUID) (sql.Result, error)
- func (q *Queries) SearchPostsByCategory(ctx context.Context, arg1 pgtype.Int4) ([]SearchPostsByCategoryRow, error)
- func (q *Queries) SearchUsersByMetadata(ctx context.Context, arg1 pgtype.Int4) ([]SearchUsersByMetadataRow, error)
- func (q *Queries) SearchUsersByTag(ctx context.Context, arg1 pgtype.Int4) ([]SearchUsersByTagRow, error)
- func (q *Queries) UpdateComment(ctx context.Context, arg2 pgtype.Text, arg1 uuid.UUID) (UpdateCommentRow, error)
- func (q *Queries) UpdatePost(ctx context.Context, arg2 pgtype.Text, arg3 pgtype.Text, arg4 pgtype.Text, ...) (UpdatePostRow, error)
- func (q *Queries) UpdateTag(ctx context.Context, arg2 pgtype.Text, arg3 pgtype.Text, arg1 uuid.UUID) (UpdateTagRow, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg2 pgtype.Text, arg3 pgtype.Text, arg4 *[]byte, ...) (UpdateUserRow, error)
- type QueryResult
- type SearchPostsByCategoryRow
- type SearchUsersByMetadataRow
- type SearchUsersByTagRow
- type Tags
- type UpdateCommentRow
- type UpdatePostRow
- type UpdateTagRow
- type UpdateUserRow
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCommentRow ¶
type CreatePostRow ¶
type CreateTagRow ¶
type CreateUserRow ¶
type GetCommentByIdRow ¶
type GetPopularPostsRow ¶
type GetPostByIdRow ¶
type GetPostsForTagRow ¶
type GetTagByIdRow ¶
type GetTagByNameRow ¶
type GetTagsForPostRow ¶
type GetUserByEmailRow ¶
type GetUserByIdRow ¶
type GetUserStatsRow ¶
type ListActiveUsersRow ¶
type ListCommentsByPostRow ¶
type ListCommentsByUserRow ¶
type ListPostsByUserRow ¶
type ListPostsRow ¶
type ListPublishedPostsRow ¶
type ListTagsRow ¶
type ListUsersRow ¶
type Querier ¶
type Querier interface {
AddTagToPost(ctx context.Context, arg1 *uuid.UUID, arg2 *uuid.UUID) (sql.Result, error)
CreateComment(ctx context.Context, arg1 *uuid.UUID, arg2 *uuid.UUID, arg3 pgtype.Text) (CreateCommentRow, error)
CreatePost(ctx context.Context, arg1 *uuid.UUID, arg2 pgtype.Text, arg3 pgtype.Text, arg4 pgtype.Text, arg5 pgtype.Bool, arg52 *time.Time) (CreatePostRow, error)
CreateTag(ctx context.Context, arg1 pgtype.Text, arg2 pgtype.Text) (CreateTagRow, error)
CreateUser(ctx context.Context, arg1 pgtype.Text, arg2 pgtype.Text, arg3 *[]byte, arg4 pgtype.Text) (CreateUserRow, error)
DeleteComment(ctx context.Context, arg1 uuid.UUID) (sql.Result, error)
DeletePost(ctx context.Context, arg1 uuid.UUID) (sql.Result, error)
DeleteTag(ctx context.Context, arg1 uuid.UUID) (sql.Result, error)
DeleteUser(ctx context.Context, arg1 uuid.UUID) (sql.Result, error)
GetCommentById(ctx context.Context, arg1 uuid.UUID) (GetCommentByIdRow, error)
GetPopularPosts(ctx context.Context, arg1 pgtype.Int4) ([]GetPopularPostsRow, error)
GetPostById(ctx context.Context, arg1 uuid.UUID) (GetPostByIdRow, error)
GetPostsForTag(ctx context.Context, arg1 *uuid.UUID) ([]GetPostsForTagRow, error)
GetTagById(ctx context.Context, arg1 uuid.UUID) (GetTagByIdRow, error)
GetTagByName(ctx context.Context, arg1 pgtype.Text) (GetTagByNameRow, error)
GetTagsForPost(ctx context.Context, arg1 *uuid.UUID) ([]GetTagsForPostRow, error)
GetUserByEmail(ctx context.Context, arg1 pgtype.Text) (GetUserByEmailRow, error)
GetUserById(ctx context.Context, arg1 uuid.UUID) (GetUserByIdRow, error)
GetUserStats(ctx context.Context, arg1 uuid.UUID) (GetUserStatsRow, error)
IncrementPostViews(ctx context.Context, arg1 uuid.UUID) (sql.Result, error)
LikeComment(ctx context.Context, arg1 uuid.UUID) (sql.Result, error)
ListActiveUsers(ctx context.Context) ([]ListActiveUsersRow, error)
ListCommentsByPost(ctx context.Context, arg1 *uuid.UUID) ([]ListCommentsByPostRow, error)
ListCommentsByUser(ctx context.Context, arg1 *uuid.UUID) ([]ListCommentsByUserRow, error)
ListPosts(ctx context.Context) ([]ListPostsRow, error)
ListPostsByUser(ctx context.Context, arg1 *uuid.UUID) ([]ListPostsByUserRow, error)
ListPublishedPosts(ctx context.Context) ([]ListPublishedPostsRow, error)
ListTags(ctx context.Context) ([]ListTagsRow, error)
ListUsers(ctx context.Context) ([]ListUsersRow, error)
RemoveTagFromPost(ctx context.Context, arg1 *uuid.UUID, arg2 *uuid.UUID) (sql.Result, error)
SearchPostsByCategory(ctx context.Context, arg1 pgtype.Int4) ([]SearchPostsByCategoryRow, error)
SearchUsersByMetadata(ctx context.Context, arg1 pgtype.Int4) ([]SearchUsersByMetadataRow, error)
SearchUsersByTag(ctx context.Context, arg1 pgtype.Int4) ([]SearchUsersByTagRow, error)
UpdateComment(ctx context.Context, arg2 pgtype.Text, arg1 uuid.UUID) (UpdateCommentRow, error)
UpdatePost(ctx context.Context, arg2 pgtype.Text, arg3 pgtype.Text, arg4 pgtype.Text, arg5 pgtype.Bool, arg52 pgtype.Int4, arg1 uuid.UUID) (UpdatePostRow, error)
UpdateTag(ctx context.Context, arg2 pgtype.Text, arg3 pgtype.Text, arg1 uuid.UUID) (UpdateTagRow, error)
UpdateUser(ctx context.Context, arg2 pgtype.Text, arg3 pgtype.Text, arg4 *[]byte, arg5 pgtype.Text, arg1 uuid.UUID) (UpdateUserRow, error)
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddTagToPost ¶
func (*Queries) CreateComment ¶
func (*Queries) CreatePost ¶
func (*Queries) CreateUser ¶
func (*Queries) DeleteComment ¶
func (*Queries) DeletePost ¶
func (*Queries) DeleteUser ¶
func (*Queries) GetCommentById ¶
func (*Queries) GetPopularPosts ¶
func (*Queries) GetPostById ¶
func (*Queries) GetPostsForTag ¶
func (*Queries) GetTagById ¶
func (*Queries) GetTagByName ¶
func (*Queries) GetTagsForPost ¶
func (*Queries) GetUserByEmail ¶
func (*Queries) GetUserById ¶
func (*Queries) GetUserStats ¶
func (*Queries) IncrementPostViews ¶
func (*Queries) LikeComment ¶
func (*Queries) ListActiveUsers ¶
func (q *Queries) ListActiveUsers(ctx context.Context) ([]ListActiveUsersRow, error)
func (*Queries) ListCommentsByPost ¶
func (*Queries) ListCommentsByUser ¶
func (*Queries) ListPosts ¶
func (q *Queries) ListPosts(ctx context.Context) ([]ListPostsRow, error)
func (*Queries) ListPostsByUser ¶
func (*Queries) ListPublishedPosts ¶
func (q *Queries) ListPublishedPosts(ctx context.Context) ([]ListPublishedPostsRow, error)
func (*Queries) ListUsers ¶
func (q *Queries) ListUsers(ctx context.Context) ([]ListUsersRow, error)
func (*Queries) RemoveTagFromPost ¶
func (*Queries) SearchPostsByCategory ¶
func (*Queries) SearchUsersByMetadata ¶
func (*Queries) SearchUsersByTag ¶
func (*Queries) UpdateComment ¶
func (*Queries) UpdatePost ¶
type QueryResult ¶
type SearchUsersByTagRow ¶
type UpdateCommentRow ¶
type UpdatePostRow ¶
type UpdateTagRow ¶
type UpdateUserRow ¶
Source Files
¶
- helpers.gen.go
- models.gen.go
- querier.gen.go
- query_add_tag_to_post.go
- query_create_comment.go
- query_create_post.go
- query_create_tag.go
- query_create_user.go
- query_delete_comment.go
- query_delete_post.go
- query_delete_tag.go
- query_delete_user.go
- query_get_comment_by_i_d.go
- query_get_popular_posts.go
- query_get_post_by_i_d.go
- query_get_posts_for_tag.go
- query_get_tag_by_i_d.go
- query_get_tag_by_name.go
- query_get_tags_for_post.go
- query_get_user_by_email.go
- query_get_user_by_i_d.go
- query_get_user_stats.go
- query_increment_post_views.go
- query_like_comment.go
- query_list_active_users.go
- query_list_comments_by_post.go
- query_list_comments_by_user.go
- query_list_posts.go
- query_list_posts_by_user.go
- query_list_published_posts.go
- query_list_tags.go
- query_list_users.go
- query_remove_tag_from_post.go
- query_search_posts_by_category.go
- query_search_users_by_metadata.go
- query_search_users_by_tag.go
- query_update_comment.go
- query_update_post.go
- query_update_tag.go
- query_update_user.go
Click to show internal directories.
Click to hide internal directories.