mysql

package
v0.0.0-...-5d64eac Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultInstances = &instancesStore{}

Functions

This section is empty.

Types

type Config

type Config struct {
	// common config
	Debug bool `ini:"debug"`

	// db config
	AliasName    string `ini:"aliasName"`
	MaxIdleConns int    `ini:"maxIdleConns"`
	MaxOpenConns int    `ini:"maxOpenConns"`
	Dsn          string `ini:"dsn"`
	// contains filtered or unexported fields
}

func DefaultConfig

func DefaultConfig() *Config

func Invoker

func Invoker(key string) *Config

func (*Config) Build

func (c *Config) Build() (o orm.Ormer, err error)

Jump to

Keyboard shortcuts

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