- Sort Score
- Result 10 results
- Languages All
Results 1731 - 1740 of 2,175 for catch (0.03 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt
// will not be transmitted. val conditionName: String val conditionValue: String? when { etag != null -> { conditionName = "If-None-Match" conditionValue = etag } lastModified != null -> { conditionName = "If-Modified-Since" conditionValue = lastModifiedString }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:24:48 UTC 2024 - 12K bytes - Viewed (0) -
tests/non_std_test.go
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)) { t.Error("RowsAffected should be correct when do batch update") } animal = Animal{From: "somewhere"} // No name fields, should be filled with the default value (galeone) DB.Save(&animal).Update("From", "a nice place") // The name field should be untouched
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed May 08 04:07:58 UTC 2024 - 1.9K bytes - Viewed (0) -
schema/constraint.go
package schema import ( "regexp" "strings" "gorm.io/gorm/clause" ) // reg match english letters and midline var regEnLetterAndMidline = regexp.MustCompile(`^[\w-]+$`) type CheckConstraint struct { Name string Constraint string // length(phone) >= 10 *Field } func (chk *CheckConstraint) GetName() string { return chk.Name } func (chk *CheckConstraint) Build() (sql string, vars []interface{}) {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Mar 18 07:33:54 UTC 2024 - 1.9K bytes - Viewed (0) -
istioctl/pkg/util/common.go
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" binversion "istio.io/istio/operator/version" ) var NeverMatch = &metav1.LabelSelector{ MatchLabels: map[string]string{ "istio.io/deactivated": "never-match", }, } var ManifestsFlagHelpStr = `Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-` + binversion.OperatorVersionString + `/manifests).`
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 1.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/CookieJar.kt
* empty list of cookies for the network request. * * Simple implementations will return the accepted cookies that have not yet expired and that * [match][Cookie.matches] [url]. */ fun loadForRequest(url: HttpUrl): List<Cookie> companion object { /** A cookie jar that never accepts any cookies. */ @JvmField val NO_COOKIES: CookieJar = NoCookies()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.4K bytes - Viewed (0) -
lib/time/update.bash
# # To review such a commit (as the reviewer), use: # # git codereview change NNNNNN # CL number # cd lib/time # ./update.bash # # If it prints "No updates needed.", then the generated files # in the CL match the update.bash in the CL. # Versions to use. CODE=2024b DATA=2024b set -e cd $(dirname $0) rm -rf work mkdir work go build -o work/mkzip mkzip.go # build now for correct paths in build errors
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Sep 23 14:25:08 UTC 2024 - 1.8K bytes - Viewed (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/extension/ReleasedVersionsDetails.kt
mostRecentSnapshot = releasedVersions.latestReleaseSnapshot.gradleVersion() val testedVersions = previousVersions.filter { it.gradleVersion() >= lowestTestedVersion } // Only use latest patch release of each Gradle version allTestedVersions = testedVersions.map { VersionNumber.parse(it.gradleVersion().version) } .groupBy { "${it.major}.${it.minor}" }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Mon Jun 10 06:17:20 UTC 2024 - 3.3K bytes - Viewed (0) -
docs_src/sql_databases/tutorial002.py
def read_hero(hero_id: int, session: Session = Depends(get_session)): hero = session.get(Hero, hero_id) if not hero: raise HTTPException(status_code=404, detail="Hero not found") return hero @app.patch("/heroes/{hero_id}", response_model=HeroPublic) def update_hero( hero_id: int, hero: HeroUpdate, session: Session = Depends(get_session) ): hero_db = session.get(Hero, hero_id) if not hero_db:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 2.6K bytes - Viewed (0) -
docs_src/sql_databases/tutorial002_an_py310.py
def read_hero(hero_id: int, session: SessionDep): hero = session.get(Hero, hero_id) if not hero: raise HTTPException(status_code=404, detail="Hero not found") return hero @app.patch("/heroes/{hero_id}", response_model=HeroPublic) def update_hero(hero_id: int, hero: HeroUpdate, session: SessionDep): hero_db = session.get(Hero, hero_id) if not hero_db:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 2.5K bytes - Viewed (0) -
docs/zh/docs/help-fastapi.md
**Star** 以后,其它用户就能更容易找到 FastAPI,并了解到已经有其他用户在使用它了。 ## 关注 GitHub 资源库的版本发布 您还可以在 GitHub 上 **Watch** FastAPI,(点击右上角的 **Watch** 按钮)<a href="https://github.com/fastapi/fastapi" class="external-link" target="_blank">https://github.com/fastapi/fastapi。</a>👀 您可以选择只关注发布(**Releases only**)。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 7.4K bytes - Viewed (0)