Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SkipDefaultTransaction (0.1 sec)

  1. gorm.go

    // Config GORM config
    type Config struct {
    	// GORM perform single create, update, delete operations in transactions by default to ensure database data integrity
    	// You can disable it by setting `SkipDefaultTransaction` to true
    	SkipDefaultTransaction bool
    	// NamingStrategy tables, columns naming strategy
    	NamingStrategy schema.Namer
    	// FullSaveAssociations full save associations
    	FullSaveAssociations bool
    	// Logger
    	Logger logger.Interface
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Oct 09 11:29:48 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. finisher_api.go

    				subtx.callbacks.Create().Execute(subtx)
    				if subtx.Error != nil {
    					return subtx.Error
    				}
    				rowsAffected += subtx.RowsAffected
    			}
    			return nil
    		}
    
    		if tx.SkipDefaultTransaction || reflectLen <= batchSize {
    			tx.AddError(callFc(tx.Session(&Session{})))
    		} else {
    			tx.AddError(tx.Transaction(callFc))
    		}
    
    		tx.RowsAffected = rowsAffected
    	default:
    		tx = db.getInstance()
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Sep 14 12:58:29 UTC 2024
    - 22.8K bytes
    - Viewed (0)
Back to top