Documentation ¶
Index ¶
- Constants
- type Config
- func (c *Config) GetMySQLDatabase() string
- func (c *Config) GetMySQLHost() string
- func (c *Config) GetMySQLMigrationsTable() string
- func (c *Config) GetMySQLPassword() string
- func (c *Config) GetMySQLPort() string
- func (c *Config) GetMySQLUsername() string
- func (c *Config) IsMySQLMigrationsEnabled() bool
- type Configurator
- type MySQL
Constants ¶
View Source
const DriverName = "mysql"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { MySQLMigrationsEnabled bool `envconfig:"MYSQL_MIGRATIONS_ENABLED" default:"false"` MySQLHost string `envconfig:"MYSQL_HOST"` MySQLPort string `envconfig:"MYSQL_PORT"` MySQLUsername string `envconfig:"MYSQL_LOGIN"` MySQLPassword string `envconfig:"MYSQL_PASSWORD"` MySQLDatabase string `envconfig:"MYSQL_DATABASE"` MySQLMigrationsTable string `envconfig:"MYSQL_MIGRATIONS_TABLE" default:"migration_versions"` }
func (*Config) GetMySQLDatabase ¶
func (*Config) GetMySQLHost ¶
func (*Config) GetMySQLMigrationsTable ¶
func (*Config) GetMySQLPassword ¶
func (*Config) GetMySQLPort ¶
func (*Config) GetMySQLUsername ¶
func (*Config) IsMySQLMigrationsEnabled ¶
type Configurator ¶
Click to show internal directories.
Click to hide internal directories.