xorm

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NameMapType = reflect.TypeOf(&NameMap{}).Elem()

Functions

func MustIn

func MustIn(sql string, args ...any) (string, []any)

func MustNamed

func MustNamed(inputSql string, arg any) (sql string, args []any)

func NewProvider added in v1.1.1

func NewProvider(engine *wrappedEngine) (gone.Vampire, gone.GonerOption)

func Priest

func Priest(cemetery gone.Cemetery) error

Types

type ClusterNodeConf added in v1.1.1

type ClusterNodeConf struct {
	DriverName string `properties:"driver-name,default=" mapstructure:"driver-name"`
	DSN        string `properties:"dsn,default=" mapstructure:"dsn,default=yyyy"`
}

type Conf added in v1.1.1

type Conf struct {
	DriverName   string        `properties:"driver-name,default=" mapstructure:"driver-name"`
	Dsn          string        `properties:"dsn,default=" mapstructure:"dsn"`
	MaxIdleCount int           `properties:"max-idle-count,default=5" mapstructure:"max-idle-count,default=5"`
	MaxOpen      int           `properties:"max-open,default=20" mapstructure:"max-open,default=20"`
	MaxLifetime  time.Duration `properties:"max-lifetime,default=10m" mapstructure:"max-lifetime,default=10m"`
	ShowSql      bool          `properties:"show-sql,default=true" mapstructure:"show-sql,default=true"`
}

type Engine

type Engine = gone.XormEngine

type Interface added in v0.0.14

type Interface = xorm.Interface

type NameMap

type NameMap map[string]any

type XInterface added in v1.0.0

type XInterface interface {
	xorm.Interface
	driver.Tx
	io.Closer
	Begin() error
}

Jump to

Keyboard shortcuts

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