Versions in this module Expand all Collapse all v1 v1.0.1 Apr 9, 2025 v1.0.0 Feb 26, 2025 Changes in this version + type Column struct + Index *DbIndex + type DbColumn struct + ColumnDefault interface{} + ColumnType string + Comment string + DataType string + Extra string + IsNullAble string + Name string + OrdinalPosition int + type DbIndex struct + IndexName string + NonUnique int + SeqInIndex int + type IInformationSchema interface + FindColumns func(db, table string) (*Table, error) + FindIndex func(db, table, column string) ([]*DbIndex, error) + GetAllTables func(database string) ([]string, error) + func NewInformationSchemaModel(conn sqlx.SqlConn) IInformationSchema + type InformationSchemaModel struct + func (m *InformationSchemaModel) FindColumns(db, table string) (*Table, error) + func (m *InformationSchemaModel) FindIndex(db, table, column string) ([]*DbIndex, error) + func (m *InformationSchemaModel) GetAllTables(database string) ([]string, error) + type MockIInformationSchema struct + func NewMockIInformationSchema(ctrl *gomock.Controller) *MockIInformationSchema + func (m *MockIInformationSchema) EXPECT() *MockIInformationSchemaMockRecorder + func (m *MockIInformationSchema) FindColumns(db, table string) (*Table, error) + func (m *MockIInformationSchema) FindIndex(db, table, column string) ([]*DbIndex, error) + func (m *MockIInformationSchema) GetAllTables(database string) ([]string, error) + type MockIInformationSchemaMockRecorder struct + func (mr *MockIInformationSchemaMockRecorder) FindColumns(db, table interface{}) *gomock.Call + func (mr *MockIInformationSchemaMockRecorder) FindIndex(db, table, column interface{}) *gomock.Call + func (mr *MockIInformationSchemaMockRecorder) GetAllTables(database interface{}) *gomock.Call + type Table struct + Columns []*Column + Db string + Table string