Documentation
¶
Index ¶
- type AddTagToPostParams
- type Comments
- type CreateCommentParams
- type CreateCommentRow
- type CreatePostParams
- type CreatePostRow
- type CreateTagParams
- type CreateTagRow
- type CreateUserParams
- 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, arg AddTagToPostParams) error
- func (q *Queries) CreateComment(ctx context.Context, arg CreateCommentParams) (CreateCommentRow, error)
- func (q *Queries) CreatePost(ctx context.Context, arg CreatePostParams) (CreatePostRow, error)
- func (q *Queries) CreateTag(ctx context.Context, arg CreateTagParams) (CreateTagRow, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (CreateUserRow, error)
- func (q *Queries) DeleteComment(ctx context.Context, id uuid.UUID) error
- func (q *Queries) DeletePost(ctx context.Context, id uuid.UUID) error
- func (q *Queries) DeleteTag(ctx context.Context, id uuid.UUID) error
- func (q *Queries) DeleteUser(ctx context.Context, id uuid.UUID) error
- func (q *Queries) GetCommentById(ctx context.Context, id uuid.UUID) (GetCommentByIdRow, error)
- func (q *Queries) GetPopularPosts(ctx context.Context, limit any) ([]GetPopularPostsRow, error)
- func (q *Queries) GetPostById(ctx context.Context, id uuid.UUID) (GetPostByIdRow, error)
- func (q *Queries) GetPostsForTag(ctx context.Context, tagId *uuid.UUID) ([]GetPostsForTagRow, error)
- func (q *Queries) GetTagById(ctx context.Context, id uuid.UUID) (GetTagByIdRow, error)
- func (q *Queries) GetTagByName(ctx context.Context, tagname pgtype.Text) (GetTagByNameRow, error)
- func (q *Queries) GetTagsForPost(ctx context.Context, postId *uuid.UUID) ([]GetTagsForPostRow, error)
- func (q *Queries) GetUserByEmail(ctx context.Context, useremail pgtype.Text) (GetUserByEmailRow, error)
- func (q *Queries) GetUserById(ctx context.Context, id uuid.UUID) (GetUserByIdRow, error)
- func (q *Queries) GetUserStats(ctx context.Context, id uuid.UUID) (GetUserStatsRow, error)
- func (q *Queries) IncrementPostViews(ctx context.Context, id uuid.UUID) error
- func (q *Queries) LikeComment(ctx context.Context, id uuid.UUID) error
- func (q *Queries) ListActiveUsers(ctx context.Context) ([]ListActiveUsersRow, error)
- func (q *Queries) ListCommentsByPost(ctx context.Context, postId *uuid.UUID) ([]ListCommentsByPostRow, error)
- func (q *Queries) ListCommentsByUser(ctx context.Context, userId *uuid.UUID) ([]ListCommentsByUserRow, error)
- func (q *Queries) ListPosts(ctx context.Context) ([]ListPostsRow, error)
- func (q *Queries) ListPostsByUser(ctx context.Context, userId *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, arg RemoveTagFromPostParams) error
- func (q *Queries) SearchPostsByCategory(ctx context.Context, any any) ([]SearchPostsByCategoryRow, error)
- func (q *Queries) SearchUsersByMetadata(ctx context.Context, p any) ([]SearchUsersByMetadataRow, error)
- func (q *Queries) SearchUsersByTag(ctx context.Context, any any) ([]SearchUsersByTagRow, error)
- func (q *Queries) UpdateComment(ctx context.Context, arg UpdateCommentParams) (UpdateCommentRow, error)
- func (q *Queries) UpdatePost(ctx context.Context, arg UpdatePostParams) (UpdatePostRow, error)
- func (q *Queries) UpdateTag(ctx context.Context, arg UpdateTagParams) (UpdateTagRow, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (UpdateUserRow, error)
- func (q *Queries) WithTx(tx DBTX) *Queries
- type QueryResult
- type RemoveTagFromPostParams
- type SearchPostsByCategoryRow
- type SearchUsersByMetadataRow
- type SearchUsersByTagRow
- type Tags
- type UpdateCommentParams
- type UpdateCommentRow
- type UpdatePostParams
- type UpdatePostRow
- type UpdateTagParams
- type UpdateTagRow
- type UpdateUserParams
- type UpdateUserRow
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddTagToPostParams ¶ added in v0.11.0
type CreateCommentParams ¶ added in v0.11.0
type CreateCommentRow ¶
type CreatePostParams ¶ added in v0.11.0
type CreatePostRow ¶
type CreateTagParams ¶ added in v0.11.0
type CreateTagRow ¶
type CreateUserParams ¶ added in v0.11.0
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, arg AddTagToPostParams) error
CreateComment(ctx context.Context, arg CreateCommentParams) (CreateCommentRow, error)
CreatePost(ctx context.Context, arg CreatePostParams) (CreatePostRow, error)
CreateTag(ctx context.Context, arg CreateTagParams) (CreateTagRow, error)
CreateUser(ctx context.Context, arg CreateUserParams) (CreateUserRow, error)
DeleteComment(ctx context.Context, id uuid.UUID) error
DeletePost(ctx context.Context, id uuid.UUID) error
DeleteTag(ctx context.Context, id uuid.UUID) error
DeleteUser(ctx context.Context, id uuid.UUID) error
GetCommentById(ctx context.Context, id uuid.UUID) (GetCommentByIdRow, error)
GetPopularPosts(ctx context.Context, limit any) ([]GetPopularPostsRow, error)
GetPostById(ctx context.Context, id uuid.UUID) (GetPostByIdRow, error)
GetPostsForTag(ctx context.Context, tagId *uuid.UUID) ([]GetPostsForTagRow, error)
GetTagById(ctx context.Context, id uuid.UUID) (GetTagByIdRow, error)
GetTagByName(ctx context.Context, tagname pgtype.Text) (GetTagByNameRow, error)
GetTagsForPost(ctx context.Context, postId *uuid.UUID) ([]GetTagsForPostRow, error)
GetUserByEmail(ctx context.Context, useremail pgtype.Text) (GetUserByEmailRow, error)
GetUserById(ctx context.Context, id uuid.UUID) (GetUserByIdRow, error)
GetUserStats(ctx context.Context, id uuid.UUID) (GetUserStatsRow, error)
IncrementPostViews(ctx context.Context, id uuid.UUID) error
LikeComment(ctx context.Context, id uuid.UUID) error
ListActiveUsers(ctx context.Context) ([]ListActiveUsersRow, error)
ListCommentsByPost(ctx context.Context, postId *uuid.UUID) ([]ListCommentsByPostRow, error)
ListCommentsByUser(ctx context.Context, userId *uuid.UUID) ([]ListCommentsByUserRow, error)
ListPosts(ctx context.Context) ([]ListPostsRow, error)
ListPostsByUser(ctx context.Context, userId *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, arg RemoveTagFromPostParams) error
SearchPostsByCategory(ctx context.Context, any any) ([]SearchPostsByCategoryRow, error)
SearchUsersByMetadata(ctx context.Context, p any) ([]SearchUsersByMetadataRow, error)
SearchUsersByTag(ctx context.Context, any any) ([]SearchUsersByTagRow, error)
UpdateComment(ctx context.Context, arg UpdateCommentParams) (UpdateCommentRow, error)
UpdatePost(ctx context.Context, arg UpdatePostParams) (UpdatePostRow, error)
UpdateTag(ctx context.Context, arg UpdateTagParams) (UpdateTagRow, error)
UpdateUser(ctx context.Context, arg UpdateUserParams) (UpdateUserRow, error)
WithTx(tx DBTX) *Queries
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddTagToPost ¶
func (q *Queries) AddTagToPost(ctx context.Context, arg AddTagToPostParams) error
func (*Queries) CreateComment ¶
func (q *Queries) CreateComment(ctx context.Context, arg CreateCommentParams) (CreateCommentRow, error)
func (*Queries) CreatePost ¶
func (q *Queries) CreatePost(ctx context.Context, arg CreatePostParams) (CreatePostRow, error)
func (*Queries) CreateTag ¶
func (q *Queries) CreateTag(ctx context.Context, arg CreateTagParams) (CreateTagRow, error)
func (*Queries) CreateUser ¶
func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (CreateUserRow, error)
func (*Queries) DeleteComment ¶
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 (q *Queries) RemoveTagFromPost(ctx context.Context, arg RemoveTagFromPostParams) error
func (*Queries) SearchPostsByCategory ¶
func (*Queries) SearchUsersByMetadata ¶
func (*Queries) SearchUsersByTag ¶
func (*Queries) UpdateComment ¶
func (q *Queries) UpdateComment(ctx context.Context, arg UpdateCommentParams) (UpdateCommentRow, error)
func (*Queries) UpdatePost ¶
func (q *Queries) UpdatePost(ctx context.Context, arg UpdatePostParams) (UpdatePostRow, error)
func (*Queries) UpdateTag ¶
func (q *Queries) UpdateTag(ctx context.Context, arg UpdateTagParams) (UpdateTagRow, error)
func (*Queries) UpdateUser ¶
func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (UpdateUserRow, error)
type QueryResult ¶
type RemoveTagFromPostParams ¶ added in v0.11.0
type SearchUsersByTagRow ¶
type UpdateCommentParams ¶ added in v0.11.0
type UpdateCommentRow ¶
type UpdatePostParams ¶ added in v0.11.0
type UpdatePostRow ¶
type UpdateTagParams ¶ added in v0.11.0
type UpdateTagRow ¶
type UpdateUserParams ¶ added in v0.11.0
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.