Documentation
¶
Index ¶
- type Option
- type Pool
- func (p *Pool) Close()
- func (p *Pool) Exec(ctx context.Context, sql string, args ...any) (pgconn.CommandTag, error)
- func (p *Pool) MainPool() *pgxpool.Pool
- func (p *Pool) Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error)
- func (p *Pool) QueryRow(ctx context.Context, sql string, args ...any) pgx.Row
- func (p *Pool) ReadPool() *pgxpool.Pool
- func (p *Pool) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*poolConfig)
Option configures the Pool behaviour.
func WithRetryOnError ¶
Click to show internal directories.
Click to hide internal directories.