Documentation ¶
Index ¶
- Variables
- func StoreTx(ctx context.Context, tx pgx.Tx) context.Context
- type App
- func (a App) Bulk(ctx context.Context, fetcher func() ([]any, error), schema, table string, ...) (err error)
- func (a App) Close()
- func (a App) Create(ctx context.Context, query string, args ...any) (id uint64, err error)
- func (a App) DoAtomic(ctx context.Context, action func(context.Context) error) (err error)
- func (a App) Enabled() bool
- func (a App) Exec(ctx context.Context, query string, args ...any) error
- func (a App) Get(ctx context.Context, scanner func(pgx.Row) error, query string, args ...any) error
- func (a App) List(ctx context.Context, scanner func(pgx.Rows) error, query string, args ...any) error
- func (a App) One(ctx context.Context, query string, args ...any) error
- func (a App) Ping(ctx context.Context) error
- func (a App) Query(ctx context.Context, query string, args ...any) (rows pgx.Rows, err error)
- func (a App) QueryRow(ctx context.Context, query string, args ...any) pgx.Row
- type Config
- type Database
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type App ¶ added in v4.14.0
type App struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.