mirror of
https://github.com/go-gitea/gitea
synced 2025-07-19 16:58:37 +00:00
Remove NewSession method from db.Engine interface (#17577)
* Remove NewSession method from db.Engine interface * Fix bug * Some improvements * Fix bug * Fix test * Use XXXBean instead of XXXExample
This commit is contained in:
@@ -24,7 +24,7 @@ func GetPaginatedSession(p Paginator) *xorm.Session {
|
||||
}
|
||||
|
||||
// SetSessionPagination sets pagination for a database session
|
||||
func SetSessionPagination(sess *xorm.Session, p Paginator) *xorm.Session {
|
||||
func SetSessionPagination(sess Engine, p Paginator) *xorm.Session {
|
||||
skip, take := p.GetSkipTake()
|
||||
|
||||
return sess.Limit(take, skip)
|
||||
|
Reference in New Issue
Block a user