Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for TableType (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. migrator/table_type.go

    import (
    	"database/sql"
    )
    
    // TableType table type implements TableType interface
    type TableType struct {
    	SchemaValue  string
    	NameValue    string
    	TypeValue    string
    	CommentValue sql.NullString
    }
    
    // Schema returns the schema of the table.
    func (ct TableType) Schema() string {
    	return ct.SchemaValue
    }
    
    // Name returns the name of the table.
    func (ct TableType) Name() string {
    	return ct.NameValue
    }
    
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Fri May 05 07:58:27 GMT 2023
    - 688 bytes
    - Click Count (0)
  2. migrator/migrator.go

    }
    
    // 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")
    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)
  3. tests/migrate_test.go

    	}
    
    	tableType, err := DB.Table("cities").Migrator().TableType(&City{})
    	if err != nil {
    		t.Fatalf("failed to get table type, got error %v", err)
    	}
    
    	if tableType.Schema() != tblSchema {
    		t.Fatalf("expected tblSchema to be %s but got %s", tblSchema, tableType.Schema())
    	}
    
    	if tableType.Name() != tblName {
    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)
Back to Top