Versions in this module Expand all Collapse all v1 v1.0.1 Jun 16, 2021 v1.0.0 Jun 11, 2021 Changes in this version + type Column struct + Index *DbIndex + type ColumnData struct + Columns []*Column + Db string + Table string + func (c *ColumnData) Convert() (*Table, error) + type DbColumn struct + ColumnDefault interface{} + Comment string + DataType string + Extra string + IsNullAble string + Name string + OrdinalPosition int + type DbIndex struct + IndexName string + NonUnique int + SeqInIndex int + type Index struct + Columns []*Column + IndexType IndexType + type IndexType string + type InformationSchemaModel struct + func NewInformationSchemaModel(conn sqlx.SqlConn) *InformationSchemaModel + func (m *InformationSchemaModel) FindColumns(db, table string) (*ColumnData, error) + func (m *InformationSchemaModel) FindIndex(db, table, column string) ([]*DbIndex, error) + func (m *InformationSchemaModel) GetAllTables(database string) ([]string, error) + type Table struct + Columns []*Column + Db string + NormalIndex map[string][]*Column + PrimaryKey *Column + Table string + UniqueIndex map[string][]*Column