database

package
v0.0.0-...-4160b3e Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB      *sql.DB
	AdminDB *sql.DB
	B2BDB   *sql.DB
	VcdbDB  *sql.DB
	Driver  = "mysql"
)

Functions

func ConnectionString

func ConnectionString(db string, parseTime bool) string

ConnectionString Generates a MySQL connection string

func InitAdmin

func InitAdmin() (*sql.DB, error)

InitAdmin Initiates a conenction to the admin database

func InitB2B

func InitB2B() (*sql.DB, error)

InitB2B Initiates a conenction to the mysql version of the old b2b database

func InitDB

func InitDB() (*sql.DB, error)

InitDB Initiates a conenction to the CurtData database

func InitVCDB

func InitVCDB() (*sql.DB, error)

InitVCDB Initiates a conenction to the VCDB database

Types

type Scanner

type Scanner interface {
	Scan(...interface{}) error
}

Jump to

Keyboard shortcuts

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