- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for tTestTransactionWithHooks (0.11 sec)
-
tests/transaction_test.go
return nil }); err == nil { t.Errorf("should returns error when commit with closed conn, got error %v", err) } } func TestTransactionWithHooks(t *testing.T) { user := GetUser("tTestTransactionWithHooks", Config{Account: true}) DB.Create(&user) var err error err = DB.Transaction(func(tx *gorm.DB) error { return tx.Model(&User{}).Limit(1).Transaction(func(tx2 *gorm.DB) error {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sat Sep 14 12:58:29 UTC 2024 - 12.9K bytes - Viewed (0)