- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 1,047 for updateFn (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/zh/docs/tutorial/body-updates.md
这段代码生成的 `dict` 只包含创建 `item` 模型时显式设置的数据,而不包括默认值。 然后再用它生成一个只含已设置(在请求中所发送)数据,且省略了默认值的 `dict`: {* ../../docs_src/body_updates/tutorial002.py hl[34] *} ### 使用 Pydantic 的 `update` 参数 接下来,用 `.copy()` 为已有模型创建调用 `update` 参数的副本,该参数为包含更新数据的 `dict`。 例如,`stored_item_model.copy(update=update_data)`: {* ../../docs_src/body_updates/tutorial002.py hl[35] *} ### 更新部分数据小结 简而言之,更新部分数据应: * 使用 `PATCH` 而不是 `PUT` (可选,也可以用 `PUT`);Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 3.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.java
public synchronized void insert(final SynonymItem item) { try (SynonymUpdater updater = new SynonymUpdater(item)) { reload(updater); } } @Override public synchronized void update(final SynonymItem item) { try (SynonymUpdater updater = new SynonymUpdater(item)) { reload(updater); } } @Override
Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Thu Nov 20 07:09:00 GMT 2025 - 15.9K bytes - Click Count (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) }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Jul 21 02:46:58 GMT 2025 - 30.4K bytes - Click Count (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 {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sat Mar 09 03:07:08 GMT 2024 - 3.6K bytes - Click Count (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:
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Jul 31 15:36:19 GMT 2023 - 4.1K bytes - Click Count (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"Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Thu Jul 14 06:55:54 GMT 2022 - 3.6K bytes - Click Count (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild.update-versions.gradle.kts
project.findProperty("currentReleasedVersionBuildTimestamp").toString() ) } val updateAgpVersions = tasks.register<UpdateAgpVersions>("updateAgpVersions") { comment = " Generated - Update by running `./gradlew updateAgpVersions`" currentGradleVersion = gradleModule.identity.version propertiesFile = layout.projectDirectory.file("gradle/dependency-management/agp-versions.properties")
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Fri Oct 24 09:10:28 GMT 2025 - 2.3K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategy.java
* This includes namespace updates and module conversion using domtrip. * Returns the upgraded document. */ private Document performModelUpgrade( Document pomDocument, UpgradeContext context, String currentVersion, String targetModelVersion) { // Create Editor from domtrip Document Editor editor = new Editor(pomDocument); // Update model version elementCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 16.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/indexer/IndexUpdater.java
} } return target; } /** * Updates a document with additional metadata and enhancements. * Adds click counts, favorite counts, document boosting, and generates document ID. * Also applies language-specific updates through the language helper. * * @param map the document data map to update with additional metadata */Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 32.9K bytes - Click Count (0) -
finisher_api.go
} } } return tx.Model(dest).Updates(assigns) } return tx } // Update updates column with value using callbacks. Reference: https://gorm.io/docs/update.html#Update-Changed-Fields func (db *DB) Update(column string, value interface{}) (tx *DB) { tx = db.getInstance() tx.Statement.Dest = map[string]interface{}{column: value} return tx.callbacks.Update().Execute(tx) }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 19 01:49:06 GMT 2025 - 22.9K bytes - Click Count (0)