Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for ref (0.17 sec)

  1. callbacks/query.go

    							for idx, ref := range relation.References {
    								if ref.OwnPrimaryKey {
    									exprs[idx] = clause.Eq{
    										Column: clause.Column{Table: parentTableName, Name: ref.PrimaryKey.DBName},
    										Value:  clause.Column{Table: tableAliasName, Name: ref.ForeignKey.DBName},
    									}
    								} else {
    									if ref.PrimaryValue == "" {
    										exprs[idx] = clause.Eq{
    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)
  2. schema/schema_helper_test.go

    			}
    
    			for _, ref := range relation.References {
    				var found bool
    				for _, rf := range r.References {
    					if (rf.PrimaryKey == nil || (rf.PrimaryKey.Name == ref.PrimaryKey && rf.PrimaryKey.Schema.Name == ref.PrimarySchema)) && (rf.PrimaryValue == ref.PrimaryValue) && (rf.ForeignKey.Name == ref.ForeignKey && rf.ForeignKey.Schema.Name == ref.ForeignSchema) && (rf.OwnPrimaryKey == ref.OwnPrimaryKey) {
    						found = true
    					}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:31:23 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  3. schema/relationship_test.go

    			"Cat": {
    				Relations: map[string]Relation{
    					"Toy": {
    						Name:        "Toy",
    						Type:        schema.HasOne,
    						Schema:      "User",
    						FieldSchema: "Toy",
    						Polymorphic: Polymorphic{ID: "ref_id", Type: "Type", Value: "users"},
    						References: []Reference{
    							{ForeignKey: "Type", ForeignSchema: "Toy", PrimaryValue: "users"},
    						},
    					},
    				},
    			},
    		})
    	})
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  4. istioctl/pkg/precheck/precheck.go

    						Namespace: resource.Namespace(deployment.GetNamespace()),
    						Name:      resource.LocalName(deployment.GetName()),
    					},
    					ResourceVersion: resource.Version(deployment.GetResourceVersion()),
    					Ref:             nil,
    					FieldsMap:       nil,
    				},
    			}
    			messages.Add(msg.NewUpdateIncompatibility(res,
    				"ENHANCED_RESOURCE_SCOPING", "1.22",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 02:57:30 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  5. schema/relationship.go

    		OnDelete: settings["ONDELETE"],
    	}
    
    	for _, ref := range rel.References {
    		if ref.PrimaryKey != nil && (rel.JoinTable == nil || ref.OwnPrimaryKey) {
    			constraint.ForeignKeys = append(constraint.ForeignKeys, ref.ForeignKey)
    			constraint.References = append(constraint.References, ref.PrimaryKey)
    
    			if ref.OwnPrimaryKey {
    				constraint.Schema = ref.ForeignKey.Schema
    				constraint.ReferenceSchema = rel.Schema
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  6. internal/rest/client.go

    }
    
    // Unwrap returns the error wrapped in NetworkError.
    func (n *NetworkError) Unwrap() error {
    	return n.Err
    }
    
    // Client - http based RPC client.
    type Client struct {
    	connected int32 // ref: https://golang.org/pkg/sync/atomic/#pkg-note-BUG
    	_         int32 // For 64 bits alignment
    	lastConn  int64
    
    	// HealthCheckFn is the function set to test for health.
    	// If not set the client will not keep track of health.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  7. callbacks/preload.go

    		)
    
    		for _, ref := range rel.References {
    			if ref.OwnPrimaryKey {
    				joinForeignKeys = append(joinForeignKeys, ref.ForeignKey.DBName)
    				joinForeignFields = append(joinForeignFields, ref.ForeignKey)
    				foreignFields = append(foreignFields, ref.PrimaryKey)
    			} else if ref.PrimaryValue != "" {
    				tx = tx.Where(clause.Eq{Column: ref.ForeignKey.DBName, Value: ref.PrimaryValue})
    			} else {
    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)
  8. cmd/erasure-object_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	// PutObjectPart should succeed even if part already exists. ref: https://github.com/minio/minio/issues/1930
    	_, err = objLayer.PutObjectPart(ctx, "bucket1", "mpartObj1", res.UploadID, 1, mustGetPutObjReader(t, bytes.NewReader(fiveMBBytes), 5*humanize.MiByte, md5Hex, ""), opts)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 36.8K bytes
    - Viewed (0)
  9. internal/bucket/lifecycle/and.go

    }
    
    // Validate - validates the And field
    func (a And) Validate() error {
    	// > This is used in a Lifecycle Rule Filter to apply a logical AND to two or more predicates.
    	// ref: https://docs.aws.amazon.com/AmazonS3/latest/API/API_LifecycleRuleAndOperator.html
    	// i.e, predCount >= 2
    	var predCount int
    	if a.Prefix.set {
    		predCount++
    	}
    	predCount += len(a.Tags)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/parse.go

    			return
    		}
    		operands = operands[1:]
    	}
    	// Search for symbol references.
    	for _, op := range operands {
    		p.start(op)
    		if name, abi, ok := p.funcAddress(); ok {
    			fmt.Fprintf(w, "ref %s %s\n", name, abi)
    		}
    	}
    }
    
    func (p *Parser) start(operand []lex.Token) {
    	p.input = operand
    	p.inputPos = 0
    }
    
    // address parses the operand into a link address structure.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
Back to top