Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DBDriver = map[string]Transformer{ "mysql": &MysqlDB{}, }
Functions ¶
func GetFileName ¶
Types ¶
type ColumnInfo ¶
type ForeignKey ¶
type MysqlDB ¶
type MysqlDB struct{}
func (*MysqlDB) GetColumns ¶
func (*MysqlDB) GetConstraints ¶
func (*MysqlDB) GetGoDataType ¶
type OrmTag ¶
type Table ¶
type Table struct { Name string Pk string Uk []string Fk map[string]*ForeignKey Columns []*Column ImportTimePkg bool }
func GetTableObjects ¶
func GetTableObjects(tbName []string, db *sql.DB, t Transformer) (tables []*Table)
func (*Table) MarshalColumn ¶
Click to show internal directories.
Click to hide internal directories.