Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnOpts ¶
type ConnOpts struct {
// DSN is the connection address.
DSN string
// IsRDS identifies if the server is an AWS RDS server
IsRDS bool
// Timeout is the timeout for dump operations.
Timeout time.Duration
// MaxConnLifetime is the maximum amount of time a connection may be reused on the read database.
MaxConnLifetime time.Duration
// MaxConns is the maximum number of open connections to the target database.
MaxConns int
// MaxIdleConns is the maximum number of connections in the idle connection pool for the write database.
MaxIdleConns int
}
ConnOpts are the options to create a connection
type Driver ¶
type Driver interface {
// IsSupported checks if the given dsn connection string is supported.
IsSupported(dsn string) bool
// NewConnection creates a new database connection and retrieves a dumper implementation.
NewConnection(ConnOpts, reader.Reader) (Dumper, error)
}
Driver is a driver interface used to support multiple drivers
Click to show internal directories.
Click to hide internal directories.