Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IntoEntity ¶
func IntoEntity(tb *schema.Table) ens.MixinEntity
Types ¶
type ColumnDef ¶
type ColumnDef struct {
// contains filtered or unexported fields
}
func NewColumnDef ¶
func (*ColumnDef) Definition ¶
type ForeignKeyDef ¶
type ForeignKeyDef struct {
// contains filtered or unexported fields
}
func NewForeignKey ¶
func NewForeignKey(fk *schema.ForeignKey) *ForeignKeyDef
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 NewIndexDef ¶
func (*IndexDef) Definition ¶
type SQLTidb ¶
type SQLTidb struct{}
func (*SQLTidb) InspectSchema ¶
func (self *SQLTidb) InspectSchema(_ context.Context, arg *driver.InspectOption) (ens.Schemaer, error)
InspectSchema implements driver.Driver.
type TableDef ¶
type TableDef struct {
// contains filtered or unexported fields
}
func NewTableDef ¶
func (*TableDef) Definition ¶
func (*TableDef) PrimaryKey ¶
Click to show internal directories.
Click to hide internal directories.