Documentation ¶
Index ¶
- type Author
- type Book
- type BooksByTagsRow
- type BooksByTitleYearParams
- type CreateBookParams
- type DBTX
- type DeleteAuthorBeforeYearParams
- type Queries
- func (q *Queries) BooksByTags(ctx context.Context, tags []string) ([]BooksByTagsRow, error)
- func (q *Queries) BooksByTitleYear(ctx context.Context, arg BooksByTitleYearParams) ([]Book, error)
- func (q *Queries) CreateAuthor(ctx context.Context, name string) (Author, error)
- func (q *Queries) CreateBook(ctx context.Context, arg CreateBookParams) (Book, error)
- func (q *Queries) DeleteAuthorBeforeYear(ctx context.Context, arg DeleteAuthorBeforeYearParams) error
- func (q *Queries) DeleteBook(ctx context.Context, bookID int64) error
- func (q *Queries) GetAuthor(ctx context.Context, authorID int64) (Author, error)
- func (q *Queries) GetBook(ctx context.Context, bookID int64) (Book, error)
- func (q *Queries) UpdateBook(ctx context.Context, arg UpdateBookParams) error
- func (q *Queries) UpdateBookISBN(ctx context.Context, arg UpdateBookISBNParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type UpdateBookISBNParams
- type UpdateBookParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BooksByTagsRow ¶
type BooksByTitleYearParams ¶
type CreateBookParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) BooksByTags ¶
func (*Queries) BooksByTitleYear ¶
func (*Queries) CreateAuthor ¶
func (*Queries) CreateBook ¶
func (*Queries) DeleteAuthorBeforeYear ¶
func (q *Queries) DeleteAuthorBeforeYear(ctx context.Context, arg DeleteAuthorBeforeYearParams) error
func (*Queries) UpdateBook ¶
func (q *Queries) UpdateBook(ctx context.Context, arg UpdateBookParams) error
func (*Queries) UpdateBookISBN ¶
func (q *Queries) UpdateBookISBN(ctx context.Context, arg UpdateBookISBNParams) error
type UpdateBookISBNParams ¶
type UpdateBookParams ¶
Click to show internal directories.
Click to hide internal directories.