mysql

package
v0.0.0-...-7c4d03a Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

X gorm.DB

View Source
var XS map[string]*gorm.DB

XS gorm.DB map

Functions

func GetXS

func GetXS(serverName string) (*gorm.DB, error)

GetXS get XS

Types

type GormConf

type GormConf struct {
	Name          string `yaml:"name"`
	Driver        string `yaml:"driver"`
	Setting       string `yaml:"setting"`
	SingularTable bool   `yaml:"singularTable"`
	LogMode       bool   `yaml:"logMode"`
}

GormConf gorm config

func (*GormConf) InitGorm

func (gconf *GormConf) InitGorm() error

InitGorm "root:root@tcp(localhost:3306)/plucron?charset=utf8&parseTime=True&loc=Local"

type GormConfs

type GormConfs struct {
	GormConf []GormConf `yaml:"mysqlConfig"`
}

GormConfs gorm configs

func (*GormConfs) InitGorms

func (gconfs *GormConfs) InitGorms(filePath string) error

InitGorms init gorms

Jump to

Keyboard shortcuts

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