Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrWrongShardsPoolSize = errors.New("sharded pg: wrong shards pool size") ErrNoShardPickerProvided = errors.New("sharded pg: no sharded picker provided") ErrNotEnoughShardsProvided = errors.New("sharded pg: provided less shards than pool size") ErrNilShardProvided = errors.New("sharded pg: nil shard provided") )
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Pool ¶
type Pool interface {
BeginTx(ctx context.Context, opts pgx.TxOptions) (pgx.Tx, error)
Begin(ctx context.Context) (pgx.Tx, error)
Query(ctx context.Context, query string, args ...interface{}) (pgx.Rows, error)
QueryRow(ctx context.Context, query string, args ...interface{}) pgx.Row
Exec(ctx context.Context, query string, args ...interface{}) (pgconn.CommandTag, error)
Transactional(ctx context.Context, fn func(ctx context.Context) error) (out error)
}
Click to show internal directories.
Click to hide internal directories.