Versions in this module Expand all Collapse all v1 v1.0.0 Jul 23, 2019 Changes in this version + type ColumnInfo struct + DataType string + EnumName string + IsNullable bool + Name string + func (c ColumnInfo) GoBaseType() string + func (c ColumnInfo) GoModelTag(isPrimaryKey bool) string + func (c ColumnInfo) GoModelType() string + func (c ColumnInfo) SqlBuilderColumnType() string + type EnumInfo struct + Values []string + func (e EnumInfo) Name() string + type SchemaInfo struct + DatabaseName string + EnumInfos []metadata.MetaData + Name string + TableInfos []metadata.MetaData + func GetSchemaInfo(db *sql.DB, databaseName, schemaName string) (schemaInfo SchemaInfo, err error) + type TableInfo struct + Columns []ColumnInfo + PrimaryKeys map[string]bool + SchemaName string + func GetTableInfo(db *sql.DB, dbName, schemaName, tableName string) (tableInfo TableInfo, err error) + func (t TableInfo) GetImports() []string + func (t TableInfo) GoStructName() string + func (t TableInfo) IsPrimaryKey(column string) bool + func (t TableInfo) MutableColumns() []ColumnInfo + func (t TableInfo) Name() string