- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 52 for db (0.01 seconds)
-
association.go
type Association struct { DB *DB Relationship *schema.Relationship Unscope bool Error error } func (db *DB) Association(column string) *Association { association := &Association{DB: db, Unscope: db.Statement.Unscoped} table := db.Statement.Table if association.Error = db.Statement.Parse(db.Statement.Model); association.Error == nil { db.Statement.Table = tableCreated: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun Oct 26 12:09:12 GMT 2025 - 23.6K bytes - Click Count (0) -
tests/generics_test.go
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun Nov 02 14:09:18 GMT 2025 - 33.7K bytes - Click Count (0) -
tests/serializer_test.go
} if err := DB.Create(&data).Error; err != nil { t.Fatalf("failed to create data, got error %v", err) } var result SerializerStruct if err := DB.Where("roles2 IS NULL AND roles3 = ?", "").First(&result, data.ID).Error; err != nil { t.Fatalf("failed to query data, got error %v", err) } AssertEqual(t, result, data) if err := DB.Model(&result).Update("roles", "").Error; err != nil {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sat Nov 22 03:14:36 GMT 2025 - 9.3K bytes - Click Count (0) -
generics.go
return c.with(func(db *DB) *DB { return db.Table(name, args...) }) } func (c chainG[T]) Scopes(scopes ...func(db *Statement)) ChainInterface[T] { return c.with(func(db *DB) *DB { for _, fc := range scopes { fc(db.Statement) } return db }) } func (c chainG[T]) Where(query interface{}, args ...interface{}) ChainInterface[T] { return c.with(func(db *DB) *DB {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun Nov 02 14:09:18 GMT 2025 - 25.9K bytes - Click Count (0) -
migrator/migrator.go
type GormDataTypeInterface interface { GormDBDataType(*gorm.DB, *schema.Field) string } // RunWithValue run migration with statement value func (m Migrator) RunWithValue(value interface{}, fc func(*gorm.Statement) error) error { stmt := &gorm.Statement{DB: m.DB} if m.DB.Statement != nil { stmt.Table = m.DB.Statement.Table stmt.TableExpr = m.DB.Statement.TableExpr } if table, ok := value.(string); ok {Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun Oct 26 12:31:09 GMT 2025 - 29.7K bytes - Click Count (0) -
docs_src/dependencies/tutorial007_py39.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 99 bytes - Click Count (0) -
clause/expression_test.go
}} for idx, result := range results { t.Run(fmt.Sprintf("case #%v", idx), func(t *testing.T) { user, _ := schema.Parse(&tests.User{}, &sync.Map{}, db.NamingStrategy) stmt := &gorm.Statement{DB: db, Table: user.Table, Schema: user, Clauses: map[string]clause.Clause{}} clause.Expr{SQL: result.SQL, Vars: result.Vars}.Build(stmt) if stmt.SQL.String() != result.Result {Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Tue Nov 04 07:04:52 GMT 2025 - 8.9K bytes - Click Count (0) -
.teamcity/src/main/kotlin/common/PerformanceTestExtensions.kt
) + os.javaInstallationLocations(arch) + listOf( "-Porg.gradle.performance.branchName" to "%teamcity.build.branch%", "-Porg.gradle.performance.db.url" to "%performance.db.url%", "-Porg.gradle.performance.db.username" to "%performance.db.username%", ).map { (key, value) -> os.escapeKeyValuePair(key, value) } const val INDIVIDUAL_PERFORAMCE_TEST_ARTIFACT_RULES = """ testing/*/build/test-results-*.zip => results
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Dec 22 07:15:16 GMT 2025 - 4K bytes - Click Count (0) -
.teamcity/src/main/kotlin/configurations/PerformanceTestsPass.kt
"-Porg.gradle.performance.branchName" to "%teamcity.build.branch%", "-Porg.gradle.performance.db.url" to "%performance.db.url%", "-Porg.gradle.performance.db.username" to "%performance.db.username%", "-Porg.gradle.performance.dependencyBuildIds" to dependencyBuildIds,
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Dec 22 07:15:16 GMT 2025 - 5.8K bytes - Click Count (0) -
docs_src/security/tutorial003_py310.py
email: str | None = None full_name: str | None = None disabled: bool | None = None class UserInDB(User): hashed_password: str def get_user(db, username: str): if username in db: user_dict = db[username] return UserInDB(**user_dict) def fake_decode_token(token): # This doesn't provide any security at all # Check the next versionCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 24 19:03:06 GMT 2025 - 2.4K bytes - Click Count (0)