- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 68 for relationship (0.23 sec)
-
schema/relationship.go
return } relationships := &schema.Relationships for i, name := range relation.Field.BindNames { if i < len(relation.Field.BindNames)-1 { if relationships.EmbeddedRelations == nil { relationships.EmbeddedRelations = map[string]*Relationships{} } if r := relationships.EmbeddedRelations[name]; r == nil { relationships.EmbeddedRelations[name] = &Relationships{} }
Go - Registered: Sun Apr 14 09:35:11 GMT 2024 - Last Modified: Sun Feb 04 07:49:19 GMT 2024 - 22.4K bytes - Viewed (0) -
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 14 09:35:11 GMT 2024 - Last Modified: Fri Dec 15 08:36:08 GMT 2023 - 25K bytes - Viewed (0) -
association.go
if err := association.Relationship.Field.Set(association.DB.Statement.Context, reflectValue.Index(i), reflect.New(association.Relationship.Field.IndirectFieldType).Interface()); err != nil { association.Error = err break } if association.Relationship.JoinTable == nil { for _, ref := range association.Relationship.References {
Go - Registered: Sun Apr 14 09:35:11 GMT 2024 - Last Modified: Thu May 04 11:30:45 GMT 2023 - 21.2K bytes - Viewed (0) -
docs_src/sql_databases/sql_app_py310/models.py
from sqlalchemy.orm import relationship from .database import Base class User(Base): __tablename__ = "users" id = Column(Integer, primary_key=True) email = Column(String, unique=True, index=True) hashed_password = Column(String) is_active = Column(Boolean, default=True) items = relationship("Item", back_populates="owner") class Item(Base):
Python - Registered: Sun Apr 14 07:19:09 GMT 2024 - Last Modified: Tue Jan 09 14:35:33 GMT 2024 - 710 bytes - Viewed (0) -
docs_src/sql_databases/sql_app/models.py
from sqlalchemy.orm import relationship from .database import Base class User(Base): __tablename__ = "users" id = Column(Integer, primary_key=True) email = Column(String, unique=True, index=True) hashed_password = Column(String) is_active = Column(Boolean, default=True) items = relationship("Item", back_populates="owner") class Item(Base):
Python - Registered: Sun Apr 14 07:19:09 GMT 2024 - Last Modified: Tue Jan 09 14:35:33 GMT 2024 - 710 bytes - Viewed (0) -
docs_src/sql_databases/sql_app_py39/models.py
from sqlalchemy.orm import relationship from .database import Base class User(Base): __tablename__ = "users" id = Column(Integer, primary_key=True) email = Column(String, unique=True, index=True) hashed_password = Column(String) is_active = Column(Boolean, default=True) items = relationship("Item", back_populates="owner") class Item(Base):
Python - Registered: Sun Apr 14 07:19:09 GMT 2024 - Last Modified: Tue Jan 09 14:35:33 GMT 2024 - 710 bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/SubtypeTester.java
import java.util.Comparator; import javax.lang.model.element.Modifier; import org.checkerframework.checker.nullness.qual.Nullable; /** * Tester of subtyping relationships between two types. * * <p>Tests should inherit from this class, and declare subtyping relationship with public methods * annotated by {@link TestSubtype}. * * <p>These declaration methods rely on Java static type checking to make sure what we want to
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 6.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/RelationshipTester.java
Item<T> relatedInfo = getItem(groupNumber, relatedItemNumber); T item = itemInfo.value; T related = relatedInfo.value; assertWithTemplate( "$ITEM must be $RELATIONSHIP to $OTHER", itemInfo, relatedInfo, equivalence.equivalent(item, related)); int itemHash = equivalence.hash(item); int relatedHash = equivalence.hash(related);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Apr 25 11:57:12 GMT 2023 - 5.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/SubtypeTester.java
import java.util.Comparator; import javax.lang.model.element.Modifier; import org.checkerframework.checker.nullness.qual.Nullable; /** * Tester of subtyping relationships between two types. * * <p>Tests should inherit from this class, and declare subtyping relationship with public methods * annotated by {@link TestSubtype}. * * <p>These declaration methods rely on Java static type checking to make sure what we want to
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 6.1K bytes - Viewed (0) -
callbacks/query.go
for _, join := range db.Statement.Joins { if db.Statement.Schema != nil { var isRelations bool // is relations or raw sql var relations []*schema.Relationship relation, ok := db.Statement.Schema.Relationships.Relations[join.Name] if ok { isRelations = true relations = append(relations, relation) } else { // handle nested join like "Manager.Company"
Go - Registered: Sun Apr 14 09:35:11 GMT 2024 - Last Modified: Mon Jan 29 03:34:57 GMT 2024 - 9.9K bytes - Viewed (0)