db
db
import "github.com/cloudfoundry/go-cf-api/internal/storage/db"
Index
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)
Generated by gomarkdoc