Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for preloadDB (0.36 sec)

  1. callbacks/preload.go

    				tx.Statement.Unscoped = db.Statement.Unscoped
    				if err := preload(tx, rel, append(preloads[name], associationsConds...), preloadMap[name]); err != nil {
    					return err
    				}
    			}
    		} else {
    			return fmt.Errorf("%s: %w for schema %s", name, gorm.ErrUnsupportedRelation, db.Statement.Schema.Name)
    		}
    	}
    	return nil
    }
    
    func preloadDB(db *gorm.DB, reflectValue reflect.Value, dest interface{}) *gorm.DB {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  2. tests/preload_test.go

    	)
    
    	DB.Migrator().DropTable(&Preload{}, &Join{}, &Nested{}, &Value{})
    	DB.Migrator().AutoMigrate(&Preload{}, &Join{}, &Nested{}, &Value{})
    
    	value1 := Value{
    		Name: "value",
    		Nested: Nested{
    			Preloads: []*Preload{
    				{Value: "p1"}, {Value: "p2"},
    			},
    			Join: Join{Value: "j1"},
    		},
    	}
    	value2 := Value{
    		Name: "value2",
    		Nested: Nested{
    			Preloads: []*Preload{
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  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{}{}
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  4. 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{
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 26.4K bytes
    - Viewed (0)
  5. internal/config/browser/browser.go

    	browserHSTSIncludeSubdomains = "hsts_include_subdomains"
    	// browserHSTSPreload setting name for Strict-Transport-Security response header 'preload' flag (true or false)
    	browserHSTSPreload = "hsts_preload"
    	// browserReferrerPolicy setting name for Referrer-Policy response header
    	browserReferrerPolicy = "referrer_policy"
    
    	EnvBrowserCSPPolicy             = "MINIO_BROWSER_CONTENT_SECURITY_POLICY"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  6. errors.go

    	// ErrInvalidValueOfLength invalid values do not match length
    	ErrInvalidValueOfLength = errors.New("invalid association values, length doesn't match")
    	// ErrPreloadNotAllowed preload is not allowed when count is used
    	ErrPreloadNotAllowed = errors.New("preload is not allowed when count is used")
    	// ErrDuplicatedKey occurs when there is a unique key constraint violation
    	ErrDuplicatedKey = errors.New("duplicated key not allowed")
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 02:53:17 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  7. docs/en/mkdocs.yml

      mkdocstrings:
        handlers:
          python:
            options:
              extensions:
              - griffe_typingdoc
              show_root_heading: true
              show_if_no_docstring: true
              preload_modules:
              - httpx
              - starlette
              inherited_members: true
              members_order: source
              separate_signature: true
              unwrap_annotated: true
              filters:
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  8. cmd/common-main.go

    		isprel := globalBrowserConfig.IsHSTSPreload()
    		os.Setenv("CONSOLE_SECURE_STS_SECONDS", strconv.Itoa(hstsSeconds))
    		os.Setenv("CONSOLE_SECURE_STS_INCLUDE_SUB_DOMAINS", isubdom)
    		os.Setenv("CONSOLE_SECURE_STS_PRELOAD", isprel)
    	}
    
    	if valueRefer := globalBrowserConfig.GetReferPolicy(); valueRefer != "" {
    		os.Setenv("CONSOLE_SECURE_REFERRER_POLICY", valueRefer)
    	}
    
    	globalSubnetConfig.ApplyEnv()
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  9. .space/CODEOWNERS

    /compiler/ir/ir.inline/ "Kotlin Common Backend"
    /compiler/javac-wrapper/ "Kotlin Compiler Core" Simon.Ogorodnik
    /compiler/light-classes/ "Kotlin IDE Analysis Core"
    /compiler/plugin-api/ "Kotlin Compiler Core" Simon.Ogorodnik
    /compiler/preloader/ "Kotlin Compiler Core" Simon.Ogorodnik
    /compiler/psi/ "Kotlin Compiler Core" Simon.Ogorodnik
    /compiler/resolution/ "Kotlin Compiler Core" Simon.Ogorodnik
    /compiler/resolution.common/ "Kotlin Compiler Core" Simon.Ogorodnik
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Thu Apr 25 19:58:12 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/CallTest.kt

        server.enqueue(
          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()),
          )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
Back to top