Versions in this module Expand all Collapse all v1 v1.22.0 Sep 26, 2023 Changes in this version + type Author struct + Bio sql.NullString + ID int64 + Name string + type CreateAuthorParams struct + Bio sql.NullString + Name string + 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 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 *sql.Tx) *Queries