Versions in this module Expand all Collapse all v0 v0.0.2 Jul 29, 2024 v0.0.1 Jul 29, 2024 Changes in this version + type Author struct + AuthorID int32 + Name string + type Book struct + AuthorID int32 + Available pgtype.Timestamptz + BookID int32 + BookType BookType + Isbn string + Tags []string + Title string + Year int32 + type BookType string + const BookTypeFICTION + const BookTypeNONFICTION + func (e *BookType) Scan(src interface{}) error + type BooksByTagsRow struct + BookID int32 + Isbn string + Name pgtype.Text + Tags []string + Title string + type BooksByTitleYearParams struct + Title string + Year int32 + type CreateBookParams struct + AuthorID int32 + Available pgtype.Timestamptz + BookType BookType + Isbn string + Tags []string + Title string + Year int32 + type DBTX interface + Exec func(context.Context, string, ...interface{}) (pgconn.CommandTag, error) + Query func(context.Context, string, ...interface{}) (pgx.Rows, error) + QueryRow func(context.Context, string, ...interface{}) pgx.Row + type NullBookType struct + BookType BookType + Valid bool + func (ns *NullBookType) Scan(value interface{}) error + func (ns NullBookType) Value() (driver.Value, error) + type Queries struct + func New(db DBTX) *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 struct + BookID int32 + Isbn string + Tags []string + Title string + type UpdateBookParams struct + BookID int32 + Tags []string + Title string