Documentation ¶
Index ¶
- Variables
- type Driver
- func (d *Driver) BeginTx(ctx context.Context, opts *sql.TxOptions) (dialect.Tx, error)
- func (d *Driver) Close() error
- func (d *Driver) Dialect() string
- func (d *Driver) Exec(ctx context.Context, query string, args, v any) error
- func (d *Driver) Query(ctx context.Context, query string, args, v any) error
- func (d *Driver) Tx(ctx context.Context) (dialect.Tx, error)
- type Option
- type Policy
- type PolicyFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingWriter = errors.New("multi: missing writer driver") ErrClose = errors.New("multi: close has errors") )
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
type Policy ¶
func RandomPolicy ¶
func RandomPolicy() Policy
func RoundRobinPolicy ¶
func RoundRobinPolicy() Policy
func StrictRoundRobinPolicy ¶ added in v2.14.2
func StrictRoundRobinPolicy() Policy
Click to show internal directories.
Click to hide internal directories.