Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for onCreate (0.04 seconds)

  1. 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)
  2. cmd/xl-storage.go

    	// Create top level directories if they don't exist.
    	// with mode 0o777 mkdir honors system umask.
    	mkdirAll(pathutil.Dir(filePath), 0o777, s.drivePath) // don't need to fail here
    
    	w, err := s.openFileDirect(filePath, os.O_CREATE|os.O_WRONLY|os.O_EXCL)
    	if err != nil {
    		return err
    	}
    	_, err = w.Write(alignedBuf)
    	w.Close()
    	if err != nil {
    		if isSysErrInvalidArg(err) {
    			err = errUnsupportedDisk
    		}
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 91.7K bytes
    - Click Count (0)
  3. 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)
Back to Top