Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for after (0.14 sec)

  1. migrator/migrator.go

    			if field := stmt.Schema.LookUpField(name); field != nil {
    				name = field.DBName
    			}
    		}
    
    		return m.DB.Exec(
    			"ALTER TABLE ? DROP COLUMN ?", m.CurrentTable(stmt), clause.Column{Name: name},
    		).Error
    	})
    }
    
    // AlterColumn alter value's `field` column' type based on schema definition
    func (m Migrator) AlterColumn(value interface{}, field string) error {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  2. tests/query_test.go

    		t.Errorf("incorrect total batch, expects: %v, got %v", 6, totalBatch)
    	}
    
    	var count int64
    	DB.Model(&User{}).Where("name = ?", "find_in_batches_new").Count(&count)
    	if count != 6 {
    		t.Errorf("incorrect count after update, expects: %v, got %v", 6, count)
    	}
    }
    
    func TestFindInBatchesWithOffsetLimit(t *testing.T) {
    	users := []User{
    		*GetUser("find_in_batches_with_offset_limit", Config{}),
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
Back to top