Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for relationship (0.2 sec)

  1. schema/relationship.go

    	has       RelationshipType = "has"
    )
    
    type Relationships struct {
    	HasOne    []*Relationship
    	BelongsTo []*Relationship
    	HasMany   []*Relationship
    	Many2Many []*Relationship
    	Relations map[string]*Relationship
    
    	EmbeddedRelations map[string]*Relationships
    }
    
    type Relationship struct {
    	Name                     string
    	Type                     RelationshipType
    	Field                    *Field
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  2. schema/relationship_test.go

    	if err != nil {
    		t.Fatalf("failed to parse schema, got error %v", err)
    	}
    
    	if len(userSchema.Relationships.Relations) != 1 {
    		t.Fatalf("expects 1 relations, but got %v", len(userSchema.Relationships.Relations))
    	}
    
    	if createdByRel, ok := userSchema.Relationships.Relations["CreatedBy"]; ok {
    		if createdByRel.FieldSchema != userSchema {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  3. callbacks/preload.go

    	return names
    }
    
    // preloadEntryPoint enters layer by layer. It will call real preload if it finds the right entry point.
    // If the current relationship is embedded or joined, current query will be ignored.
    //
    //nolint:cyclop
    func preloadEntryPoint(db *gorm.DB, joins []string, relationships *schema.Relationships, preloads map[string][]interface{}, associationsConds []interface{}) error {
    	preloadMap := parsePreloadMap(db.Statement.Schema, preloads)
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  4. common/scripts/metallb-native.yaml

                                  to.
                                type: string
                              operator:
                                description: operator represents a key's relationship
                                  to a set of values. Valid operators are In, NotIn, Exists
                                  and DoesNotExist.
                                type: string
                              values:
    Others
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Feb 23 23:56:31 GMT 2024
    - 63.9K bytes
    - Viewed (0)
  5. docs/en/docs/history-design-future.md

    Also, the best approach was to use already existing standards.
    
    So, before even starting to code **FastAPI**, I spent several months studying the specs for OpenAPI, JSON Schema, OAuth2, etc. Understanding their relationship, overlap, and differences.
    
    ## Design
    
    Then I spent some time designing the developer "API" I wanted to have as a user (as a developer using FastAPI).
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  6. migrator/migrator.go

    		return &uni, stmt.Table
    	}
    
    	getTable := func(rel *schema.Relationship) string {
    		switch rel.Type {
    		case schema.HasOne, schema.HasMany:
    			return rel.FieldSchema.Table
    		case schema.Many2Many:
    			return rel.JoinTable.Table
    		}
    		return stmt.Table
    	}
    
    	for _, rel := range stmt.Schema.Relationships.Relations {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Comparators.java

     * comparator utilities, see either {@code Comparator} itself (for Java 8+), or {@code
     * com.google.common.collect.Ordering} (otherwise).
     *
     * <h3>Relationship to {@code Ordering}</h3>
     *
     * <p>In light of the significant enhancements to {@code Comparator} in Java 8, the overwhelming
     * majority of usages of {@code Ordering} can be written using only built-in JDK APIs. This class is
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Comparators.java

     * comparator utilities, see either {@code Comparator} itself (for Java 8+), or {@code
     * com.google.common.collect.Ordering} (otherwise).
     *
     * <h3>Relationship to {@code Ordering}</h3>
     *
     * <p>In light of the significant enhancements to {@code Comparator} in Java 8, the overwhelming
     * majority of usages of {@code Ordering} can be written using only built-in JDK APIs. This class is
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 11 08:42:51 GMT 2024
    - 10K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/sql-databases.md

    ```Python hl_lines="1  10-13  21-24"
    {!../../../docs_src/sql_databases/sql_app/models.py!}
    ```
    
    ### Create the relationships
    
    Now create the relationships.
    
    For this, we use `relationship` provided by SQLAlchemy ORM.
    
    This will become, more or less, a "magic" attribute that will contain the values from other tables related to this one.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  10. common-protos/k8s.io/api/batch/v1/generated.proto

      // When specified, it should match one the container or initContainer
      // names in the pod template.
      // +optional
      optional string containerName = 1;
    
      // Represents the relationship between the container exit code(s) and the
      // specified values. Containers completed with success (exit code 0) are
      // excluded from the requirement check. Possible values are:
      //
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 21.1K bytes
    - Viewed (0)
Back to top