Documentation ¶
Index ¶
- type Author
- type Book
- type BooksBookType
- type BooksByTagsRow
- type BooksByTitleYearParams
- type CreateBookParams
- type DBTX
- type DeleteAuthorBeforeYearParams
- type NullBooksBookType
- 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) (sql.Result, error)
- func (q *Queries) CreateBook(ctx context.Context, arg CreateBookParams) (sql.Result, error)
- func (q *Queries) DeleteAuthorBeforeYear(ctx context.Context, arg DeleteAuthorBeforeYearParams) 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) 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 BooksBookType ¶ added in v1.6.0
type BooksBookType string
const ( BooksBookTypeFICTION BooksBookType = "FICTION" BooksBookTypeNONFICTION BooksBookType = "NONFICTION" )
func (*BooksBookType) Scan ¶ added in v1.6.0
func (e *BooksBookType) Scan(src interface{}) error
type BooksByTagsRow ¶ added in v1.5.0
type BooksByTitleYearParams ¶
type CreateBookParams ¶
type NullBooksBookType ¶ added in v1.15.0
type NullBooksBookType struct { BooksBookType BooksBookType Valid bool // Valid is true if BooksBookType is not NULL }
func (*NullBooksBookType) Scan ¶ added in v1.15.0
func (ns *NullBooksBookType) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) BooksByTags ¶ added in v1.5.0
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.