goo_db

package
v1.1.31 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(configs ...Config)

Types

type Config

type Config struct {
	Name        string   `yaml:"name"`
	Driver      string   `yaml:"driver"`
	Master      string   `yaml:"master"`
	Slaves      []string `yaml:"slaves"`
	MaxIdle     int      `yaml:"max_idle"`
	MaxOpen     int      `yaml:"max_open"`
	AutoPing    bool     `yaml:"auto_ping"`
	LogModel    bool     `yaml:"log_model"`
	LogFilepath string   `yaml:"log_filepath"`
}

type Orm added in v1.1.1

type Orm struct {
	*xorm.EngineGroup
	// contains filtered or unexported fields
}

func Client

func Client(names ...string) *Orm

func New added in v1.1.1

func New(conf Config) *Orm

Jump to

Keyboard shortcuts

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