- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for committed (0.15 sec)
-
tests/connpool_test.go
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Tue Feb 06 02:54:40 GMT 2024 - 5.5K bytes - Viewed (0) -
finisher_api.go
func (db *DB) Commit() *DB { if committer, ok := db.Statement.ConnPool.(TxCommitter); ok && committer != nil && !reflect.ValueOf(committer).IsNil() { db.AddError(committer.Commit()) } else { db.AddError(ErrInvalidTransaction) } return db } // Rollback rollbacks the changes in a transaction func (db *DB) Rollback() *DB { if committer, ok := db.Statement.ConnPool.(TxCommitter); ok && committer != nil {
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Fri Jan 12 08:42:21 GMT 2024 - 22.7K bytes - Viewed (0) -
tests/query_test.go
if result.ID == 0 { t.Errorf("Should not have ID because only selected name, %+v", result.ID) } if result.Name != "" || result.Age != 20 { t.Errorf("User Name should be omitted, got %v, Age should be ok, got %v", result.Name, result.Age) } } func TestOmitWithAllFields(t *testing.T) { user := User{Name: "OmitUser1", Age: 20} DB.Save(&user) var userResult User
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Thu Apr 25 12:22:53 GMT 2024 - 49.8K bytes - Viewed (0)