db

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB *sql.DB

	Debug = false
)

Functions

func Close

func Close()

func Connect

func Connect()

func Reconnect

func Reconnect()

func RegisterFlags

func RegisterFlags(defaultDriver, defaultConnStr string, flag *pflag.FlagSet)

Types

type ColumnInfo

type ColumnInfo struct {
	Name       string
	Conversion string
}

type TableInfo

type TableInfo struct {
	Name        string
	KeyColumns  []ColumnInfo
	DataColumns []ColumnInfo
}

func (*TableInfo) OverrideKeyColumns

func (i *TableInfo) OverrideKeyColumns(keyOverrides []string) error

Jump to

Keyboard shortcuts

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