|
|
@@ -74,6 +74,7 @@ type EngineInterface interface {
|
|
|
|
|
|
Before(func(interface{})) *Session
|
|
|
Charset(charset string) *Session
|
|
|
+ ClearCache(...interface{}) error
|
|
|
CreateTables(...interface{}) error
|
|
|
DBMetas() ([]*core.Table, error)
|
|
|
Dialect() core.Dialect
|
|
|
@@ -85,16 +86,22 @@ type EngineInterface interface {
|
|
|
GetTableMapper() core.IMapper
|
|
|
GetTZDatabase() *time.Location
|
|
|
GetTZLocation() *time.Location
|
|
|
+ MapCacher(interface{}, core.Cacher) error
|
|
|
NewSession() *Session
|
|
|
NoAutoTime() *Session
|
|
|
Quote(string) string
|
|
|
SetCacher(string, core.Cacher)
|
|
|
+ SetConnMaxLifetime(time.Duration)
|
|
|
SetDefaultCacher(core.Cacher)
|
|
|
+ SetLogger(logger core.ILogger)
|
|
|
SetLogLevel(core.LogLevel)
|
|
|
SetMapper(core.IMapper)
|
|
|
+ SetMaxOpenConns(int)
|
|
|
+ SetMaxIdleConns(int)
|
|
|
SetSchema(string)
|
|
|
SetTZDatabase(tz *time.Location)
|
|
|
SetTZLocation(tz *time.Location)
|
|
|
+ ShowExecTime(...bool)
|
|
|
ShowSQL(show ...bool)
|
|
|
Sync(...interface{}) error
|
|
|
Sync2(...interface{}) error
|