Versions in this module Expand all Collapse all v1 v1.30.0 Sep 1, 2025 v1.29.0 Apr 17, 2025 v1.28.0 Jan 20, 2025 v1.27.0 Aug 5, 2024 v1.26.0 Mar 28, 2024 v1.25.0 Jan 4, 2024 v1.24.0 Nov 22, 2023 v1.23.0 Oct 24, 2023 v1.22.0 Sep 26, 2023 v1.21.0 Sep 6, 2023 v1.20.0 Jul 31, 2023 Changes in this version + type Author struct + AuthorID int32 + Name string + type Book struct + AuthorID int32 + Available time.Time + BookID int32 + BookType BooksBookType + Isbn string + Tags string + Title string + Yr int32 + type BooksBookType string + const BooksBookTypeFICTION + const BooksBookTypeNONFICTION + func (e *BooksBookType) Scan(src interface{}) error + type BooksByTagsRow struct + BookID int32 + Isbn string + Name sql.NullString + Tags string + Title string + type BooksByTitleYearParams struct + Title string + Yr int32 + type CreateBookParams struct + AuthorID int32 + Available time.Time + BookType BooksBookType + Isbn string + Tags string + Title string + Yr int32 + 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 int32 + Yr int32 + type NullBooksBookType struct + BooksBookType BooksBookType + Valid bool + func (ns *NullBooksBookType) Scan(value interface{}) error + func (ns NullBooksBookType) Value() (driver.Value, error) + type Queries struct + func New(db DBTX) *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 struct + BookID int32 + Isbn string + Tags string + Title string + type UpdateBookParams struct + BookID int32 + Tags string + Title string