xorm

package
v0.0.0-...-532f4bb Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(conf *MysqlConfig) (*xorm.Engine, error)

Connect 单库连接

func GroupConnect

func GroupConnect(conf *MysqlConfig) (*xorm.EngineGroup, error)

GroupConnect 读写分离

Types

type MysqlConfig

type MysqlConfig struct {
	Hostname     []string
	Database     string
	Username     string
	Password     string
	Hostport     int32
	MaxIdleConns int
	MaxOpenConns int
	MaxLifeTime  int
}

Jump to

Keyboard shortcuts

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