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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user