Documentation ¶
Index ¶
- type Author
- type CreateAuthorParams
- type DBTX
- type Queries
- func (q *Queries) CreateAuthor(ctx context.Context, arg CreateAuthorParams) (Author, error)
- func (q *Queries) DeleteAuthor(ctx context.Context, id int64) error
- func (q *Queries) GetAuthor(ctx context.Context, id int64) (Author, error)
- func (q *Queries) ListAuthors(ctx context.Context) ([]Author, error)
- func (q *Queries) UpdateAuthor(ctx context.Context, arg UpdateAuthorParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type UpdateAuthorParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateAuthorParams ¶
type CreateAuthorParams struct { Name string Bio sql.NullString }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateAuthor ¶
func (*Queries) UpdateAuthor ¶
func (q *Queries) UpdateAuthor(ctx context.Context, arg UpdateAuthorParams) error
type UpdateAuthorParams ¶
type UpdateAuthorParams struct { Name string Bio sql.NullString ID int64 }
Click to show internal directories.
Click to hide internal directories.