db

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDbConfigs

func GetDbConfigs() map[string]Connection

Types

type Connection

type Connection struct {
	Driver   string
	Dsn      string
	Log      bool
	LogLevel int
	LogFile  string
	Timezone string
}

func GetDbConfig

func GetDbConfig(id string) Connection

type Connections

type Connections struct {
	Connections map[string]Connection
}

type DB

type DB struct {
	Cfg    Connection
	Engine *xorm.Engine
}

func NewDB

func NewDB(conn string) *DB

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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