- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 284 for Relation (0.03 seconds)
-
schema/schema_helper_test.go
func checkSchemaRelation(t *testing.T, s *schema.Schema, relation Relation) { t.Run("CheckRelation/"+relation.Name, func(t *testing.T) { if r, ok := s.Relationships.Relations[relation.Name]; ok { if r.Name != relation.Name { t.Errorf("schema %v relation name expects %v, but got %v", s, r.Name, relation.Name) } if r.Type != relation.Type { t.Errorf("schema %v relation name expects %v, but got %v", s, r.Type, relation.Type)
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Thu Aug 28 02:57:17 GMT 2025 - 7.5K bytes - Click Count (0) -
schema/relationship.go
defer schema.Relationships.Mux.Unlock() // 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 }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun Nov 16 04:11:05 GMT 2025 - 23.1K bytes - Click Count (1) -
schema/relationship_test.go
"PostalAddress": { Relations: map[string]Relation{ "Country": { Name: "Country", Type: schema.BelongsTo, Schema: "Org", FieldSchema: "Country", References: []Reference{ {PrimaryKey: "ID", PrimarySchema: "Country", ForeignKey: "CountryID", ForeignSchema: "Org"}, }, }, }, }, "VisitingAddress": { Relations: map[string]Relation{ "Country": {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Aug 18 11:44:52 GMT 2025 - 26.5K bytes - Click Count (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"Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 10.4K bytes - Click Count (3) -
callbacks/preload.go
} names := make([]string, 0, len(embeddedRelations.Relations)+len(embeddedRelations.EmbeddedRelations)) for _, relation := range embeddedRelations.Relations { // skip first struct name names = append(names, strings.Join(relation.Field.EmbeddedBindNames[1:], ".")) } for _, relations := range embeddedRelations.EmbeddedRelations { names = append(names, embeddedValues(relations)...) } return names }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 11.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/rank/fusion/SearchResult.java
* * @return The total record count */ public long getAllRecordCount() { return allRecordCount; } /** * Gets the relation type indicating how the record count should be interpreted. * * @return The record count relation (e.g., "eq" for exact, "gte" for greater than or equal) */ public String getAllRecordCountRelation() { return allRecordCountRelation; }Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 8.8K bytes - Click Count (0) -
gorm.go
err = stmt.Parse(joinTable) if err != nil { return err } joinSchema = stmt.Schema relation, ok := modelSchema.Relationships.Relations[field] isRelation := ok && relation.JoinTable != nil if !isRelation { return fmt.Errorf("failed to find relation: %s", field) } for _, ref := range relation.References { f := joinSchema.LookUpField(ref.ForeignKey.DBName) if f == nil {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Tue Aug 26 06:24:29 GMT 2025 - 12.8K bytes - Click Count (0) -
dbflute_fess/dfprop/classificationDeploymentMap.dfprop
# # The relation between column and classification. # # This property uses classification names of classificationDefinitionMap. # The table name '$$ALL$$' means all tables are target. # The table names and column names are treated as case insensitive. # # You don't need specify here about table classifications. # Because table classifications are auto-deployed by relation information. # # Specification: # map: {
Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Sat Jul 04 22:46:31 GMT 2015 - 795 bytes - Click Count (0) -
src/main/java/org/codelibs/fess/entity/SearchRenderData.java
*/ public void setAllRecordCount(final long allRecordCount) { this.allRecordCount = allRecordCount; } /** * Sets the relation type for the record count (e.g., "eq", "gte"). * * @param allRecordCountRelation The record count relation */ public void setAllRecordCountRelation(final String allRecordCountRelation) { this.allRecordCountRelation = allRecordCountRelation; }Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 12.5K bytes - Click Count (0) -
schema/schema_test.go
}, }}, References: []Reference{{"ID", "User", "UserID", "user_friends", "", true}, {"ID", "User", "FriendID", "user_friends", "", false}}, }, } for _, relation := range relations { checkSchemaRelation(t, user, relation) } } func TestParseSchemaWithAdvancedDataType(t *testing.T) { user, err := schema.Parse(&AdvancedDataTypeUser{}, &sync.Map{}, schema.NamingStrategy{}) if err != nil {Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Thu Aug 28 02:57:17 GMT 2025 - 13.3K bytes - Click Count (0)