Documentation ¶
Index ¶
- Constants
- func Run(from string)
- type ColumnMap
- type Dialect
- type Field
- type IndexMap
- type MysqlDialect
- type PostgresqlDialect
- func (m PostgresqlDialect) CreateTableSuffix() string
- func (m PostgresqlDialect) DriverName() string
- func (m PostgresqlDialect) ForeignKey(option index.ForeignKeyOption) string
- func (m PostgresqlDialect) QuoteField(field string) string
- func (m PostgresqlDialect) ToSqlType(col *ColumnMap) (string, error)
- type Sqlite3Dialect
- type Table
- type TableMap
- type ViewMap
Constants ¶
View Source
const (
MYSQL_DEFAULT_VARCHAR_SIZE = "191"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MysqlDialect ¶
type MysqlDialect struct {
Collate string
}
func (MysqlDialect) CreateTableSuffix ¶
func (m MysqlDialect) CreateTableSuffix() string
func (MysqlDialect) DriverName ¶
func (m MysqlDialect) DriverName() string
func (MysqlDialect) ForeignKey ¶
func (m MysqlDialect) ForeignKey(option index.ForeignKeyOption) string
func (MysqlDialect) QuoteField ¶
func (m MysqlDialect) QuoteField(field string) string
type PostgresqlDialect ¶
type PostgresqlDialect struct {
Collate string
}
func (PostgresqlDialect) CreateTableSuffix ¶
func (m PostgresqlDialect) CreateTableSuffix() string
func (PostgresqlDialect) DriverName ¶
func (m PostgresqlDialect) DriverName() string
func (PostgresqlDialect) ForeignKey ¶
func (m PostgresqlDialect) ForeignKey(option index.ForeignKeyOption) string
func (PostgresqlDialect) QuoteField ¶
func (m PostgresqlDialect) QuoteField(field string) string
type Sqlite3Dialect ¶
type Sqlite3Dialect struct{}
func (Sqlite3Dialect) CreateTableSuffix ¶
func (m Sqlite3Dialect) CreateTableSuffix() string
func (Sqlite3Dialect) DriverName ¶
func (m Sqlite3Dialect) DriverName() string
func (Sqlite3Dialect) ForeignKey ¶
func (m Sqlite3Dialect) ForeignKey(option index.ForeignKeyOption) string
func (Sqlite3Dialect) QuoteField ¶
func (m Sqlite3Dialect) QuoteField(field string) string
type TableMap ¶
type TableMap struct { Name string Columns []*ColumnMap ColumnIndexes []*IndexMap Indexes []indexer Tables map[*ast.StructType]string EndOfDDLFileIndexes []indexer }
func NewTableMap ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.