mirror of
https://github.com/go-gitea/gitea
synced 2025-09-28 03:28:13 +00:00
@@ -12,7 +12,6 @@ import (
|
||||
"strings"
|
||||
|
||||
"xorm.io/xorm"
|
||||
"xorm.io/xorm/schemas"
|
||||
|
||||
_ "github.com/go-sql-driver/mysql" // Needed for the MySQL driver
|
||||
_ "github.com/lib/pq" // Needed for the Postgresql driver
|
||||
@@ -67,11 +66,6 @@ var (
|
||||
_ Engine = (*xorm.Session)(nil)
|
||||
)
|
||||
|
||||
// TableInfo returns table's information via an object
|
||||
func TableInfo(v any) (*schemas.Table, error) {
|
||||
return xormEngine.TableInfo(v)
|
||||
}
|
||||
|
||||
// RegisterModel registers model, if initFuncs provided, it will be invoked after data model sync
|
||||
func RegisterModel(bean any, initFunc ...func() error) {
|
||||
registeredModels = append(registeredModels, bean)
|
||||
|
Reference in New Issue
Block a user