db

package
v0.0.0-...-ef60371 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseDB

func CloseDB()

CloseDB closes db

func ConfigureDB

func ConfigureDB(info *MySQLInfo)

ConfigureDB loads database connection string

func GetDB

func GetDB() *sql.DB

GetDB returns db object

func OpenDB

func OpenDB()

OpenDB creates connection with database

Types

type MySQLInfo

type MySQLInfo struct {
	Hostname  string `json:"hostname"`
	Port      int    `json:"port"`
	Username  string `json:"username"`
	Password  string `json:"password"`
	Database  string `json:"database"`
	ParseTime bool   `json:"parseTime"`
}

MySQLInfo struct

Jump to

Keyboard shortcuts

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