Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Trx (0.02 sec)

  1. tests/transaction_test.go

    	if err != nil {
    		t.Error(err)
    	}
    
    	// method with hooks
    	err = DB.Transaction(func(tx1 *gorm.DB) error {
    		// callMethod do
    		tx2 := tx1.Find(&User{}).Session(&gorm.Session{NewDB: true})
    		// trx in hooks
    		return tx2.Transaction(func(tx3 *gorm.DB) error {
    			return tx3.Where("user_id", user.ID).Delete(&Account{}).Error
    		})
    	})
    
    	if err != nil {
    		t.Error(err)
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. src/net/http/transport_test.go

    		rw.Write([]byte("Hello"))
    	})).ts
    
    	cases := []struct {
    		trailer Header
    		wantErr string
    	}{
    		{Header{"Trx": {"x\r\nX-Another-One"}}, `invalid trailer field value for "Trx"`},
    		{Header{"\r\nTrx": {"X-Another-One"}}, `invalid trailer field name "\r\nTrx"`},
    	}
    
    	for i, tt := range cases {
    		testName := fmt.Sprintf("%s%d", mode, i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top