Merge branch 'yyoshiki41-refactor/engine'

This commit is contained in:
Lunny Xiao 2016-07-19 15:57:10 +08:00
commit dddc985b86
1 changed files with 0 additions and 11 deletions

View File

@ -1181,17 +1181,6 @@ func (engine *Engine) mapType(v reflect.Value) *core.Table {
return table
}
// Map a struct to a table
func (engine *Engine) mapping(beans ...interface{}) (e error) {
engine.mutex.Lock()
defer engine.mutex.Unlock()
for _, bean := range beans {
v := rValue(bean)
engine.Tables[v.Type()] = engine.mapType(v)
}
return
}
// IsTableEmpty if a table has any reocrd
func (engine *Engine) IsTableEmpty(bean interface{}) (bool, error) {
session := engine.NewSession()