Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for preload (0.04 sec)

  1. 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)
  2. 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)
  3. 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 Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  4. cmd/erasure-server-pool-rebalance.go

    		}
    
    		timer := time.NewTimer(randSleepFor())
    		defer timer.Stop()
    
    		var (
    			quit     bool
    			traceMsg string
    			notify   bool // if status changed, notify nodes to reload rebalance metadata
    		)
    
    		for {
    			select {
    			case rebalErr := <-doneCh:
    				quit = true
    				notify = true
    				now := time.Now()
    				var status rebalStatus
    
    				switch {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Sep 04 20:47:24 UTC 2025
    - 28.9K bytes
    - Viewed (0)
  5. docs/en/docs/release-notes.md

    * 📝 Update admonitions in docs missing. PR [#11998](https://github.com/fastapi/fastapi/pull/11998) by [@tiangolo](https://github.com/tiangolo).
    * 🔨 Update docs.py script to enable dirty reload conditionally. PR [#11986](https://github.com/fastapi/fastapi/pull/11986) by [@tiangolo](https://github.com/tiangolo).
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Sep 05 12:48:45 UTC 2025
    - 544.1K bytes
    - Viewed (0)
Back to top