Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomerColumnDataType ¶
func FillDNS ¶
func FillDNS(properties DbProperties) string
Types ¶
type ColumnMetaData ¶
type ColumnMetaData struct { Name string FieldType string GoType string IsUnsigned bool IsNullable bool TableName string OrmTagName string AddJsonTag bool }
func NewColumnMetaData ¶
func (ColumnMetaData) Tag ¶
func (c ColumnMetaData) Tag() string
type ColumnMetaDataList ¶
type ColumnMetaDataList []*ColumnMetaData
type DbProperties ¶
type Generator ¶
type Generator interface { // 创建 NewMetaData(properties *Properties) (Generator, error) // 初始化连接 ConnectionDB() error GetTableData() (TableMetaDataList, error) }
type Properties ¶
type TableMetaData ¶
type TableMetaData struct { Name string Columns ColumnMetaDataList }
func (TableMetaData) ColumnsNameWithPrefixAndIgnoreColumn ¶
func (t TableMetaData) ColumnsNameWithPrefixAndIgnoreColumn(col string, prefix string) string
func (TableMetaData) Imports ¶
func (t TableMetaData) Imports() []string
type TableMetaDataList ¶
type TableMetaDataList []*TableMetaData
Click to show internal directories.
Click to hide internal directories.