- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 132 for EMBEDDED (0.18 sec)
-
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 May 05 09:35:13 GMT 2024 - Last Modified: Mon Apr 15 03:20:20 GMT 2024 - 22.4K bytes - Viewed (0) -
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 May 05 09:35:13 GMT 2024 - Last Modified: Mon Apr 15 03:20:20 GMT 2024 - 32K bytes - Viewed (1) -
cmd/api-datatypes.go
DeleteMarkerMTime DeleteMarkerMTime `xml:"-"` // MinIO extensions to support delete marker replication ReplicationState ReplicationState `xml:"-"` } // DeleteMarkerMTime is an embedded type containing time.Time for XML marshal type DeleteMarkerMTime struct { time.Time } // MarshalXML encodes expiration date if it is non-zero and encodes // empty string otherwise
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Jan 03 09:28:52 GMT 2022 - 3K bytes - Viewed (0) -
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) -
tests/scan_test.go
package tests_test import ( "reflect" "sort" "strings" "testing" "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) type PersonAddressInfo struct { Person *Person `gorm:"embedded"` Address *Address `gorm:"embedded"` } func TestScan(t *testing.T) { user1 := User{Name: "ScanUser1", Age: 1} user2 := User{Name: "ScanUser2", Age: 10} user3 := User{Name: "ScanUser3", Age: 20}
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Sat May 28 14:18:07 GMT 2022 - 8.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/idn/StringprepTest.kt
assertThat(stringPrep("\u0627")).isEqualTo("\u0627") assertThat(stringPrep("\u0627\u0628")).isEqualTo("\u0627\u0628") assertThat(stringPrep("\u0627123\u0628")).isEqualTo("\u0627123\u0628") // LCat embedded assertThat(stringPrep("\u0627abc\u0628")).isNull() // RandALCat not last. assertThat(stringPrep("\u0627123")).isNull() // RandALCat not first. assertThat(stringPrep("123\u0628")).isNull()
Plain Text - Registered: Fri Mar 29 11:42:11 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.7K bytes - Viewed (0) -
build-logic/jvm/src/main/kotlin/gradlebuild.unittest-and-compile.gradle.kts
} fun Test.isUnitTest() = listOf("test", "writePerformanceScenarioDefinitions", "writeTmpPerformanceScenarioDefinitions").contains(name) fun Test.usesEmbeddedExecuter() = name.startsWith("embedded") fun Test.configureRerun() { if (project.rerunAllTests.get()) { doNotTrackState("All tests should re-run") } } fun Test.determineMaxRetries() = when {
Plain Text - Registered: Wed Mar 27 11:36:08 GMT 2024 - Last Modified: Wed Jan 17 13:36:27 GMT 2024 - 15.7K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial004_an_py310.py
@pytest.fixture(name="client") def get_client(): from docs_src.schema_extra_example.tutorial004_an_py310 import app client = TestClient(app) return client # Test required and embedded body parameters with no bodies sent @needs_py310 def test_post_body_example(client: TestClient): response = client.put( "/items/5", json={ "name": "Foo",
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 7.1K bytes - Viewed (0) -
schema/schema_helper_test.go
t.Errorf("schema relations count don't match, expects %d, got %d", len(rs.Relations), len(relations.Relations)) } if len(relations.EmbeddedRelations) != len(rs.EmbeddedRelations) { t.Errorf("schema embedded relations count don't match, expects %d, got %d", len(rs.EmbeddedRelations), len(relations.EmbeddedRelations)) } for n, rel := range relations.Relations { if r, ok := rs.Relations[n]; !ok {
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) -
tests/test_tutorial/test_schema_extra_example/test_tutorial004_an.py
from dirty_equals import IsDict from fastapi.testclient import TestClient from docs_src.schema_extra_example.tutorial004_an import app client = TestClient(app) # Test required and embedded body parameters with no bodies sent def test_post_body_example(): response = client.put( "/items/5", json={ "name": "Foo", "description": "A very nice Item", "price": 35.4,
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 6.9K bytes - Viewed (0)