summaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2015-02-10 23:44:16 -0500
committerUnknwon <joe2010xtmf@163.com>2015-02-10 23:44:16 -0500
commit485ea6f14f38cfa5da4fa27865f62fcc7691ffb4 (patch)
tree77be68e9bb6a05fc2e66f6792ed143a2bff8f107 /models/models.go
parent28580aee63997e04c9b8136a7a189966b8f6b666 (diff)
downloadgitea-485ea6f14f38cfa5da4fa27865f62fcc7691ffb4.tar.gz
gitea-485ea6f14f38cfa5da4fa27865f62fcc7691ffb4.zip
models: make code change for session issue with SQLite3 #739
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/models/models.go b/models/models.go
index df030e51bb..3eeeabda3f 100644
--- a/models/models.go
+++ b/models/models.go
@@ -23,7 +23,10 @@ import (
type Engine interface {
Delete(interface{}) (int64, error)
Exec(string, ...interface{}) (sql.Result, error)
+ Get(interface{}) (bool, error)
Insert(...interface{}) (int64, error)
+ Id(interface{}) *xorm.Session
+ Where(string, ...interface{}) *xorm.Session
}
var (