- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,092 for UPDATE (0.05 sec)
-
cmd/metacache.go
b += slashSeparator } return b } // update cache with new status. // The updates are conditional so multiple callers can update with different states. func (m *metacache) update(update metacache) { now := UTCNow() m.lastUpdate = now if update.lastHandout.After(m.lastHandout) { m.lastHandout = update.lastUpdate if m.lastHandout.After(now) { m.lastHandout = now } }Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Jul 12 16:23:16 UTC 2024 - 6K bytes - Viewed (0) -
tests/update_test.go
} lastUpdatedAt = user.UpdatedAt if err := DB.Model(user).Update("Age", 10).Error; err != nil { t.Errorf("errors happened when update: %v", err) } else if user.Age != 10 { t.Errorf("Age should equals to 10, but got %v", user.Age) } checkUpdatedAtChanged("Update", user.UpdatedAt) checkOtherData("Update") var result User if err := DB.Where("id = ?", user.ID).First(&result).Error; err != nil {
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 30.4K bytes - Viewed (0) -
clause/update_test.go
Result string Vars []interface{} }{ { []clause.Interface{clause.Update{}}, "UPDATE `users`", nil, }, { []clause.Interface{clause.Update{Modifier: "LOW_PRIORITY"}}, "UPDATE LOW_PRIORITY `users`", nil, }, { []clause.Interface{clause.Update{Table: clause.Table{Name: "products"}, Modifier: "LOW_PRIORITY"}}, "UPDATE LOW_PRIORITY `products`", nil, }, } for idx, result := range results {
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Tue Jun 02 01:18:01 UTC 2020 - 722 bytes - Viewed (0) -
tests/update_has_one_test.go
cusUser := CustomizeUser{ Name: "update-has-one-associations", Account: CustomizeAccount{ Number: number, Number2: number, }, } if err := DB.Create(&cusUser).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } cusUser.Account.Number += "-update" cusUser.Account.Number2 += "-update"Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Thu Jul 14 06:55:54 UTC 2022 - 3.6K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/AbstractByteHasher.java
protected abstract void update(byte b); /** Updates this hasher with the given bytes. */ protected void update(byte[] b) { update(b, 0, b.length); } /** Updates this hasher with {@code len} bytes starting at {@code off} in the given buffer. */ protected void update(byte[] b, int off, int len) { for (int i = off; i < off + len; i++) { update(b[i]); } }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 12:40:17 UTC 2025 - 3.9K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/project/ConnectedResource.java
public void addInclude(String include) { // Update the underlying Resource model super.addInclude(include); // Update the project's SourceRoots updateProjectSourceRoot(); } @Override public void removeInclude(String include) { // Update the underlying Resource model super.removeInclude(include); // Update the project's SourceRoots
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Nov 07 13:11:07 UTC 2025 - 4.5K bytes - Viewed (0) -
tests/association_generics_test.go
if rows != 0 { t.Fatalf("expected 0 rows affected for association-only update, got %d", rows) } // Verify the association was created using real database query AssertAssociationCount(t, &user, "Pets", 1, "after Set Update with association") } // Test Set + Update with Association OpCreate operation using real database func TestClauseAssociationSetUpdateWithOpCreate(t *testing.T) {Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Fri Sep 12 05:42:26 UTC 2025 - 37.9K bytes - Viewed (0) -
tests/update_belongs_to_test.go
user := *GetUser("update-belongs-to", Config{}) if err := DB.Create(&user).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } user.Company = Company{Name: "company-belongs-to-association"} user.Manager = &User{Name: "manager-belongs-to-association"} if err := DB.Save(&user).Error; err != nil { t.Fatalf("errors happened when update: %v", err) } var user2 UserRegistered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Thu Jul 14 06:55:54 UTC 2022 - 1.6K bytes - Viewed (0) -
cmd/storage-rest-common_gen.go
if dc.IsNil() { err = dc.ReadNil() if err != nil { err = msgp.WrapError(err, "Update") return } z.Update = nil } else { if z.Update == nil { z.Update = new(dataUsageEntry) } err = z.Update.DecodeMsg(dc) if err != nil { err = msgp.WrapError(err, "Update") return } } case "f": if dc.IsNil() { err = dc.ReadNil()
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 7.9K bytes - Viewed (0) -
tests/hooks_test.go
} if beforeUpdateCall != 1 { t.Fatalf("before update should not be called") } err = DB.Model([1]*Product5{&p}).Update("name", "update_name_3").Error if err != nil { t.Fatalf("should update success, but got err %v", err) } if beforeUpdateCall != 2 { t.Fatalf("before update should be called") } err = DB.Model([1]Product5{p}).Update("name", "update_name_4").ErrorRegistered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Mon Jun 17 03:59:06 UTC 2024 - 16.7K bytes - Viewed (0)