driver

package
v0.0.0-...-3b07eb7 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDbConnector

func NewDbConnector(cfg DbConnectorConfig) (*sql.DB, error)

NewDbConnector get 1 new db handler

Types

type DbConnectorConfig

type DbConnectorConfig struct {
	User string `json:"user"`
	Pass string `json:"pass"`
	Host string `json:"host"`
	Port int    `json:"port"`
	Name string `json:"name"`
}

DbConnectorConfig sql credentials

Jump to

Keyboard shortcuts

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