Documentation ¶ Index ¶ func AutomateMigrations(db *gorm.DB) func ConnectToDB(configPath string) (*gorm.DB, error) type DBConfig func LoadConfig(filePath string) (DBConfig, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AutomateMigrations ¶ func AutomateMigrations(db *gorm.DB) func ConnectToDB ¶ func ConnectToDB(configPath string) (*gorm.DB, error) Types ¶ type DBConfig ¶ type DBConfig struct { Host string `yaml:"host"` Port int `yaml:"port"` User string `yaml:"user"` Password string `yaml:"password"` Name string `yaml:"name"` Ssl string `yaml:"sslmode"` } func LoadConfig ¶ func LoadConfig(filePath string) (DBConfig, error) Source Files ¶ View all Source files automigrate.goconnect.goparse_config.go Click to show internal directories. Click to hide internal directories.