- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for onUpdate (0.05 seconds)
-
schema/relationship.go
OnDelete string OnUpdate string } func (constraint *Constraint) GetName() string { return constraint.Name } func (constraint *Constraint) Build() (sql string, vars []interface{}) { sql = "CONSTRAINT ? FOREIGN KEY ? REFERENCES ??" if constraint.OnDelete != "" { sql += " ON DELETE " + constraint.OnDelete } if constraint.OnUpdate != "" { sql += " ON UPDATE " + constraint.OnUpdate
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun Nov 16 04:11:05 GMT 2025 - 23.1K bytes - Click Count (1) -
CHANGELOG/CHANGELOG-1.36.md
- Client-go: default informer behavior now updates store state with all the objects in a list or relist, before calling handler OnDelete/OnAdd/OnUpdate methods for individual items which were deleted/added/removed. This ensures that the store state which can be inspected by handlers actually corresponds to a set of objects that existed at a particular resource version on the server. This behavior...
Created: Fri Apr 03 09:05:14 GMT 2026 - Last Modified: Thu Mar 19 23:38:00 GMT 2026 - 142.1K bytes - Click Count (0) -
tests/association_generics_test.go
AssertAssociationCount(t, user, "Pets", 1, "before update/delete") // Update pet name via OpUpdate updOp := clause.Association{Association: "Pets", Type: clause.OpUpdate, Set: []clause.Assignment{{Column: clause.Column{Name: "name"}, Value: "x"}}} if _, err := gorm.G[User](DB).Where("id = ?", user.ID).Set(updOp).Update(ctx); err != nil { t.Fatalf("OpUpdate failed: %v", err) } var got User
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Sep 12 05:42:26 GMT 2025 - 37.9K bytes - Click Count (0) -
clause/association.go
// AssociationOpType represents association operation types type AssociationOpType int const ( OpUnlink AssociationOpType = iota // Unlink association OpDelete // Delete association records OpUpdate // Update association records OpCreate // Create association records with assignments ) // Association represents an association operation type Association struct {Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Sep 12 05:42:26 GMT 2025 - 1.2K bytes - Click Count (0) -
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 Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:34:24 GMT 2026 - 26K 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 Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Dec 30 08:11:14 GMT 2025 - 34.9K bytes - Click Count (0)