- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,208 for updateFn (0.09 sec)
-
docs/em/docs/tutorial/body-updates.md
//// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛 ```Python hl_lines="32" {!> ../../docs_src/body_updates/tutorial002_py310.py!} ``` //// ### ⚙️ Pydantic `update` 🔢 🔜, 👆 💪 ✍ 📁 ♻ 🏷 ⚙️ `.copy()`, & 🚶♀️ `update` 🔢 ⏮️ `dict` ⚗ 💽 ℹ. 💖 `stored_item_model.copy(update=update_data)`: //// tab | 🐍 3️⃣.6️⃣ & 🔛 ```Python hl_lines="35" {!> ../../docs_src/body_updates/tutorial002.py!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.5K bytes - Viewed (0) -
docs/ru/docs/tutorial/body-updates.md
```Python hl_lines="34" {!> ../../docs_src/body_updates/tutorial002.py!} ``` //// ### Использование параметра `update` в Pydantic Теперь можно создать копию существующей модели, используя `.copy()`, и передать параметр `update` с `dict`, содержащим данные для обновления. Например, `stored_item_model.copy(update=update_data)`: //// tab | Python 3.10+ ```Python hl_lines="33"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.2K bytes - Viewed (0) -
docs/zh/docs/tutorial/body-updates.md
然后再用它生成一个只含已设置(在请求中所发送)数据,且省略了默认值的 `dict`: ```Python hl_lines="34" {!../../docs_src/body_updates/tutorial002.py!} ``` ### 使用 Pydantic 的 `update` 参数 接下来,用 `.copy()` 为已有模型创建调用 `update` 参数的副本,该参数为包含更新数据的 `dict`。 例如,`stored_item_model.copy(update=update_data)`: ```Python hl_lines="35" {!../../docs_src/body_updates/tutorial002.py!} ``` ### 更新部分数据小结 简而言之,更新部分数据应:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.6K bytes - Viewed (0) -
docs/pt/docs/tutorial/body-updates.md
//// tab | Python 3.8+ ```Python hl_lines="34" {!> ../../../docs_src/body_updates/tutorial002.py!} ``` //// ### Usando o parâmetro `update` do Pydantic Agora, você pode criar uma cópia do modelo existente usando `.model_copy()`, e passar o parâmetro `update` com um `dict` contendo os dados para atualizar. /// info | Informação
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Oct 14 09:16:06 UTC 2024 - 6K bytes - Viewed (0) -
tests/update_test.go
t.Errorf("failed to return updated age column") } } func TestUpdateWithDiffSchema(t *testing.T) { user := GetUser("update-diff-schema-1", Config{}) DB.Create(&user) type UserTemp struct { Name string } err := DB.Model(&user).Updates(&UserTemp{Name: "update-diff-schema-2"}).Error AssertEqual(t, err, nil) AssertEqual(t, "update-diff-schema-2", user.Name) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Dec 04 03:50:58 UTC 2023 - 30.3K bytes - Viewed (0) -
cmd/update-notifier.go
return fmt.Sprintf("You are running an older version of MinIO released %s, update: %s", newerThan, downloadURL) } // Return the nicely colored and formatted update message. return colorizeUpdateMessage(downloadURL, newerThan) } // colorizeUpdateMessage - inspired from Yeoman project npm package https://github.com/yeoman/update-notifier func colorizeUpdateMessage(updateString string, newerThan string) string {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Mar 09 03:07:08 UTC 2024 - 3.6K bytes - Viewed (0) -
cmd/update-notifier_test.go
line1 := fmt.Sprintf("%s %s", plainMsg, color.YellowBold(testCase.expectedSubStr)) line2 := fmt.Sprintf("Update: %s", color.CyanBold(testCase.dlURL)) // Uncomment below to see message appearance: // fmt.Println(output) switch { case testCase.dlURL == "" && output != "": t.Errorf("Testcase %d: no newer release available but got an update message: %s", i+1, output) case output == "" && testCase.dlURL != "" && testCase.older > 0:
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 31 15:36:19 UTC 2023 - 4.1K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java
} /** * Atomically updates the element at index {@code i} with the results of applying the given * function to the current and given values. * * @param i the index to update * @param x the update value * @param accumulatorFunction the accumulator function * @return the updated value * @since 31.1 */ @CanIgnoreReturnValue
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 14 17:55:55 UTC 2024 - 10.3K bytes - Viewed (0) -
tests/hooks_test.go
t.Fatalf("An error from before update callbacks happened when update with invalid value") } if DB.Where("code = ?", "update_callback").First(&Product{}).Error != nil { t.Fatalf("Record Should not be updated due to errors happened in before update callback") } if DB.Where("code = ?", "dont_update").First(&Product{}).Error == nil { t.Fatalf("Record Should not be updated due to errors happened in before update callback")
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 17 03:59:06 UTC 2024 - 16.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java
public synchronized void insert(final CharMappingItem item) { try (MappingUpdater updater = new MappingUpdater(item)) { reload(updater); } } @Override public synchronized void update(final CharMappingItem item) { try (MappingUpdater updater = new MappingUpdater(item)) { reload(updater); } } @Override
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 10.2K bytes - Viewed (0)