Documentation ¶
Index ¶
- func ParseConfig(connString string) (*pgxpool.Config, error)
- type Pool
- func (p *Pool) Begin(ctx context.Context) (Tx, error)
- func (p *Pool) Close()
- func (p *Pool) Exec(ctx context.Context, sql string, args ...interface{}) (pgconn.CommandTag, error)
- func (p *Pool) PgxPool() *pgxpool.Pool
- func (p *Pool) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)
- func (p *Pool) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func ConnectConfig ¶
type Tx ¶
type Tx interface { Commit(ctx context.Context) error Rollback(ctx context.Context) error Exec(ctx context.Context, sql string, arguments ...interface{}) (commandTag pgconn.CommandTag, err error) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row Conn() *pgx.Conn }
Click to show internal directories.
Click to hide internal directories.