Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for Embedded (0.39 sec)

  1. callbacks/preload.go

    				if relation.Schema == s {
    					setPreloadMap(relation.Name, value, args)
    				}
    			}
    
    			for embedded, embeddedRelations := range s.Relationships.EmbeddedRelations {
    				for _, value := range embeddedValues(embeddedRelations) {
    					setPreloadMap(embedded, value, args)
    				}
    			}
    		} else {
    			setPreloadMap(preloadFields[0], value, args)
    		}
    	}
    	return preloadMap
    }
    
    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)
  2. okhttp/src/main/kotlin/okhttp3/Cookie.kt

       * Otherwise, they are cross-site URLs.
       *
       * When a URL is requested, it may be in the context of another URL.
       *
       *  * **Embedded resources like images and iframes** in browsers use the context as the page in
       *    the address bar and the subject is the URL of an embedded resource.
       *
       *  * **Potentially-destructive navigations such as HTTP POST calls** use the context as the page
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. tests/preload_test.go

    		EmbeddedAddress
    	}
    	type Org struct {
    		ID              int
    		PostalAddress   EmbeddedAddress `gorm:"embedded;embeddedPrefix:postal_address_"`
    		VisitingAddress EmbeddedAddress `gorm:"embedded;embeddedPrefix:visiting_address_"`
    		AddressID       *int
    		Address         *EmbeddedAddress
    		NestedAddress   NestedAddress `gorm:"embedded;embeddedPrefix:nested_address_"`
    	}
    
    	DB.Migrator().DropTable(&Org{}, &EmbeddedAddress{}, &Country{})
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  4. schema/relationship_test.go

    	}
    	type Org struct {
    		ID              int
    		PostalAddress   Address `gorm:"embedded;embeddedPrefix:postal_address_"`
    		VisitingAddress Address `gorm:"embedded;embeddedPrefix:visiting_address_"`
    		AddressID       int
    		Address         struct {
    			ID int
    			Address
    		}
    		NestedAddress *NestedAddress `gorm:"embedded;embeddedPrefix:nested_address_"`
    		CountryMixin
    	}
    
    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)
  5. schema/relationship.go

    func (schema *Schema) setRelation(relation *Relationship) {
    	// set non-embedded relation
    	if rel := schema.Relationships.Relations[relation.Name]; rel != nil {
    		if len(rel.Field.BindNames) > 1 {
    			schema.Relationships.Relations[relation.Name] = relation
    		}
    	} else {
    		schema.Relationships.Relations[relation.Name] = relation
    	}
    
    	// set embedded relation
    	if len(relation.Field.EmbeddedBindNames) <= 1 {
    		return
    	}
    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)
  6. schema/field.go

    				field.Creatable = false
    			}
    
    			if !strings.Contains(v, "update") {
    				field.Updatable = false
    			}
    		}
    	}
    
    	// Normal anonymous field or having `EMBEDDED` tag
    	if _, ok := field.TagSettings["EMBEDDED"]; ok || (field.GORMDataType != Time && field.GORMDataType != Bytes && !isValuer &&
    		fieldStruct.Anonymous && (field.Creatable || field.Updatable || field.Readable)) {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
  7. src/cmd/api/main_test.go

    	list := make([]string, n)
    	for i := range list {
    		list[i] = typ.Method(i).Name()
    	}
    	sort.Strings(list)
    	return list
    }
    
    // sortedEmbeddeds returns constraint types embedded in an
    // interface. It does not include embedded interface types or methods.
    func (w *Walker) sortedEmbeddeds(typ *types.Interface) []string {
    	n := typ.NumEmbeddeds()
    	list := make([]string, 0, n)
    	for i := 0; i < n; i++ {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  8. cmd/jwt.go

    		u, ok := globalIAMSys.GetUser(req.Context(), claims.AccessKey)
    		if !ok {
    			return nil, nil, false, errInvalidAccessKeyID
    		}
    		ucred := u.Credentials
    		// get embedded claims
    		eclaims, s3Err := checkClaimsFromToken(req, ucred)
    		if s3Err != ErrNone {
    			return nil, nil, false, errAuthentication
    		}
    
    		for k, v := range eclaims {
    			claims.MapClaims[k] = v
    		}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:14 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  9. .bazelrc

    #     rbe_linux_cuda_nvcc:            RBE options to build with GPU support using nvcc.
    #
    # Embedded Linux options (experimental and only tested with TFLite build yet)
    #     elinux:          General Embedded Linux options shared by all flavors.
    #     elinux_aarch64:  Embedded Linux options for aarch64 (ARM64) CPU support.
    #     elinux_armhf:    Embedded Linux options for armhf (ARMv7) CPU support.
    #
    # Release build options (for all operating systems)
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Apr 24 20:50:35 GMT 2024
    - 52.6K bytes
    - Viewed (2)
  10. doc/go_spec.html

    in a struct type:
    </p>
    
    <pre>
    struct {
    	T     // conflicts with embedded field *T and *P.T
    	*T    // conflicts with embedded field T and *P.T
    	*P.T  // conflicts with embedded field T and *T
    }
    </pre>
    
    <p>
    A field or <a href="#Method_declarations">method</a> <code>f</code> of an
    embedded field in a struct <code>x</code> is called <i>promoted</i> if
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top