Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Tx (0.02 sec)

  1. association.go

    		modelValue = reflect.New(association.Relationship.FieldSchema.ModelType).Interface()
    		tx         = association.DB.Model(modelValue)
    	)
    
    	if association.Relationship.JoinTable != nil {
    		if !tx.Statement.Unscoped && len(association.Relationship.JoinTable.QueryClauses) > 0 {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Oct 26 12:09:12 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  2. tests/generics_test.go

    	ctx := context.Background()
    	tx := DB.Begin()
    	if tx.Error != nil {
    		t.Fatalf("failed to begin transaction: %v", tx.Error)
    	}
    
    	users := []User{{Name: "TestGenericsTransaction", Age: 18}, {Name: "TestGenericsTransaction2", Age: 18}}
    	err := gorm.G[User](tx).CreateInBatches(ctx, &users, 2)
    
    	count, err := gorm.G[User](tx).Where("name like ?", "TestGenericsTransaction%").Count(ctx, "*")
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Nov 02 14:09:18 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  3. generics.go

    			return assocDB.Updates(setMap).Error
    		}
    	case schema.BelongsTo:
    		switch op.Type {
    		case clause.OpDelete:
    			return base.Transaction(func(tx *DB) error {
    				assocDB.Statement.ConnPool = tx.Statement.ConnPool
    				base.Statement.ConnPool = tx.Statement.ConnPool
    
    				if err := assocDB.Where("? IN (?)", primaryColumns, base.Select(ownerFKNames)).Delete(assocModel).Error; err != nil {
    					return err
    				}
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Nov 02 14:09:18 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  4. migrator/migrator.go

    			}
    
    			err = tx.Exec(createTableSQL, values...).Error
    			return err
    		}); err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    // DropTable drop table for values
    func (m Migrator) DropTable(values ...interface{}) error {
    	values = m.ReorderModels(values, false)
    	for i := len(values) - 1; i >= 0; i-- {
    		tx := m.DB.Session(&gorm.Session{})
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Oct 26 12:31:09 UTC 2025
    - 29.7K bytes
    - Viewed (0)
  5. cmd/metrics.go

    	connStats := globalConnStats.toServerConnStats()
    
    	// Network Sent/Received Bytes (internode)
    	ch <- prometheus.MustNewConstMetric(
    		prometheus.NewDesc(
    			prometheus.BuildFQName(interNodeNamespace, "tx", "bytes_total"),
    			"Total number of bytes sent to the other peer nodes by current MinIO server instance",
    			nil, nil),
    		prometheus.CounterValue,
    		float64(connStats.internodeOutputBytes),
    	)
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 24 04:06:31 UTC 2025
    - 16.7K bytes
    - Viewed (0)
Back to top