Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for References (0.16 sec)

  1. schema/relationship_test.go

    		SharedTags []Tag `gorm:"many2many:shared_blog_tags;ForeignKey:id;References:id"`
    		LocaleTags []Tag `gorm:"many2many:locale_blog_tags;ForeignKey:id,locale;References:id"`
    	}
    
    	checkStructRelation(t, &Blog{},
    		Relation{
    			Name: "Tags", Type: schema.Many2Many, Schema: "Blog", FieldSchema: "Tag",
    			JoinTable: JoinTable{Name: "blog_tags", Table: "blog_tags"},
    			References: []Reference{
    				{"ID", "Blog", "BlogID", "blog_tags", "", true},
    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)
  2. callbacks/associations.go

    									}
    								}
    
    								elems = reflect.Append(elems, rv)
    							}
    						}
    					}
    
    					if elems.Len() > 0 {
    						assignmentColumns := make([]string, 0, len(rel.References))
    						for _, ref := range rel.References {
    							assignmentColumns = append(assignmentColumns, ref.ForeignKey.DBName)
    						}
    
    						saveAssociations(db, rel, elems, selectColumns, restricted, assignmentColumns)
    					}
    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)
  3. callbacks/query.go

    										Name:  s,
    										Alias: utils.NestedRelationName(tableAliasName, s),
    									})
    								}
    							}
    
    							exprs := make([]clause.Expression, len(relation.References))
    							for idx, ref := range relation.References {
    								if ref.OwnPrimaryKey {
    									exprs[idx] = clause.Eq{
    										Column: clause.Column{Table: parentTableName, Name: ref.PrimaryKey.DBName},
    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)
  4. schema/relationship.go

    	}
    
    	references := make([]interface{}, 0, len(constraint.References))
    	for _, field := range constraint.References {
    		references = append(references, clause.Column{Name: field.DBName})
    	}
    	vars = append(vars, clause.Table{Name: constraint.Name}, foreignKeys, clause.Table{Name: constraint.ReferenceSchema.Table}, references)
    	return
    }
    
    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)
  5. src/cmd/asm/internal/asm/parse.go

    		return
    	case "GLOBL", "PCDATA":
    		// No text definitions or symbol references.
    	case "DATA", "FUNCDATA":
    		// For DATA, operands[0] is defined symbol.
    		// For FUNCDATA, operands[0] is an immediate constant.
    		// Remaining operands may have references.
    		if len(operands) < 2 {
    			return
    		}
    		operands = operands[1:]
    	}
    	// Search for symbol references.
    	for _, op := range operands {
    		p.start(op)
    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)
  6. operator/cmd/mesh/test-util_test.go

    	}
    	if port != -1 {
    		out["port"] = port
    	}
    	if targetPort != -1 {
    		out["targetPort"] = targetPort
    	}
    	return out
    }
    
    // checkRoleBindingsReferenceRoles fails if any RoleBinding in objs references a Role that isn't found in objs.
    func checkRoleBindingsReferenceRoles(g *WithT, objs *ObjectSet) {
    	for _, o := range objs.kind(name2.RoleBindingStr).objSlice {
    		ou := o.Unstructured()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  7. association.go

    		var oldBelongsToExpr clause.Expression
    		// we have to record the old BelongsTo value
    		if association.Unscope && rel.Type == schema.BelongsTo {
    			var foreignFields []*schema.Field
    			for _, ref := range rel.References {
    				if !ref.OwnPrimaryKey {
    					foreignFields = append(foreignFields, ref.ForeignKey)
    				}
    			}
    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. istioctl/pkg/multicluster/remote_secret.go

    // In Kubernetes 1.24+ we can't assume the secrets will be referenced in the ServiceAccount or be created automatically.
    // See https://github.com/istio/istio/issues/38246
    func getOrCreateServiceAccountSecret(
    	serviceAccount *v1.ServiceAccount,
    	client kube.CLIClient,
    	opt RemoteSecretOptions,
    ) (*v1.Secret, error) {
    	ctx := context.TODO()
    
    	// manually specified secret, make sure it references the ServiceAccount
    	if opt.SecretName != "" {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Oct 11 01:43:17 GMT 2023
    - 24K bytes
    - Viewed (0)
  9. schema/schema_test.go

    	// check relations
    	relations := []Relation{
    		{
    			Name: "Account", Type: schema.HasOne, Schema: "User", FieldSchema: "Account",
    			References: []Reference{{"ID", "User", "UserID", "Account", "", true}},
    		},
    		{
    			Name: "Pets", Type: schema.HasMany, Schema: "User", FieldSchema: "Pet",
    			References: []Reference{{"ID", "User", "UserID", "Pet", "", true}},
    		},
    		{
    			Name: "Toys", Type: schema.HasMany, Schema: "User", FieldSchema: "Toy",
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:31:23 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  10. callbacks/preload.go

    	)
    
    	if rel.JoinTable != nil {
    		var (
    			joinForeignFields    = make([]*schema.Field, 0, len(rel.References))
    			joinRelForeignFields = make([]*schema.Field, 0, len(rel.References))
    			joinForeignKeys      = make([]string, 0, len(rel.References))
    		)
    
    		for _, ref := range rel.References {
    			if ref.OwnPrimaryKey {
    				joinForeignKeys = append(joinForeignKeys, ref.ForeignKey.DBName)
    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)
Back to top