Documentation ¶
Index ¶
- type Author
- type Book
- type BookType
- type BooksByTagsRow
- type BooksByTitleYearParams
- type CreateBookParams
- type DBTX
- type NullBookType
- type Queries
- func (q *Queries) BooksByTags(ctx context.Context, dollar_1 []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) DeleteBook(ctx context.Context, bookID int32) error
- func (q *Queries) GetAuthor(ctx context.Context, authorID int32) (Author, error)
- func (q *Queries) GetBook(ctx context.Context, bookID int32) (Book, error)
- func (q *Queries) SayHello(ctx context.Context, s string) (pgtype.Text, 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 pgx.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 NullBookType ¶
func (*NullBookType) Scan ¶
func (ns *NullBookType) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) BooksByTags ¶
func (*Queries) BooksByTitleYear ¶
func (*Queries) CreateAuthor ¶
func (*Queries) CreateBook ¶
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.