Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for support (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. tests/migrate_test.go

    						columnType.Name(), columnType.DatabaseTypeName(), dataType, columnType)
    				}
    			}
    		}
    	}
    }
    
    func TestTableType(t *testing.T) {
    	// currently it is only supported for mysql driver
    	if !isMysql() {
    		return
    	}
    
    	const tblName = "cities"
    	const tblSchema = "gorm"
    	const tblType = "BASE TABLE"
    	const tblComment = "foobar comment"
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top