Versions in this module Expand all Collapse all v1 v1.0.0 Sep 3, 2024 Changes in this version + type Author struct + Bio pgtype.Text + ID int64 + Name string + type CreateAuthorParams struct + Bio pgtype.Text + Name string + 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 Queries struct + func New(db DBTX) *Queries + func (q *Queries) CreateAuthor(ctx context.Context, arg CreateAuthorParams) (Author, error) + func (q *Queries) DeleteAuthor(ctx context.Context, id int64) error + func (q *Queries) GetAuthor(ctx context.Context, id int64) (Author, error) + func (q *Queries) ListAuthors(ctx context.Context) ([]Author, error) + func (q *Queries) WithTx(tx pgx.Tx) *Queries