- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for AssociationAssignments (0.06 sec)
-
clause/association.go
type AssociationAssigner interface { AssociationAssignments() []Association } // Assignments implements the Assigner interface so that AssociationOperation can be used as a Set method parameter func (ao Association) Assignments() []Assignment { return []Assignment{} } // AssociationAssignments implements the AssociationAssigner interface func (ao Association) AssociationAssignments() []Association { return []Association{ao}Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Fri Sep 12 05:42:26 UTC 2025 - 1.2K bytes - Viewed (0) -
tests/generics_test.go
// Verify it implements AssociationAssigner interface assocAssignments := assoc.AssociationAssignments() if len(assocAssignments) != 1 { t.Errorf("Association.AssociationAssignments() should return slice with one element, got %v", assocAssignments) } if assocAssignments[0].Association != "Orders" { t.Errorf("Association.AssociationAssignments()[0].Association should be 'Orders', got %v", assocAssignments[0].Association) }
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Sun Nov 02 14:09:18 UTC 2025 - 33.7K bytes - Viewed (0) -
generics.go
) for _, item := range items { // Check if it's an AssociationAssigner if assocAssigner, ok := item.(clause.AssociationAssigner); ok { assocOps = append(assocOps, assocAssigner.AssociationAssignments()...) } else { assigns = append(assigns, item.Assignments()...) } } return setCreateOrUpdateG[T]{ c: c, assigns: assigns, assocOps: assocOps, } }Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Sun Nov 02 14:09:18 UTC 2025 - 25.9K bytes - Viewed (0)