- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 130 for preload (0.03 sec)
-
tests/create_test.go
t.Fatalf("errors happened when create: %v", err) } CheckUser(t, user, user) var user2 User DB.Preload("Account").Preload("Pets").Preload("Toys").Preload("Company").Preload("Manager").Preload("Team").Preload("Languages").Preload("Friends").Find(&user2, "id = ?", user.ID) CheckUser(t, user2, user) } func TestBulkCreateWithAssociations(t *testing.T) { users := []User{
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 09:55:20 UTC 2025 - 26.8K bytes - Viewed (0) -
tests/generics_test.go
result, err := db.Preload("Company", nil).Preload("Pets", nil).Where("name = ?", u.Name).First(ctx) if err != nil { t.Fatalf("Preload failed: %v", err) } if result.Name != u.Name || result.Company.Name != u.Company.Name || len(result.Pets) != len(u.Pets) { t.Fatalf("Preload expected %s, got %+v", u.Name, result) } results, err := db.Preload("Company", func(db gorm.PreloadBuilder) error {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Sep 04 13:13:16 UTC 2025 - 28K bytes - Viewed (0) -
tests/update_test.go
result.Friends = user2.Friends DB.Select("Name", "Account", "Toys", "Manager", "ManagerID", "Languages").Save(&result) var result2 User DB.Preload("Account").Preload("Pets").Preload("Toys").Preload("Company").Preload("Manager").Preload("Team").Preload("Languages").Preload("Friends").First(&result2, user.ID) result.Languages = append(user.Languages, result.Languages...) result.Toys = append(user.Toys, result.Toys...)
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 30.4K bytes - Viewed (0) -
tests/multi_primary_keys_test.go
DB.Model(&blog).Association("Tags").Find(&tags) if !compareTags(tags, []string{"tag1", "tag2", "tag3"}) { t.Fatalf("Should find 3 tags") } var blog1 Blog DB.Preload("Tags").Find(&blog1) if !compareTags(blog1.Tags, []string{"tag1", "tag2", "tag3"}) { t.Fatalf("Preload many2many relations") } // Replace tag5 := &Tag{Locale: "ZH", Value: "tag5"} tag6 := &Tag{Locale: "ZH", Value: "tag6"}
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 13.1K bytes - Viewed (0) -
generics.go
func (c chainG[T]) Order(value interface{}) ChainInterface[T] { return c.with(func(db *DB) *DB { return db.Order(value) }) } func (c chainG[T]) Preload(association string, query func(db PreloadBuilder) error) ChainInterface[T] { return c.with(func(db *DB) *DB { return db.Preload(association, func(tx *DB) *DB { q := preloadBuilder{db: tx.getInstance()} if query != nil { if err := query(&q); err != nil {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Sep 04 13:13:16 UTC 2025 - 15.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
MockResponse .Builder() .addInformationalResponse( MockResponse( code = HTTP_EARLY_HINTS, headers = headersOf("Link", "</style.css>; rel=preload; as=style"), ), ).build(), ) val request = Request( url = server.url("/"), body = "abc".toRequestBody("text/plain".toMediaType()), )
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 146.6K bytes - Viewed (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) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 14.9K bytes - Viewed (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());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 11.5K bytes - Viewed (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) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 12.6K bytes - Viewed (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) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 13.7K bytes - Viewed (0)