Documentation ¶
Index ¶
- func IntoMixinEntity(tb *schema.Table) ens.MixinEntity
- func NewColumnDef(col *schema.Column) ens.ColumnDef
- func NewForeignKey(fk *schema.ForeignKey) ens.ForeignKeyDef
- func NewIndexDef(index *schema.Index) ens.IndexDef
- func NewTableDef(tb *schema.Table) ens.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 IntoMixinEntity ¶ added in v0.2.1
func IntoMixinEntity(tb *schema.Table) ens.MixinEntity
func NewForeignKey ¶
func NewForeignKey(fk *schema.ForeignKey) ens.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 (self *ForeignKeyDef) Definition() string
func (*ForeignKeyDef) ForeignKey ¶
func (self *ForeignKeyDef) ForeignKey() *schema.ForeignKey
type IndexDef ¶
type IndexDef struct {
// contains filtered or unexported fields
}
func (*IndexDef) Definition ¶
type MySQL ¶
type MySQL struct{}
func (*MySQL) InspectSchema ¶
func (self *MySQL) InspectSchema(ctx context.Context, arg *driver.InspectOption) (*ens.MixinSchema, error)
type SQL ¶
type SQL struct{}
func (*SQL) InspectSchema ¶
func (self *SQL) InspectSchema(_ context.Context, arg *driver.InspectOption) (*ens.MixinSchema, error)
InspectSchema implements driver.Driver.
type SQLTidb ¶
type SQLTidb struct{}
func (*SQLTidb) InspectSchema ¶
func (self *SQLTidb) InspectSchema(_ context.Context, arg *driver.InspectOption) (*ens.MixinSchema, error)
InspectSchema implements driver.Driver.
type TableDef ¶
type TableDef struct {
// contains filtered or unexported fields
}
func (*TableDef) Definition ¶
func (*TableDef) PrimaryKey ¶
Click to show internal directories.
Click to hide internal directories.