Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for tx (0.04 seconds)

  1. tests/chainable_api_test.go

    	tx = tx.Distinct("name", "age")
    	if !tx.Statement.Distinct {
    		t.Fatalf("Distinct expected true")
    	}
    	if len(tx.Statement.Selects) != 2 || tx.Statement.Selects[0] != "name" {
    		t.Fatalf("Selects expected [name age], got %v", tx.Statement.Selects)
    	}
    
    	// Where
    	tx = tx.Where("age = ?", 20)
    	c, ok := tx.Statement.Clauses["WHERE"]
    	if !ok {
    		t.Fatalf("WHERE clause expected")
    	}
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Jan 31 08:39:40 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  2. gorm.go

    func (db *DB) Debug() (tx *DB) {
    	tx = db.getInstance()
    	return tx.Session(&Session{
    		Logger: db.Logger.LogMode(logger.Info),
    	})
    }
    
    // Set store value with key into current db instance's context
    func (db *DB) Set(key string, value interface{}) *DB {
    	tx := db.getInstance()
    	tx.Statement.Settings.Store(key, value)
    	return tx
    }
    
    // Get get value with key from current db instance's context
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  3. 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, "*")
    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)
  4. 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
    				}
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:34:24 GMT 2026
    - 26K bytes
    - Click Count (0)
  5. .github/workflows/codeql-analysis.yml

            if: ${{ matrix.language == 'java' }}
    
        - name: Disable checksum offloading
          # See: https://github.com/actions/virtual-environments/issues/1187#issuecomment-686735760
          run: sudo ethtool -K eth0 tx off rx off
    
        # Install and setup JDK 17
        - name: Setup JDK 17
          uses: actions/setup-java@v5
          with:
            distribution: temurin
            java-version: 17
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Dec 11 22:12:03 GMT 2025
    - 4K bytes
    - Click Count (0)
  6. 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{})
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:49:01 GMT 2026
    - 29.8K bytes
    - Click Count (0)
  7. tests/migrate_test.go

    	}
    
    	var err error
    	_ = DB.Migrator().DropTable(&RelationModel1{}, &RelationModel2{}, &RelationModel3{})
    
    	tx := DB.Session(&gorm.Session{})
    	tx.IgnoreRelationshipsWhenMigrating = true
    
    	err = tx.AutoMigrate(&RelationModel3{})
    	if err != nil {
    		t.Errorf("AutoMigrate err:%v", err)
    	}
    
    	// RelationModel3 should be existed
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:49:01 GMT 2026
    - 66.3K bytes
    - Click Count (0)
  8. android/guava/src/com/google/thirdparty/publicsuffix/PublicSuffixPatterns.java

    m-mo\u0007from-ms\u0007from-mt\u0007from-nc\u0007from-nd\u0007from-ne\u0007from-nh\u0007from-nj\u0007from-nm\u0007from-nv\u0007from-oh\u0007from-ok\u0007from-or\u0007from-pa\u0007from-pr\u0007from-ri\u0007from-sc\u0007from-sd\u0007from-tn\u0007from-tx\u0007from-ut\u0007from-va\u0007from-vt\u0007from-wa\u0007from-wi\u0007from-wv\u0007from-wy\ngeekgalaxy\u0008gentapps\u000cgentlentapis\u0007getmyip\u0005giize\u0011githubusercontent\u0006gleeze\ngoogleapis\ngooglecode\u000bgotpantheon\u000egrayjayl...
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 06 20:41:51 GMT 2026
    - 290.5K bytes
    - Click Count (1)
Back to Top