Versions in this module Expand all Collapse all v0 v0.0.4 Feb 3, 2020 v0.0.3 Feb 3, 2020 Changes in this version + type Author struct + AuthorID int + Name string + type Book struct + AuthorID int + Available time.Time + BookID int + BookType BookTypeType + Isbn string + Tags string + Title string + Yr int + type BookTypeType string + const FICTION + const NONFICTION + func (e *BookTypeType) Scan(src interface{}) error + type BooksByTitleYearParams struct + Title string + Yr int + type CreateBookParams struct + AuthorID int + Available time.Time + Isbn string + Tags string + Title string + Unknown interface{} + Yr int + type DBTX interface + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext func(context.Context, string) (*sql.Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) *sql.Row + type DeleteAuthorBeforeYearParams struct + AuthorID int + MinPublishYear int + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) BooksByTitleYear(ctx context.Context, arg BooksByTitleYearParams) ([]Book, error) + func (q *Queries) CreateAuthor(ctx context.Context, name string) error + func (q *Queries) CreateBook(ctx context.Context, arg CreateBookParams) error + func (q *Queries) DeleteAuthorBeforeYear(ctx context.Context, arg DeleteAuthorBeforeYearParams) error + func (q *Queries) DeleteBook(ctx context.Context, book_id int) error + func (q *Queries) GetAuthor(ctx context.Context, author_id int) (Author, error) + func (q *Queries) GetBook(ctx context.Context, book_id int) (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 struct + BookID int + BookTags string + Isbn string + Title string + type UpdateBookParams struct + BookID int + Tags string + Title string