- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for onCreate (0.04 seconds)
-
tests/association_generics_test.go
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 12 05:42:26 GMT 2025 - 37.9K bytes - Click Count (0) -
misc/go_android_exec/main.go
// See https://github.com/golang/go/issues/23795 or // https://issuetracker.google.com/issues/73230216. lockPath := filepath.Join(os.TempDir(), "go_android_exec-adb-lock") lock, err := os.OpenFile(lockPath, os.O_CREATE|os.O_RDWR, 0666) if err != nil { return 0, err } defer lock.Close() if err := syscall.Flock(int(lock.Fd()), syscall.LOCK_EX); err != nil { return 0, err }
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Aug 21 17:46:57 GMT 2023 - 15.3K 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, } if assoc.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) -
generics.go
func (s setCreateOrUpdateG[T]) executeAssociationOperation(ctx context.Context, op clause.Association) error { 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:
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)