Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Support (0.27 sec)

  1. finisher_api.go

    		// close prepared statement, because SavePoint not support prepared statement.
    		// e.g. mysql8.0 doc: https://dev.mysql.com/doc/refman/8.0/en/sql-prepared-statements.html
    		var (
    			preparedStmtTx   *PreparedStmtTX
    			isPreparedStmtTx bool
    		)
    		// close prepared statement, because SavePoint not support prepared statement.
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  2. migrator/migrator.go

    	return nil, errors.New("not support")
    }
    
    // GetTypeAliases return database type aliases
    func (m Migrator) GetTypeAliases(databaseTypeName string) []string {
    	return nil
    }
    
    // TableType return tableType gorm.TableType and execErr error
    func (m Migrator) TableType(dst interface{}) (gorm.TableType, error) {
    	return nil, errors.New("not support")
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  3. tests/create_test.go

    		t.Fatalf("failed to create from map, got error %v", err)
    	}
    
    	var idVal int64
    	_, ok := mapValue1["id"].(uint)
    	if ok {
    		t.Skipf("This test case skipped, because the db supports returning")
    	}
    
    	idVal, ok = mapValue1["id"].(int64)
    	if !ok {
    		t.Fatal("ret result missing id")
    	}
    
    	if int64(result1.ID) != idVal {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 26.4K bytes
    - Viewed (0)
  4. tests/preload_suits_test.go

    	}
    }
    
    func TestManyToManyPreloadWithMultiPrimaryKeys(t *testing.T) {
    	if name := DB.Dialector.Name(); name == "sqlite" || name == "sqlserver" {
    		t.Skip("skip sqlite, sqlserver due to it doesn't support multiple primary keys with auto increment")
    	}
    
    	type (
    		Level1 struct {
    			ID           uint   `gorm:"primary_key;"`
    			LanguageCode string `gorm:"primary_key"`
    			Value        string
    		}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Mar 18 05:38:46 GMT 2022
    - 30.3K bytes
    - Viewed (0)
  5. tests/transaction_test.go

    			t.Fatalf("nested transaction should returns error")
    		}
    
    		if err := tx.First(&User{}, "name = ?", user1.Name).Error; err != nil {
    			t.Fatalf("Should not rollback record if disabled nested transaction support")
    		}
    
    		if err := tx.Transaction(func(tx2 *gorm.DB) error {
    			tx2.Create(&user2)
    
    			if err := tx2.First(&User{}, "name = ?", user2.Name).Error; err != nil {
    				t.Fatalf("Should find saved record")
    			}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Jun 10 13:05:19 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  6. tests/scanner_valuer_test.go

    	nullTime := sql.NullTime{}
    	err := nullTime.Scan(v)
    	t.Time = nullTime.Time
    	return err
    }
    
    func (t EmptyTime) Value() (driver.Value, error) {
    	return time.Now() /* pass tests, mysql 8 doesn't support 0000-00-00 by default */, nil
    }
    
    type NullString struct {
    	sql.NullString
    }
    
    type Point struct {
    	X, Y int
    }
    
    func (point Point) GormDataType() string {
    	return "geo"
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Jun 07 07:02:07 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  7. chainable_api.go

    //	db.Model(&user).Update("name", "hello")
    func (db *DB) Model(value interface{}) (tx *DB) {
    	tx = db.getInstance()
    	tx.Statement.Model = value
    	return
    }
    
    // Clauses Add clauses
    //
    // This supports both standard clauses (clause.OrderBy, clause.Limit, clause.Where) and more
    // advanced techniques like specifying lock strength and optimizer hints. See the
    // [docs] for more depth.
    //
    //	// add a simple limit clause
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  8. tests/update_test.go

    		t.Errorf("failed to find created record, got error: %v, result: %+v", err, result4)
    	}
    }
    
    // only sqlite, postgres, sqlserver support returning
    func TestUpdateReturning(t *testing.T) {
    	if DB.Dialector.Name() != "sqlite" && DB.Dialector.Name() != "postgres" && DB.Dialector.Name() != "sqlserver" {
    		return
    	}
    
    	users := []*User{
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Dec 04 03:50:58 GMT 2023
    - 30.3K bytes
    - Viewed (0)
  9. tests/multi_primary_keys_test.go

    }
    
    func TestManyToManyWithMultiPrimaryKeys(t *testing.T) {
    	if name := DB.Dialector.Name(); name == "sqlite" || name == "sqlserver" {
    		t.Skip("skip sqlite, sqlserver due to it doesn't support multiple primary keys with auto increment")
    	}
    
    	if name := DB.Dialector.Name(); name == "postgres" {
    		stmt := gorm.Statement{DB: DB}
    		stmt.Parse(&Blog{})
    		stmt.Schema.LookUpField("ID").Unique = true
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 12.8K bytes
    - Viewed (0)
  10. tests/associations_test.go

    	if err := DB.Model(member).Association("Profiles").Clear(); err == nil {
    		t.Fatalf("No error occurred during clearind not null association")
    	}
    }
    
    func TestForeignKeyConstraints(t *testing.T) {
    	tidbSkip(t, "not support the foreign key feature")
    
    	type Profile struct {
    		ID       uint
    		Name     string
    		MemberID uint
    	}
    
    	type Member struct {
    		ID      uint
    		Refer   uint `gorm:"uniqueIndex"`
    		Name    string
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Feb 08 08:29:09 GMT 2023
    - 10.9K bytes
    - Viewed (0)
Back to top