- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for OpUpdate (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
generics.go
var r T base := s.c.g.apply(ctx).Model(r) switch op.Type { case clause.OpCreate: return s.handleAssociationCreate(ctx, base, op) case clause.OpUnlink, clause.OpDelete, clause.OpUpdate: return s.handleAssociation(ctx, base, op) default: return fmt.Errorf("unknown association operation type: %v", op.Type) } }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun Nov 02 14:09:18 GMT 2025 - 25.9K bytes - Click Count (0) -
tests/generics_test.go
operations := []struct { Type clause.AssociationOpType TypeName string }{ {clause.OpUnlink, "OpUnlink"}, {clause.OpDelete, "OpDelete"}, {clause.OpUpdate, "OpUpdate"}, {clause.OpCreate, "OpCreate"}, } for _, op := range operations { assoc := clause.Association{ Association: "Orders", Type: op.Type, }Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun Nov 02 14:09:18 GMT 2025 - 33.7K bytes - Click Count (0)