Documentation ¶ Index ¶ type Info func NewConnection(dbConfig config.DBConfig, connectDB bool) (*sql.DB, Info, error) func NewMySQLConnection(dbConfig config.DBConfig, connectDB bool) (*sql.DB, Info, error) func NewPostgresConnection(dbConfig config.DBConfig, connectDB bool) (*sql.DB, Info, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Info ¶ type Info struct { Host string Port string DatabaseName string User string Password string Type string } func NewConnection ¶ func NewConnection(dbConfig config.DBConfig, connectDB bool) (*sql.DB, Info, error) func NewMySQLConnection ¶ func NewMySQLConnection(dbConfig config.DBConfig, connectDB bool) (*sql.DB, Info, error) func NewPostgresConnection ¶ func NewPostgresConnection(dbConfig config.DBConfig, connectDB bool) (*sql.DB, Info, error) Source Files ¶ View all Source files db.go mysql.go postgres.go Directories ¶ Show internal Expand all Path Synopsis sqlhelpers Click to show internal directories. Click to hide internal directories.