Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunMigrations ¶
RunMigrations will execute pending migrations if needed to keep the database updated with the latest changes
Types ¶
type Config ¶
type Config struct {
// Database type
Database string `mapstructure:"Database"`
// Database name
Name string `mapstructure:"Name"`
// User name
User string `mapstructure:"User"`
// Password of the user
Password string `mapstructure:"Password"`
// Host address
Host string `mapstructure:"Host"`
// Port Number
Port string `mapstructure:"Port"`
// MaxConns is the maximum number of connections in the pool.
MaxConns int `mapstructure:"MaxConns"`
}
Config struct
Click to show internal directories.
Click to hide internal directories.