package
Version:
v1.0.9
Opens a new window with list of versions in this module.
Published: Oct 6, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Column struct {
Name string `json:"name" gorm:"column:COLUMN_NAME"`
DataType string `json:"dataType" gorm:"column:DATA_TYPE"`
Extra string `gorm:"column:EXTRA"`
Comment string `json:"comment" gorm:"column:COLUMN_COMMENT"`
IsNullAble string `gorm:"column:IS_NULLABLE"`
}
type Index struct {
IndexName string `db:"INDEX_NAME"`
NonUnique int `db:"NON_UNIQUE"`
SeqInIndex int `db:"SEQ_IN_INDEX"`
}
DbIndex defines index of columns in information_schema.statistic
type Pattern map[string]struct{}
Model gets table information from information_schema
Table describes mysql table which contains database name, table name, columns, keys
Source Files
¶
Click to show internal directories.
Click to hide internal directories.