Documentation ¶
Index ¶
- type AddToShelfParams
- type Choice
- type CreateChoicesParams
- type CreatePageParams
- type CreateStoryParams
- type CreateUserParams
- type DBTX
- type GetFeaturedStoriesRow
- type GetOnShelfParams
- type GetShelfParams
- type GetShelfRow
- type GetStoryRow
- type GetUserDetailsRow
- type ListChoicesRow
- type Page
- type Postgres
- type Queries
- func (q *Queries) AddToShelf(ctx context.Context, arg AddToShelfParams) error
- func (q *Queries) CreateChoices(ctx context.Context, arg CreateChoicesParams) (Choice, error)
- func (q *Queries) CreatePage(ctx context.Context, arg CreatePageParams) (Page, error)
- func (q *Queries) CreateStory(ctx context.Context, arg CreateStoryParams) (Story, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeletePage(ctx context.Context, id int64) error
- func (q *Queries) DeleteStory(ctx context.Context, id int64) error
- func (q *Queries) DeleteUser(ctx context.Context, id int64) error
- func (q *Queries) GetFeaturedStories(ctx context.Context) ([]GetFeaturedStoriesRow, error)
- func (q *Queries) GetOnShelf(ctx context.Context, arg GetOnShelfParams) (Shelf, error)
- func (q *Queries) GetPage(ctx context.Context, id int64) (Page, error)
- func (q *Queries) GetShelf(ctx context.Context, arg GetShelfParams) ([]GetShelfRow, error)
- func (q *Queries) GetStory(ctx context.Context, id int64) (GetStoryRow, error)
- func (q *Queries) GetStoryAuthor(ctx context.Context, id int64) (int64, error)
- func (q *Queries) GetUserDetails(ctx context.Context, username string) ([]GetUserDetailsRow, error)
- func (q *Queries) GetUserWithEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) GetUserWithId(ctx context.Context, id int64) (User, error)
- func (q *Queries) GetUserWithUsername(ctx context.Context, username string) (User, error)
- func (q *Queries) ListChoices(ctx context.Context, pageID int64) ([]ListChoicesRow, error)
- func (q *Queries) RemoveFromShelf(ctx context.Context, arg RemoveFromShelfParams) error
- func (q *Queries) SearchStories(ctx context.Context, arg SearchStoriesParams) ([]SearchStoriesRow, error)
- func (q *Queries) SearchUsers(ctx context.Context, arg SearchUsersParams) ([]User, error)
- func (q *Queries) SetAdmin(ctx context.Context, id int64) error
- func (q *Queries) SetImgPage(ctx context.Context, arg SetImgPageParams) error
- func (q *Queries) SetImgStory(ctx context.Context, arg SetImgStoryParams) error
- func (q *Queries) SetImgUser(ctx context.Context, arg SetImgUserParams) error
- func (q *Queries) SetStoryAsFeatured(ctx context.Context, id int64) error
- func (q *Queries) UpdatePage(ctx context.Context, arg UpdatePageParams) error
- func (q *Queries) UpdateStory(ctx context.Context, arg UpdateStoryParams) error
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RemoveFromShelfParams
- type SearchStoriesParams
- type SearchStoriesRow
- type SearchUsersParams
- type SetImgPageParams
- type SetImgStoryParams
- type SetImgUserParams
- type Shelf
- type Story
- type UpdatePageParams
- type UpdateStoryParams
- type UpdateUserParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddToShelfParams ¶
type CreateChoicesParams ¶
type CreatePageParams ¶
type CreateStoryParams ¶
type CreateStoryParams struct { Title string Description sql.NullString Author int64 }
type CreateUserParams ¶
type GetFeaturedStoriesRow ¶
type GetOnShelfParams ¶
type GetShelfParams ¶
type GetShelfParams struct { OwnerID int64 Column2 interface{} }
type GetShelfRow ¶
type GetStoryRow ¶
type GetUserDetailsRow ¶
type ListChoicesRow ¶
type Postgres ¶
func NewPostgres ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddToShelf ¶
func (q *Queries) AddToShelf(ctx context.Context, arg AddToShelfParams) error
func (*Queries) CreateChoices ¶
func (*Queries) CreatePage ¶
func (*Queries) CreateStory ¶
func (*Queries) CreateUser ¶
func (*Queries) GetFeaturedStories ¶
func (q *Queries) GetFeaturedStories(ctx context.Context) ([]GetFeaturedStoriesRow, error)
func (*Queries) GetOnShelf ¶
func (*Queries) GetShelf ¶
func (q *Queries) GetShelf(ctx context.Context, arg GetShelfParams) ([]GetShelfRow, error)
func (*Queries) GetStoryAuthor ¶
func (*Queries) GetUserDetails ¶
func (*Queries) GetUserWithEmail ¶
func (*Queries) GetUserWithId ¶
func (*Queries) GetUserWithUsername ¶
func (*Queries) ListChoices ¶
func (*Queries) RemoveFromShelf ¶
func (q *Queries) RemoveFromShelf(ctx context.Context, arg RemoveFromShelfParams) error
func (*Queries) SearchStories ¶
func (q *Queries) SearchStories(ctx context.Context, arg SearchStoriesParams) ([]SearchStoriesRow, error)
func (*Queries) SearchUsers ¶
func (*Queries) SetImgPage ¶
func (q *Queries) SetImgPage(ctx context.Context, arg SetImgPageParams) error
func (*Queries) SetImgStory ¶
func (q *Queries) SetImgStory(ctx context.Context, arg SetImgStoryParams) error
func (*Queries) SetImgUser ¶
func (q *Queries) SetImgUser(ctx context.Context, arg SetImgUserParams) error
func (*Queries) SetStoryAsFeatured ¶
func (*Queries) UpdatePage ¶
func (q *Queries) UpdatePage(ctx context.Context, arg UpdatePageParams) error
func (*Queries) UpdateStory ¶
func (q *Queries) UpdateStory(ctx context.Context, arg UpdateStoryParams) error
func (*Queries) UpdateUser ¶
func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) error
type RemoveFromShelfParams ¶
type SearchStoriesParams ¶
type SearchStoriesParams struct { Column1 sql.NullString Column2 interface{} }
type SearchStoriesRow ¶
type SearchUsersParams ¶
type SearchUsersParams struct { Column1 sql.NullString Column2 interface{} }
type SetImgPageParams ¶
type SetImgStoryParams ¶
type SetImgUserParams ¶
type UpdatePageParams ¶
type UpdateStoryParams ¶
type UpdateUserParams ¶
Click to show internal directories.
Click to hide internal directories.