Versions in this module Expand all Collapse all v1 v1.0.6 Apr 5, 2023 v1.0.5 Apr 5, 2023 v1.0.4 Apr 5, 2023 v1.0.3 Apr 5, 2023 v1.0.2 Apr 5, 2023 v1.0.1 Apr 5, 2023 v0 v0.0.8 Apr 6, 2023 v0.0.7 Apr 6, 2023 Changes in this version + type Author struct + AuthorID int64 + Name string + type Book struct + AuthorID int64 + Available time.Time + BookID int64 + BookType string + Isbn string + Tags string + Title string + Yr int64 + type BooksByTagsRow struct + BookID int64 + Isbn string + Name string + Tags string + Title string + type BooksByTitleYearParams struct + Title string + Yr int64 + type CreateBookParams struct + AuthorID int64 + Available time.Time + BookType string + Isbn string + Tags string + Title string + Yr int64 + 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 int64 + Yr int64 + 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 int64) error + func (q *Queries) GetAuthor(ctx context.Context, authorID int64) (Author, error) + func (q *Queries) GetBook(ctx context.Context, bookID int64) (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 int64 + Isbn string + Tags string + Title string + type UpdateBookParams struct + BookID int64 + Tags string + Title string