- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for CONFLICT (0.25 sec)
-
tests/create_test.go
AssertEqual(t, err, nil) u := OnConflictUser{ ID: "on-conflict-user-id", Name: "on-conflict-user-name", Email: "on-conflict-user-email", Mobile: "on-conflict-user-mobile", } err = DB.Create(&u).Error AssertEqual(t, err, nil) u.Name = "on-conflict-user-name-2" u.Email = "on-conflict-user-email-2" u.Mobile = ""
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Tue Mar 19 03:50:28 GMT 2024 - 26.4K bytes - Viewed (0) -
callbacks/create.go
} isDryRun := !db.DryRun && db.Error == nil if !isDryRun { return } ok, mode := hasReturning(db, supportReturning) if ok { if c, ok := db.Statement.Clauses["ON CONFLICT"]; ok { if onConflict, _ := c.Expression.(clause.OnConflict); onConflict.DoNothing { mode |= gorm.ScanOnConflictDoNothing } } rows, err := db.Statement.ConnPool.QueryContext(
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Apr 08 03:29:55 GMT 2024 - 12.5K bytes - Viewed (0)