Chore: Use vendored xorm instead of a fork (#77388)

* use vendored xorm instead of a fork

* bring back mssql driver

* backport azuresql driver

* restore NoAutoTime
This commit is contained in:
Serge Zaitsev
2023-11-06 16:09:49 +01:00
committed by GitHub
parent 7e1110f1f9
commit 5458ea18e7
6 changed files with 588 additions and 2 deletions
+9
View File
@@ -259,6 +259,15 @@ func (engine *Engine) SQL(query any, args ...any) *Session {
return session.SQL(query, args...)
}
// NoAutoTime Default if your struct has "created" or "updated" filed tag, the fields
// will automatically be filled with current time when Insert or Update
// invoked. Call NoAutoTime if you dont' want to fill automatically.
func (engine *Engine) NoAutoTime() *Session {
session := engine.NewSession()
session.isAutoClose = true
return session.NoAutoTime()
}
func (engine *Engine) loadTableInfo(table *core.Table) error {
colSeq, cols, err := engine.dialect.GetColumns(table.Name)
if err != nil {