- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 134 for Preloads (0.05 seconds)
-
callbacks/preload.go
// If the current relationship is embedded or joined, current query will be ignored. // //nolint:cyclop func preloadEntryPoint(db *gorm.DB, joins []string, relationships *schema.Relationships, preloads map[string][]interface{}, associationsConds []interface{}) error { preloadMap := parsePreloadMap(db.Statement.Schema, preloads) // avoid random traversal of the map
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 11.7K bytes - Click Count (0) -
tests/preload_test.go
Preloads: []*Preload{ {Value: "p1"}, {Value: "p2"}, }, Join: Join{Value: "j1"}, }, } value2 := Value{ Name: "value2", Nested: Nested{ Preloads: []*Preload{ {Value: "p3"}, {Value: "p4"}, {Value: "p5"}, }, Join: Join{Value: "j2"}, }, } values := []*Value{&value1, &value2} if err := DB.Create(&values).Error; err != nil {Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Wed Jun 12 10:00:47 GMT 2024 - 15.9K bytes - Click Count (0) -
tests/chainable_api_test.go
t.Fatalf("Join name mismatch: %v", tx.Statement.Joins[0].Name) } // Preload tx = tx.Preload("Orders", "state != ?", "cancelled") args, ok := tx.Statement.Preloads["Orders"] if !ok || len(args) != 2 { t.Fatalf("Preload expected with args, got %v", tx.Statement.Preloads) } // Scopes: just ensure calling Scopes doesn't panic and returns a DB
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Jan 31 08:39:40 GMT 2026 - 3.9K bytes - Click Count (0) -
statement.go
newStmt.Vars = append(newStmt.Vars, stmt.Vars...) } for k, c := range stmt.Clauses { newStmt.Clauses[k] = c } for k, p := range stmt.Preloads { newStmt.Preloads[k] = p } if len(stmt.Joins) > 0 { newStmt.Joins = make([]join, len(stmt.Joins)) copy(newStmt.Joins, stmt.Joins) } if len(stmt.scopes) > 0 {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Sep 12 04:33:27 GMT 2025 - 20.9K bytes - Click Count (0) -
callbacks/query.go
if tx.Error != nil { return } db.AddError(preloadEntryPoint(tx, joins, &tx.Statement.Schema.Relationships, db.Statement.Preloads, db.Statement.Preloads[clause.Associations])) } } func AfterQuery(db *gorm.DB) { // clear the joins after query because preload need it if v, ok := db.Statement.Clauses["FROM"].Expression.(clause.From); ok { fromClause := db.Statement.Clauses["FROM"]Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 10.4K bytes - Click Count (3) -
chainable_api.go
db = scope(db) } return db } // Preload preload associations with given conditions // // // get all users, and preload all non-cancelled orders // db.Preload("Orders", "state NOT IN (?)", "cancelled").Find(&users) func (db *DB) Preload(query string, args ...interface{}) (tx *DB) { tx = db.getInstance() if tx.Statement.Preloads == nil { tx.Statement.Preloads = map[string][]interface{}{} }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Sep 19 01:49:06 GMT 2025 - 14.8K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/dict/protwords/ProtwordsFile.java
reload(updater); } } /** * Reloads the dictionary file with the specified updater. * @param updater the updater to use for processing items */ protected void reload(final ProtwordsUpdater updater) { try (CurlResponse curlResponse = dictionaryManager.getContentResponse(this)) { reload(updater, curlResponse.getContentAsStream());Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 20 07:09:00 GMT 2025 - 11.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/dict/stopwords/StopwordsFile.java
reload(updater); } } /** * Reloads the stopwords dictionary from its source file. * * @param updater An optional updater to apply changes during reload. * @throws DictionaryException if the dictionary file cannot be read. */ protected void reload(final StopwordsUpdater updater) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 20 07:09:00 GMT 2025 - 13K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/dict/stemmeroverride/StemmerOverrideFile.java
reload(updater); } } /** * Reloads the stemmer override dictionary from its source file. * * @param updater An optional updater to apply changes during reload. * @throws DictionaryException if the dictionary file cannot be read. */ protected void reload(final StemmerOverrideUpdater updater) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 20 05:56:45 GMT 2025 - 14.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java
try (MappingUpdater updater = new MappingUpdater(item)) { reload(updater); } } /** * Reloads the character mapping items from the dictionary file. * * @param updater the mapping updater to use for writing changes, or null for read-only reload */ protected void reload(final MappingUpdater updater) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 20 05:56:45 GMT 2025 - 15.3K bytes - Click Count (0)