db

package
v0.0.0-...-e064244 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseDBs

func CloseDBs(cons map[string]*sql.DB)

func New

func New(dbs map[string]Database) (map[string]*goqu.Database, map[string]*sql.DB, error)

creates connections and returns database query builders and its connections and error if anything wrong happened

Types

type Database

type Database struct {
	Type     string
	Username string
	Password string
	DbName   string
	Host     string
	Port     string
	SSLMode  string
	TimeZone string
	Charset  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL