Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for assocOps (0.03 sec)

  1. generics.go

    func (c chainG[T]) processSet(items ...clause.Assigner) setCreateOrUpdateG[T] {
    	var (
    		assigns  []clause.Assignment
    		assocOps []clause.Association
    	)
    
    	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()...)
    		}
    	}
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Nov 02 14:09:18 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  2. tests/association_generics_test.go

    	}
    
    	// Test Set + Update with multiple association operations
    	assocOp1 := clause.Association{
    		Association: "Pets",
    		Type:        clause.OpCreate,
    		Set: []clause.Assignment{
    			{Column: clause.Column{Name: "name"}, Value: "test-pet-1"},
    		},
    	}
    
    	assocOp2 := clause.Association{
    		Association: "Toys",
    		Type:        clause.OpCreate,
    		Set: []clause.Assignment{
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Sep 12 05:42:26 UTC 2025
    - 37.9K bytes
    - Viewed (0)
Back to top