Documentation
¶
Index ¶
- func NewColumnDef(col *schema.Column) carp.ColumnDef
- func NewForeignKey(fk *schema.ForeignKey) carp.ForeignKeyDef
- func NewIndexDef(index *schema.Index) carp.IndexDef
- func NewTableDef(tb *schema.Table) carp.TableDef
- type ColumnDef
- type ForeignKeyDef
- type IndexDef
- type MySQL
- type SQL
- type SQLTidb
- type TableDef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewForeignKey ¶
func NewForeignKey(fk *schema.ForeignKey) carp.ForeignKeyDef
Types ¶
type ColumnDef ¶
type ColumnDef struct {
// contains filtered or unexported fields
}
func (*ColumnDef) Definition ¶
type ForeignKeyDef ¶
type ForeignKeyDef struct {
// contains filtered or unexported fields
}
func (*ForeignKeyDef) Definition ¶
func (d *ForeignKeyDef) Definition() string
func (*ForeignKeyDef) ForeignKey ¶
func (d *ForeignKeyDef) ForeignKey() *schema.ForeignKey
type IndexDef ¶
type IndexDef struct {
// contains filtered or unexported fields
}
func (*IndexDef) Definition ¶
Click to show internal directories.
Click to hide internal directories.