Versions in this module Expand all Collapse all v1 v1.0.0 Sep 29, 2024 Changes in this version + var ConfigFile string + var Configs []DBConfig + var DefaultConfigFile string + var SupportedDrivers = []string + func CreateFileAndDir() error + func GetDBString() (string, error) + func GetLastRecords(db *sqlx.DB, tableName string, limit int) ([]map[string]interface{}, error) + func GetTableColumns(db *sqlx.DB, tableName string) ([]table.Column, error) + func GetTables(db *sqlx.DB) ([]string, error) + func LoadDefaultConfig() error + func SaveConfigs(configs []DBConfig, file string) error + type DBConfig struct + ConfigName string + Database string + Driver string + Host string + Password string + Port int + User string + var DefaultConfigData DBConfig + func LoadConfigs(file string) ([]DBConfig, error)