Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for REFERENCES (0.17 sec)

  1. schema/relationship_test.go

    		References: []Reference{
    			{"Refer", "User", "UserReferID", "user_profiles", "", true},
    			{"UserRefer", "Profile", "ProfileRefer", "user_profiles", "", false},
    		},
    	}, Relation{
    		Name: "Profiles2", Type: schema.Many2Many, Schema: "User", FieldSchema: "Profile",
    		JoinTable: JoinTable{Name: "user_profiles2", Table: "user_profiles2"},
    		References: []Reference{
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  2. 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",
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Thu Jun 20 12:19:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. 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
    }
    
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  4. schema/schema_helper_test.go

    				}
    			}
    
    			if len(relation.References) != len(r.References) {
    				t.Errorf("schema %v relation's reference's count doesn't match, expects %v, but got %v", s, len(relation.References), len(r.References))
    			}
    
    			for _, ref := range relation.References {
    				var found bool
    				for _, rf := range r.References {
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Fri Dec 15 08:31:23 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  5. 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)
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  6. 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)
    				}
    			}
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  7. common-protos/k8s.io/api/rbac/v1beta1/generated.proto

      // stomped by the controller.
      // +optional
      optional AggregationRule aggregationRule = 3;
    }
    
    // ClusterRoleBinding references a ClusterRole, but not contain it.  It can reference a ClusterRole in the global namespace,
    // and adds who information via Subject.
    Registered: Wed Oct 30 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  8. common-protos/k8s.io/api/rbac/v1/generated.proto

    }
    
    // ClusterRoleBinding references a ClusterRole, but not contain it.  It can reference a ClusterRole in the global namespace,
    // and adds who information via Subject.
    message ClusterRoleBinding {
      // Standard object's metadata.
      // +optional
      optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    
      // Subjects holds references to the objects the role applies to.
      // +optional
    Registered: Wed Oct 30 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/rbac/v1alpha1/generated.proto

      // stomped by the controller.
      // +optional
      optional AggregationRule aggregationRule = 3;
    }
    
    // ClusterRoleBinding references a ClusterRole, but not contain it.  It can reference a ClusterRole in the global namespace,
    // and adds who information via Subject.
    Registered: Wed Oct 30 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. common-protos/k8s.io/api/resource/v1alpha2/generated.proto

    // ResourceClaimSpec defines how a resource is to be allocated.
    message ResourceClaimSpec {
      // ResourceClassName references the driver and additional parameters
      // via the name of a ResourceClass that was created as part of the
      // driver deployment.
      optional string resourceClassName = 1;
    
      // ParametersRef references a separate object with arbitrary parameters
      // that will be used by the driver when allocating a resource for the
    Registered: Wed Oct 30 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top