Versions in this module Expand all Collapse all v1 v1.3.0 Jul 1, 2019 v1.2.0 Mar 17, 2018 Changes in this version + const DATABASE_DIR + const DBCONFIG_FILE + const DEFAULTDB_NAME + func Callback(fn func(*xorm.Session) error, session ...*xorm.Session) error + func CallbackByName(dbName string, fn func(*xorm.Session) error, session ...*xorm.Session) error + func DB(name ...string) (*xorm.Engine, bool) + func List() map[string]*xorm.Engine + func MustDB(name ...string) *xorm.Engine + func TransactCallback(fn func(*xorm.Session) error, session ...*xorm.Session) (err error) + func TransactCallbackByName(dbName string, fn func(*xorm.Session) error, session ...*xorm.Session) (err error) + type DBConfig struct + ColumnFix string + ColumnSnake bool + ColumnSpace string + Connstring string + DisableCache bool + Driver string + Enable bool + MaxIdleConns int + MaxOpenConns int + Name string + ShowExecTime bool + ShowSql bool + TableFix string + TableSnake bool + TableSpace string + func Config(name ...string) (DBConfig, bool) + func MustConfig(name ...string) DBConfig + type DBService struct + Default *xorm.Engine + List map[string]*xorm.Engine + type ILogger struct + func (i *ILogger) Debug(v ...interface{}) + func (i *ILogger) Debugf(format string, v ...interface{}) + func (i *ILogger) Error(v ...interface{}) + func (i *ILogger) Errorf(format string, v ...interface{}) + func (i *ILogger) Info(v ...interface{}) + func (i *ILogger) Infof(format string, v ...interface{}) + func (i *ILogger) IsShowSQL() bool + func (i *ILogger) Level() core.LogLevel + func (i *ILogger) SetLevel(l core.LogLevel) + func (i *ILogger) ShowSQL(show ...bool) + func (i *ILogger) Warn(v ...interface{}) + func (i *ILogger) Warnf(format string, v ...interface{}) + type Table interface + TableName func() string