Documentation ¶
Index ¶
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
func (MysqlDialect) ToSqlType ¶
func (m MysqlDialect) ToSqlType(col *ColumnMap) 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
func (Sqlite3Dialect) ToSqlType ¶
func (m Sqlite3Dialect) ToSqlType(col *ColumnMap) string
type TableMap ¶
type TableMap struct { Name string Columns []*ColumnMap ColumnIndexes []*IndexMap Indexes []indexer Tables map[*ast.StructType]string }
func NewTableMap ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.