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