diff options
author | Unknwon <u@gogs.io> | 2016-07-26 17:26:48 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-07-26 17:26:48 +0800 |
commit | 2d76de2574d2e3734ed8e566845042e6fb281a6e (patch) | |
tree | 97e1bea2d1571b08a831aa8a73fea2793c6a6c17 /models/models.go | |
parent | 4d8b9055412abc3f135aa2fb4370f2d8c8246dbf (diff) | |
download | gitea-2d76de2574d2e3734ed8e566845042e6fb281a6e.tar.gz gitea-2d76de2574d2e3734ed8e566845042e6fb281a6e.zip |
#3281 fix x.Iterate returns nothing inside session scope with SQLite3
Diffstat (limited to 'models/models.go')
-rw-r--r-- | models/models.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/models.go b/models/models.go index 758e1e8270..6a3abc54b3 100644 --- a/models/models.go +++ b/models/models.go @@ -27,9 +27,10 @@ type Engine interface { Exec(string, ...interface{}) (sql.Result, error) Find(interface{}, ...interface{}) error Get(interface{}) (bool, error) + Id(interface{}) *xorm.Session Insert(...interface{}) (int64, error) InsertOne(interface{}) (int64, error) - Id(interface{}) *xorm.Session + Iterate(interface{}, xorm.IterFunc) error Sql(string, ...interface{}) *xorm.Session Where(string, ...interface{}) *xorm.Session } |