From 2e373f9edf391e472a3399c11fb8d8c708de8129 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 7 Sep 2018 10:44:17 +0800 Subject: [PATCH] more interfaces --- interface.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interface.go b/interface.go index 14707d98..33d2078e 100644 --- a/interface.go +++ b/interface.go @@ -72,6 +72,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 @@ -83,6 +84,7 @@ type EngineInterface interface { GetTableMapper() core.IMapper GetTZDatabase() *time.Location GetTZLocation() *time.Location + MapCacher(interface{}, core.Cacher) error NewSession() *Session NoAutoTime() *Session Quote(string) string @@ -97,6 +99,7 @@ type EngineInterface interface { SetSchema(string) SetTZDatabase(tz *time.Location) SetTZLocation(tz *time.Location) + ShowExecTime(...bool) ShowSQL(show ...bool) Sync(...interface{}) error Sync2(...interface{}) error