1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-25 23:02:22 +02:00

сделал RawMultipleSQL()

This commit is contained in:
Nikitin Aleksandr
2024-03-22 08:54:12 +03:00
parent dffe480caf
commit efa1ece363
3 changed files with 48 additions and 0 deletions

View File

@@ -440,6 +440,11 @@ func RawMultipleSQL(db *gorm.DB, TextSQL string) *gorm.DB {
return tx
}
//запустим транзакцию
tx.Begin()
defer tx.Commit()
//
TextSQL1 := ""
TextSQL2 := TextSQL