Documentation
¶
Index ¶
- func BufferOut(node ast.Node) (string, error)
- func GenerateDataItem(columnType string) interface{}
- func GenerateDataItemString(columnType string) string
- func GenerateDateItem() time.Time
- func GenerateFloatItem() float64
- func GenerateIntItem() int
- func GenerateRandDataItem() interface{}
- func GenerateStringItem() string
- func GenerateTiDBDateItem() tidbTypes.Time
- func Info(a ...interface{})
- func Rd(n int) int
- func RdCharset() string
- func RdColumnOptions(t string) []ast.ColumnOptionType
- func RdDataLen(columnType string) int
- func RdDate() time.Time
- func RdDateColumnOptions() (options []ast.ColumnOptionType)
- func RdFloat64() float64
- func RdRange(n, m int) int
- func RdString(length int) string
- func RdStringChar(length int) string
- func RdType() string
- func TimeMustParse(layout, value string) time.Time
- func Type2Tp(t string) byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDataItem ¶
func GenerateDataItem(columnType string) interface{}
GenerateDataItem rand data interface with given type
func GenerateDataItemString ¶
GenerateDataItemString rand data with given type
func GenerateDateItem ¶
func GenerateFloatItem ¶
func GenerateFloatItem() float64
func GenerateIntItem ¶
func GenerateIntItem() int
func GenerateRandDataItem ¶
func GenerateRandDataItem() interface{}
GenerateRandDataItem rand data item with rand type
func GenerateStringItem ¶
func GenerateStringItem() string
func GenerateTiDBDateItem ¶
func RdColumnOptions ¶
func RdColumnOptions(t string) []ast.ColumnOptionType
func RdDateColumnOptions ¶
func RdDateColumnOptions() (options []ast.ColumnOptionType)
func RdStringChar ¶
func TimeMustParse ¶
TimeMustParse wrap time.Parse and panic when error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.