Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for Borins (0.18 sec)

  1. tests/joins_test.go

    					Name: "nested-joins-manager-namepet-1",
    					Toy: Toy{
    						Name: "nested-joins-manager-namepet-toy-1",
    					},
    				},
    			},
    			NamedPet: &Pet{Name: "nested-joins-namepet-1", Toy: Toy{Name: "nested-joins-namepet-toy-1"}},
    		},
    		{
    			Name:     "nested-joins-2",
    			Manager:  GetUser("nested-joins-manager-2", Config{Company: true, NamedPet: true}),
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 26 14:19:32 GMT 2023
    - 13.5K bytes
    - Viewed (1)
  2. callbacks/query.go

    			return
    		}
    
    		joins := make([]string, 0, len(db.Statement.Joins))
    		for _, join := range db.Statement.Joins {
    			joins = append(joins, join.Name)
    		}
    
    		tx := preloadDB(db, db.Statement.ReflectValue, db.Statement.Dest)
    		if tx.Error != nil {
    			return
    		}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Jan 29 03:34:57 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  3. chainable_api.go

    	}
    	return
    }
    
    // Joins specify Joins conditions
    //
    //	db.Joins("Account").Find(&user)
    //	db.Joins("JOIN emails ON emails.user_id = users.id AND emails.email = ?", "******@****.***").Find(&user)
    //	db.Joins("Account", DB.Select("id").Where("user_id = users.id AND name = ?", "someName").Model(&Account{}))
    func (db *DB) Joins(query string, args ...interface{}) (tx *DB) {
    	return joins(db, clause.LeftJoin, query, args...)
    }
    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. callbacks/associations.go

    						} else {
    							fv, _ := ref.PrimaryKey.ValueOf(db.Statement.Context, elem)
    							db.AddError(ref.ForeignKey.Set(db.Statement.Context, joinValue, fv))
    						}
    					}
    					joins = reflect.Append(joins, joinValue)
    				}
    
    				identityMap := map[string]bool{}
    				appendToElems := func(v reflect.Value) {
    					if _, zero := rel.Field.ValueOf(db.Statement.Context, v); !zero {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Apr 11 03:06:13 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  5. cni/pkg/install/cniconfig_test.go

    		})
    	}
    }
    
    const (
    	// For testing purposes, set kubeconfigFilename equivalent to the path in the test files and use __KUBECONFIG_FILENAME__
    	// CreateCNIConfigFile joins the MountedCNINetDir and KubeconfigFilename if __KUBECONFIG_FILEPATH__ was used
    	kubeconfigFilename   = "/path/to/kubeconfig"
    	cniNetworkConfigFile = "testdata/istio-cni.conf.template"
    	cniNetworkConfig     = `{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 17 02:22:22 GMT 2023
    - 15.4K bytes
    - Viewed (0)
  6. tests/sql_builder_test.go

    	var result User
    
    	newDB := DB.Session(&gorm.Session{NewDB: true, DryRun: true}).Table("users")
    
    	newDB.Clauses(
    		clause.From{
    			Tables: []clause.Table{{Name: "users"}},
    			Joins: []clause.Join{
    				{
    					Table: clause.Table{Name: "companies", Raw: false},
    					ON: clause.Where{
    						Exprs: []clause.Expression{
    							clause.Eq{
    								Column: clause.Column{
    									Table: "users",
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  7. association.go

    				tx.Clauses(clause.Expr{SQL: strings.Replace(joinStmt.SQL.String(), "WHERE ", "", 1), Vars: joinStmt.Vars})
    			}
    		}
    
    		tx = tx.Session(&Session{QueryFields: true}).Clauses(clause.From{Joins: []clause.Join{{
    			Table: clause.Table{Name: association.Relationship.JoinTable.Table},
    			ON:    clause.Where{Exprs: queryConds},
    		}}})
    	} else {
    		tx.Clauses(clause.Where{Exprs: queryConds})
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu May 04 11:30:45 GMT 2023
    - 21.2K bytes
    - Viewed (0)
  8. cmd/sts-handlers.go

    	// claim is only considered stable when subject and iss are used together
    	// this is to ensure that ParentUser doesn't change and we get to use
    	// parentUser as per the requirements for service accounts for OpenID
    	// based logins.
    	var subFromToken string
    	if v, ok := claims[subClaim]; ok {
    		subFromToken, _ = v.(string)
    	}
    
    	if subFromToken == "" {
    		writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 21:31:13 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  9. cmd/signature-v4-parser_test.go

    func generateCredentialStr(accessKey, date, region, service, requestVersion string) string {
    	return "Credential=" + joinWithSlash(accessKey, date, region, service, requestVersion)
    }
    
    // joins the argument strings with a '/' and returns it.
    func joinWithSlash(accessKey, date, region, service, requestVersion string) string {
    	return strings.Join([]string{
    		accessKey,
    		date,
    		region,
    		service,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 27.4K bytes
    - Viewed (0)
  10. tests/preload_test.go

    	}
    
    	var find1 Value
    	err := DB.Joins("Nested").Joins("Nested.Join").Preload("Nested.Preloads").First(&find1, value1.ID).Error
    	if err != nil {
    		t.Errorf("failed to find value, got err: %v", err)
    	}
    	AssertEqual(t, find1, value1)
    
    	var find2 Value
    	// Joins will automatically add Nested queries.
    	err = DB.Joins("Nested.Join").Preload("Nested.Preloads").First(&find2, value2.ID).Error
    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)
Back to top