Versions in this module Expand all Collapse all v0 v0.8.6 Jul 25, 2024 v0.8.5 Jul 22, 2024 Changes in this version + const DefaultConnMaxLifetime + const DefaultMaxConnections + const DefaultPort + const DefaultQueryTimeout + const DefaultReadTimeout + const DefaultTimeout + const DefaultWriteTimeout + const MySQLDriver + const TCP + const Unix + const Utf8mb4 + var MigrationFS embed.FS + type Charset string + type Collation string + type Config struct + TargetSchema string + func (c Config) ConnMaxLifetime() time.Duration + func (c Config) DSN() string + func (c Config) MaxConnections() int + func (c Config) QueryTimeout() time.Duration + func (c Config) Schema() string + func (c Config) String() string + type ConnectionType string + type Location string + type MySQL struct + func MustNew(options ...Option) *MySQL + func New(options ...Option) (*MySQL, error) + func (s *MySQL) BeforeMigrateUp(dbh *database.DBHandle) error + func (s MySQL) DSNSource() database.DataSource + func (s MySQL) Driver() string + func (s MySQL) MigrationEnv() []string + func (s MySQL) MigrationFS() *embed.FS + type Option func(*Config) error + func ForMigration() Option + func NetAddress(addr string) Option + func Password(password string) Option + func Schema(name string) Option + func Username(username string) Option + func WithMaxConnections(max int) Option + func WithQueryTimeout(timeout time.Duration) Option