summaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-02-14 11:46:46 +0800
committerGitHub <noreply@github.com>2017-02-14 11:46:46 +0800
commit55ae78208e38eb92d916c0b3c45c4e9cebfc14c9 (patch)
tree701df21e8acd86ab623dca1a5e3f0f490db3af19 /models/models.go
parent1ec6b1a2589509ac855ec12b4f79e70ef0ee4f66 (diff)
downloadgitea-55ae78208e38eb92d916c0b3c45c4e9cebfc14c9.tar.gz
gitea-55ae78208e38eb92d916c0b3c45c4e9cebfc14c9.zip
Small optimization for getTeamIDs (#919)
* small optimization for getTeamIDs * rename getOrgTeamIDs to getUserTeamIDs and remove orderby
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/models.go b/models/models.go
index 7f0ef59547..27b49755aa 100644
--- a/models/models.go
+++ b/models/models.go
@@ -30,6 +30,7 @@ import (
// Engine represents a xorm engine or session.
type Engine interface {
+ Table(tableNameOrBean interface{}) *xorm.Session
Count(interface{}) (int64, error)
Decr(column string, arg ...interface{}) *xorm.Session
Delete(interface{}) (int64, error)