Documentation ¶
Index ¶
- type Author
- type Book
- type CreateAuthorParams
- type CreateBookParams
- type DBTX
- type GetAuthorsBornWithinParams
- type Queries
- func (q *Queries) CreateAuthor(ctx context.Context, arg CreateAuthorParams) (Author, error)
- func (q *Queries) CreateBook(ctx context.Context, arg CreateBookParams) (Book, error)
- func (q *Queries) GetAuthorByID(ctx context.Context, id int32) (Author, error)
- func (q *Queries) GetAuthorByName(ctx context.Context, name string) (Author, error)
- func (q *Queries) GetAuthorsBornWithin(ctx context.Context, arg GetAuthorsBornWithinParams) ([]Author, error)
- func (q *Queries) GetBookByID(ctx context.Context, id int32) (Book, error)
- func (q *Queries) GetBookByTitle(ctx context.Context, title string) (Book, error)
- func (q *Queries) GetBooksByAuthorName(ctx context.Context, name string) ([]Book, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateAuthorParams ¶
type CreateBookParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateAuthor ¶
func (*Queries) CreateBook ¶
func (*Queries) GetAuthorByID ¶
func (*Queries) GetAuthorByName ¶
func (*Queries) GetAuthorsBornWithin ¶
func (*Queries) GetBookByID ¶
func (*Queries) GetBookByTitle ¶
func (*Queries) GetBooksByAuthorName ¶
Click to show internal directories.
Click to hide internal directories.