Documentation ¶
Index ¶
- type Author
- type DBTX
- type NewAuthorParams
- type NewPostParams
- type Post
- type Queries
- func (q *Queries) DeleteAuthor(ctx context.Context, id int32) error
- func (q *Queries) DeletePost(ctx context.Context, id int32) error
- func (q *Queries) GetAuthor(ctx context.Context, id int32) (Author, error)
- func (q *Queries) GetAuthors(ctx context.Context) ([]Author, error)
- func (q *Queries) GetPost(ctx context.Context, id int32) (Post, error)
- func (q *Queries) GetPosts(ctx context.Context) ([]Post, error)
- func (q *Queries) NewAuthor(ctx context.Context, arg NewAuthorParams) (Author, error)
- func (q *Queries) NewPost(ctx context.Context, arg NewPostParams) (Post, error)
- func (q *Queries) UpdateAuthor(ctx context.Context, arg UpdateAuthorParams) (Author, error)
- func (q *Queries) UpdatePost(ctx context.Context, arg UpdatePostParams) (Post, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type UpdateAuthorParams
- type UpdatePostParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewAuthorParams ¶
type NewPostParams ¶
type NewPostParams struct { Title string Content sql.NullString Author int32 }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) UpdateAuthor ¶
func (*Queries) UpdatePost ¶
type UpdateAuthorParams ¶
type UpdatePostParams ¶
type UpdatePostParams struct { Title string Content sql.NullString Author int32 ID int32 }
Click to show internal directories.
Click to hide internal directories.