Documentation
¶
Index ¶
- Variables
- func MustIn(sql string, args ...any) (string, []any)
- func MustNamed(inputSql string, arg any) (sql string, args []any)
- func NewProvider(engine *wrappedEngine) (gone.Vampire, gone.GonerOption)
- func NewXormEngine() (gone.Angel, gone.GonerId, gone.GonerOption, gone.GonerOption)
- func Priest(cemetery gone.Cemetery) error
- type ClusterNodeConf
- type Conf
- type Engine
- type Interface
- type NameMap
- type XInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var NameMapType = reflect.TypeOf(&NameMap{}).Elem()
Functions ¶
func NewProvider ¶ added in v1.1.1
func NewProvider(engine *wrappedEngine) (gone.Vampire, gone.GonerOption)
func NewXormEngine ¶
func NewXormEngine() (gone.Angel, gone.GonerId, gone.GonerOption, gone.GonerOption)
Types ¶
type ClusterNodeConf ¶ added in v1.1.1
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
Click to show internal directories.
Click to hide internal directories.