Documentation ¶
Index ¶
Constants ¶
View Source
const PRIMARY = "PRI"
PRIMARY is the mysql-default schema value hint. SQLite maps `pk=1` into this.
Variables ¶
View Source
var ColumnFields = []string{"COLUMN_NAME", "COLUMN_TYPE", "COLUMN_KEY", "COLUMN_COMMENT", "DATA_TYPE"}
ColumnFields lists database columns from Column{}
View Source
var TableFields = []string{"TABLE_NAME", "TABLE_COMMENT"}
TableFields lists database columns from Table{}
Functions ¶
Types ¶
type Column ¶
type Column struct { Name string `db:"COLUMN_NAME"` Type string `db:"COLUMN_TYPE"` Key string `db:"COLUMN_KEY"` Comment string `db:"COLUMN_COMMENT"` // Holds the clean data type DataType string `db:"DATA_TYPE"` }
Column is an information_schema record
Click to show internal directories.
Click to hide internal directories.