Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 38 for preloadDB (1.53 sec)

  1. README.md

    ## Overview
    
    * Full-Featured ORM
    * Associations (Has One, Has Many, Belongs To, Many To Many, Polymorphism, Single-table inheritance)
    * Hooks (Before/After Create/Save/Update/Delete/Find)
    * Eager loading with `Preload`, `Joins`
    * Transactions, Nested Transactions, Save Point, RollbackTo to Saved Point
    * Context, Prepared Statement Mode, DryRun Mode
    * Batch Insert, FindInBatches, Find To Map
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Oct 30 09:30:20 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  2. tests/joins_test.go

    		DB.Create(user)
    		userIDs = append(userIDs, user.ID)
    	}
    
    	var entries []User
    	assert.NotPanics(t, func() {
    		assert.NoError(t,
    			DB.Preload("Manager.Team").
    				Joins("Manager.Company").
    				Find(&entries).Error)
    	})
    }
    
    func TestJoinsPreload_Issue7013_RelationEmpty(t *testing.T) {
    	type (
    		Furniture struct {
    			gorm.Model
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 15K bytes
    - Viewed (0)
  3. callbacks/callbacks.go

    	createCallback.Clauses = config.CreateClauses
    
    	queryCallback := db.Callback().Query()
    	queryCallback.Register("gorm:query", Query)
    	queryCallback.Register("gorm:preload", Preload)
    	queryCallback.Register("gorm:after_query", AfterQuery)
    	queryCallback.Clauses = config.QueryClauses
    
    	deleteCallback := db.Callback().Delete()
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Wed Oct 27 23:56:55 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

        }
    
        /**
         * Gets the preload size for charset detection.
         *
         * @return the preload size in bytes
         */
        public int getPreloadSizeForCharset() {
            return preloadSizeForCharset;
        }
    
        /**
         * Sets the preload size for charset detection.
         *
         * @param preloadSizeForCharset the preload size in bytes to set
         */
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 29 07:42:33 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  5. 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 {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Sep 12 04:33:27 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  6. 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 Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Nov 02 14:09:18 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/SitemapsHelper.java

             * @return the sitemap set
             */
            public SitemapSet getSitemapSet() {
                return sitemapSet;
            }
    
        }
    
        /**
         * Sets the preload size for checking file format.
         * @param preloadSize the preload size in bytes
         */
        public void setPreloadSize(final int preloadSize) {
            this.preloadSize = preloadSize;
        }
    
        /**
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Fri Nov 14 13:19:40 UTC 2025
    - 34.9K bytes
    - Viewed (0)
  8. tests/associations_has_many_test.go

    	if err := DB.Model(&user).Association("Languages").Replace(Language{Name: "DE", Code: "de"}, Language{Name: "FR", Code: "fr"}); err != nil {
    		t.Error("expected association error to be not nil")
    	}
    
    	var result User
    	DB.Preload("Languages").Where("name = ?", "HasManyAssociationReplaceWithStructValue").Find(&result)
    	if len(result.Languages) != 2 {
    		t.Errorf("invalid languages found for user, got %v", result.Languages)
    	}
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Sep 12 04:33:27 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  9. tests/hooks_test.go

    		t.Errorf("should find product, but got error %v", err)
    	}
    
    	var productWithItem Product4
    	if err := DB.Session(&gorm.Session{SkipHooks: true}).Preload("Item").First(&productWithItem, "name = ?", product.Name).Error; err != nil {
    		t.Errorf("should find product, but got error %v", err)
    	}
    
    	if productWithItem.Item.AfterFindCallTimes != 0 {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Mon Jun 17 03:59:06 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  10. src/main/webapp/js/admin/adminlte.min.js.map

        this.fixLayoutHeight()\n    })\n\n    setTimeout(() => {\n      $('body.hold-transition').removeClass('hold-transition')\n    }, 50)\n\n    setTimeout(() => {\n      const $preloader = $(SELECTOR_PRELOADER)\n      if ($preloader) {\n        $preloader.css('height', 0)\n        setTimeout(() => {\n          $preloader.children().hide()\n        }, 200)\n      }\n    }, this._config.preloadDuration)\n  }\n\n  _max(numbers) {\n    // Calculate the maximum number in a list\n    let max = 0\n\n  ...
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Oct 26 01:49:09 UTC 2024
    - 132.4K bytes
    - Viewed (0)
Back to top