- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,110 for updateFn (0.16 sec)
-
internal/cachevalue/cache.go
// NewFromFunc allocates a new cached value instance and initializes it with an // update function, making it ready for use. func NewFromFunc[T any](ttl time.Duration, opts Opts, update func() (T, error)) *Cache[T] { return &Cache[T]{ ttl: ttl, updateFn: update, opts: opts, } } // InitOnce initializes the cache with a TTL and an update function. It is // guaranteed to be called only once.
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Mar 01 16:00:42 GMT 2024 - 4.2K bytes - Viewed (0) -
lib/time/update.bash
../mkzip ../../zoneinfo.zip cd ../.. files="update.bash zoneinfo.zip" modified=true if git diff --quiet $files; then modified=false fi if [ "$1" = "-work" ]; then echo Left workspace behind in work/. shift else rm -rf work fi if ! $modified; then echo No updates needed. exit 0 fi echo Updated for $CODE/$DATA: $files commitmsg="lib/time: update to $CODE/$DATA
Shell Script - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Feb 02 18:20:41 GMT 2024 - 1.8K bytes - Viewed (0) -
docs/en/docs/tutorial/body-updates.md
{!> ../../../docs_src/body_updates/tutorial002_py310.py!} ``` === "Python 3.9+" ```Python hl_lines="35" {!> ../../../docs_src/body_updates/tutorial002_py39.py!} ``` === "Python 3.8+" ```Python hl_lines="35" {!> ../../../docs_src/body_updates/tutorial002.py!} ``` ### Partial updates recap In summary, to apply partial updates you would:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 5.6K bytes - Viewed (0) -
docs/de/docs/tutorial/body-updates.md
Wie in `stored_item_model.model_copy(update=update_data)`: === "Python 3.10+" ```Python hl_lines="33" {!> ../../../docs_src/body_updates/tutorial002_py310.py!} ``` === "Python 3.9+" ```Python hl_lines="35" {!> ../../../docs_src/body_updates/tutorial002_py39.py!} ``` === "Python 3.8+" ```Python hl_lines="35" {!> ../../../docs_src/body_updates/tutorial002.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:26:37 GMT 2024 - 6.5K bytes - Viewed (0) -
tests/update_test.go
users := []*User{ GetUser("updates_01", Config{}), GetUser("updates_02", Config{}), } DB.Create(&users) lastUpdatedAt := users[0].UpdatedAt // update with map if res := DB.Model(users[0]).Updates(map[string]interface{}{"name": "updates_01_newname", "age": 100}); res.Error != nil || res.RowsAffected != 1 { t.Errorf("Failed to update users") } if users[0].Name != "updates_01_newname" || users[0].Age != 100 {
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Dec 04 03:50:58 GMT 2023 - 30.3K bytes - Viewed (0) -
docs/ru/docs/tutorial/body-updates.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 23 13:55:32 GMT 2024 - 8.2K bytes - Viewed (0) -
ci/official/requirements_updater/updater.sh
# ============================================================================== # script to run pip-compile for each requirement. # if there is a change in requirements.in then all lock files will be updated # accordingly # All commands run relative to this directory cd "$(dirname "${BASH_SOURCE[0]}")" mv BUILD.bazel BUILD SUPPORTED_VERSIONS=("3_9" "3_10" "3_11" "3_12")
Shell Script - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 15:05:45 GMT 2024 - 1.3K bytes - Viewed (0) -
callbacks/update.go
if i, ok := value.(BeforeUpdateInterface); ok { called = true db.AddError(i.BeforeUpdate(tx)) } } return called }) } } // Update update hook func Update(config *Config) func(db *gorm.DB) { supportReturning := utils.Contains(config.UpdateClauses, "RETURNING") return func(db *gorm.DB) { if db.Error != nil { return }
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Mar 18 05:44:55 GMT 2024 - 9.4K bytes - Viewed (1) -
ci/official/wheel_test/update_requirements.sh
cd "$(dirname "${BASH_SOURCE[0]}")" cd ../requirements_updater || exit 1 # Create the requirements_wheel_test.in file echo "tensorflow @ file://localhost/$TENSORFLOW_WHEEL_PATH" > requirements_wheel_test.in # Create the requirements_lock file REQUIREMENTS_LOCK_FILE="requirements_lock_${PYTHON_VERSION}.txt" touch "$REQUIREMENTS_LOCK_FILE" ### Update the requirements_lock file
Shell Script - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 31 18:17:57 GMT 2023 - 1.9K bytes - Viewed (0) -
ci/official/requirements_updater/release_updater.sh
# ============================================================================== # script to run pip-compile for keras, tensorboard, estimator deps. # if there is a change in requirements.in then all lock files will be updated # accordingly. mv BUILD.bazel BUILD SUPPORTED_VERSIONS=("3_9" "3_10" "3_11" "3_12") for VERSION in "${SUPPORTED_VERSIONS[@]}" do
Shell Script - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 15:05:45 GMT 2024 - 1.3K bytes - Viewed (0)