Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSafeTable ¶
GetSafeTable escapes the golang keywords from sql table.
Types ¶
type Field ¶
type Field struct { NameOriginal string Name stringx.String DataType string Comment string SeqInIndex int OrdinalPosition int }
Field describes a table field
type Table ¶
type Table struct { Name stringx.String Db stringx.String PrimaryKey Primary UniqueIndex map[string][]*Field Fields []*Field }
Table describes a mysql table
func ConvertDataType ¶
ConvertDataType converts mysql data type into golang data type
func (*Table) ContainsTime ¶
ContainsTime returns true if contains golang type time.Time
Click to show internal directories.
Click to hide internal directories.