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 ¶
type BooksBookType string
const ( BooksBookTypeFICTION BooksBookType = "FICTION" BooksBookTypeNONFICTION BooksBookType = "NONFICTION" )
func (*BooksBookType) Scan ¶
func (e *BooksBookType) Scan(src interface{}) error
type BooksByTagsRow ¶
type BooksByTitleYearParams ¶
type CreateBookParams ¶
type NullBooksBookType ¶
type NullBooksBookType struct { BooksBookType BooksBookType Valid bool // Valid is true if BooksBookType is not NULL }
func (*NullBooksBookType) Scan ¶
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 ¶
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.