Documentation ¶
Index ¶
- type ColumnSchema
- type ColumnType
- type Dialect
- type Field
- type ForeignKey
- type Index
- type MySQL
- func (d *MySQL) AddColumnSQL(field Field) []string
- func (d *MySQL) ColumnType(name string) string
- func (d *MySQL) CreateIndexSQL(index Index) []string
- func (d *MySQL) CreateSQL(table Table) []string
- func (d *MySQL) CreateTableSQL(table Table) []string
- func (d *MySQL) DeleteSQL(table Table) []string
- func (d *MySQL) DropColumnSQL(field Field) []string
- func (d *MySQL) DropIndexSQL(index Index) []string
- func (d *MySQL) DropTableSQL(table Table) []string
- func (d *MySQL) FindAllSQL(table Table) []string
- func (d *MySQL) FindSQL(table Table) []string
- func (d *MySQL) GoType(name string, nullable bool) string
- func (d *MySQL) ImportPackage(schema ColumnSchema) string
- func (d *MySQL) IsNullable(name string) bool
- func (d *MySQL) ModifyColumnSQL(oldField, newField Field) []string
- func (d *MySQL) ModifyPrimaryKeySQL(oldPrimaryKeys, newPrimaryKeys []Field) []string
- func (d *MySQL) Quote(s string) string
- func (d *MySQL) QuoteString(s string) string
- func (d *MySQL) UpdateSQL(table Table) []string
- type PrimaryKeyModifier
- type Table
- type Transactioner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnSchema ¶
type ColumnType ¶
type Dialect ¶
type Dialect interface { ColumnType(name string) string GoType(name string, nullable bool) string IsNullable(name string) bool ImportPackage(schema ColumnSchema) string Quote(s string) string QuoteString(s string) string CreateTableSQL(table Table) []string DropTableSQL(table Table) []string FindAllSQL(table Table) []string FindSQL(table Table) []string CreateSQL(table Table) []string DeleteSQL(table Table) []string UpdateSQL(table Table) []string AddColumnSQL(field Field) []string DropColumnSQL(field Field) []string ModifyColumnSQL(oldField, newField Field) []string CreateIndexSQL(index Index) []string DropIndexSQL(index Index) []string }
type ForeignKey ¶
type MySQL ¶
type MySQL struct {
// contains filtered or unexported fields
}
func (*MySQL) AddColumnSQL ¶
func (*MySQL) ColumnType ¶
func (*MySQL) CreateIndexSQL ¶
func (*MySQL) CreateTableSQL ¶
func (*MySQL) DropColumnSQL ¶
func (*MySQL) DropIndexSQL ¶
func (*MySQL) DropTableSQL ¶
func (*MySQL) FindAllSQL ¶
func (*MySQL) ImportPackage ¶
func (d *MySQL) ImportPackage(schema ColumnSchema) string
func (*MySQL) IsNullable ¶
func (*MySQL) ModifyColumnSQL ¶
func (*MySQL) ModifyPrimaryKeySQL ¶
func (*MySQL) QuoteString ¶
type PrimaryKeyModifier ¶
Click to show internal directories.
Click to hide internal directories.