- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 1,447 for update (0.1 seconds)
-
tests/update_has_many_test.go
) func TestUpdateHasManyAssociations(t *testing.T) { user := *GetUser("update-has-many", Config{}) if err := DB.Create(&user).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } user.Pets = []*Pet{{Name: "pet1"}, {Name: "pet2"}} if err := DB.Save(&user).Error; err != nil { t.Fatalf("errors happened when update: %v", err) } var user2 User DB.Preload("Pets").Find(&user2, "id = ?", user.ID)
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Jan 06 07:02:53 GMT 2022 - 2K bytes - Click Count (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 UserCreated: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Jul 14 06:55:54 GMT 2022 - 1.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java
log.trace("update: " + this.updates + " " + offset + ":" + len); log.trace(Hexdump.toHexString(input, offset, Math.min(len, 256))); } if (len == 0) { return; /* CRITICAL */ } this.digest.update(input, offset, len); this.updates++; } /** * Finalize and return the calculated message digest * * @return calculated digest
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 11.9K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/AbstractFutureState.java
if (listeners == expect) { listeners = update; return true; } return false; } final @Nullable Listener gasListeners(Listener update) { Listener old = listeners; listeners = update; return old; } static boolean casValue(AbstractFutureState<?> future, @Nullable Object expect, Object update) { if (future.value == expect) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Feb 21 02:38:37 GMT 2025 - 1.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/CrawlJobTest.java
return 5; } }); ComponentUtil.register(new KeyMatchHelper() { @Override public void update() { // Mock update } }, "keyMatchHelper"); String result = crawlJob.execute(); assertNotNull(result); assertTrue(result.contains("Session Id:"));Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 25K bytes - Click Count (0) -
docs/zh/docs/tutorial/body-updates.md
{* ../../docs_src/body_updates/tutorial002_py310.py hl[32] *} ### 使用 Pydantic 的 `update` 参数 { #using-pydantics-update-parameter } 接下来,用 `.model_copy()` 为已有模型创建副本,并传入 `update` 参数,值为包含更新数据的 `dict`。 例如,`stored_item_model.model_copy(update=update_data)`: {* ../../docs_src/body_updates/tutorial002_py310.py hl[33] *} ### 部分更新小结 { #partial-updates-recap } 简而言之,应用部分更新应当: * (可选)使用 `PATCH` 而不是 `PUT`。 * 提取已存储的数据。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 3.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java
try (MappingUpdater updater = new MappingUpdater(item)) { reload(updater); } } /** * Updates an existing character mapping item in the dictionary file. * * @param item the character mapping item to update */ @Override public synchronized void update(final CharMappingItem item) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 20 05:56:45 GMT 2025 - 15.3K bytes - Click Count (0) -
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 } }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Jul 12 16:23:16 GMT 2024 - 6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/dict/mapping/CharMappingItem.java
private final String output; /** * Array of new input character sequences for update operations. * When not null, indicates this item has pending updates. */ private String[] newInputs; /** * The new output character sequence for update operations. * When not null, indicates this item has pending updates. */ private String newOutput; /**Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 20 07:09:00 GMT 2025 - 7.9K bytes - Click Count (0) -
tests/non_std_test.go
DB.Save(&animal) updatedAt1 := animal.UpdatedAt DB.Save(&animal).Update("name", "Francis") if updatedAt1.Format(time.RFC3339Nano) == animal.UpdatedAt.Format(time.RFC3339Nano) { t.Errorf("UpdatedAt should be updated") } var animals []Animal DB.Find(&animals) if count := DB.Model(Animal{}).Where("1=1").Update("CreatedAt", time.Now().Add(2*time.Hour)).RowsAffected; count != int64(len(animals)) {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Wed May 08 04:07:58 GMT 2024 - 1.9K bytes - Click Count (0)