Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidClusterConfiguration = errors.New("invalid cluster configuration")
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { Leader(fn ConstructDB) Builder Follower(fns ...ConstructDB) Builder Go() (Pool, error) }
type ConstructDB ¶
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.