Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDBConfigString ¶
GenerateDBConfigString generates the config for migration
func GetLatestBaseFolder ¶
GetLatestBaseFolder helps to identify what is the current base folder
Types ¶
type DBConfig ¶
type DBConfig struct { Development Postgresql Test Postgresql Staging Postgresql Production Postgresql }
DBConfig Type for MySql
func LoadDBConfig ¶
LoadDBConfig is used to load database config
type Postgresql ¶
type Postgresql struct { Dbname string Host string Port int64 Adapter string User string Password string Sslmode string }
Postgresql is postgresql struct to expose data of db connection
func RetrieveDBConfig ¶
func RetrieveDBConfig(environment string) Postgresql
RetrieveDBConfig helps to get the DBConfig for an environment
Click to show internal directories.
Click to hide internal directories.