Documentation
¶
Index ¶
Constants ¶
View Source
const ( Utf8mb4 Charset = "utf8mb4" TCP ConnectionType = "tcp" Unix ConnectionType = "unix" DefaultPort = 3306 DefaultMaxConnections = 32 DefaultConnMaxLifetime = 1 * time.Hour DefaultTimeout = 30 * time.Second DefaultReadTimeout = 30 * time.Second DefaultWriteTimeout = 30 * time.Second DefaultQueryTimeout = 60 * time.Second )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
mysql.Config
TargetSchema string // here for schema-less conns, e.g. for create
// contains filtered or unexported fields
}
func (Config) ConnMaxLifetime ¶
func (Config) MaxConnections ¶
func (Config) QueryTimeout ¶
type ConnectionType ¶
type ConnectionType string
type Option ¶
func ForMigration ¶ added in v0.8.2
func ForMigration() Option
func NetAddress ¶
func WithQueryTimeout ¶
Click to show internal directories.
Click to hide internal directories.