mysqlxorm

package
v0.0.0-...-3aaf624 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitXorm

func InitXorm(dsn string) (db *xorm.Engine, err error)

func InitXormWithConfig

func InitXormWithConfig(cfg DBConfig) (db *xorm.Engine, err error)

Types

type DBConfig

type DBConfig struct {
	DSN             string
	MaxOpenConns    int
	MaxIdleConns    int
	ConnMaxLifetime time.Duration
	Debug           bool
	SilentLog       bool
}

Jump to

Keyboard shortcuts

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