Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConnection ¶
CheckConnection try db connection to check connectoin health
func GetConnection ¶
GetConnection get database connection within given driver name or shortname
func ImportDrivers ¶
ImportDrivers information in given file as yaml format
Types ¶
type Driver ¶
type Driver struct { Name string `yaml:"name"` Engine string `yaml:"engine"` Version string `yaml:"version"` Credentials string `yaml:"credentials"` EnvFile string `yaml:"env_file"` IsActive bool `yaml:"-"` }
Driver of a database is all information needed to etablish a db connection
type DriversPool ¶
type DriversPool struct {
Drivers []Driver `yaml:"drivers"`
}
DriversPool is struct to import from yaml file
Click to show internal directories.
Click to hide internal directories.