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 GenerateTimestampItem(validTimestamp bool) time.Time
- func GetUUID() string
- func Info(a ...interface{})
- func MaxInt(a, b int) int
- func MinInt(a, b int) int
- func Rd(n int) int
- func RdBool() bool
- func RdCharset() string
- func RdColumnOptions(t string) (options []ast.ColumnOptionType)
- func RdDataLen(t string) int
- func RdDate() time.Time
- func RdFloat64() float64
- func RdRange(n, m int) int
- func RdString(length int) string
- func RdStringChar(length int) string
- func RdTimestamp() time.Time
- 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 GenerateRandDataItem ¶
func GenerateRandDataItem() interface{}
GenerateRandDataItem rand data item with rand type
func GenerateTiDBDateItem ¶
GenerateTiDBDateItem generate date item
func GenerateTimestampItem ¶
GenerateTimestampItem generate timestamp item
func RdColumnOptions ¶
func RdColumnOptions(t string) (options []ast.ColumnOptionType)
RdColumnOptions for rand column option with given type
func RdStringChar ¶
RdStringChar rand string with given length, letter chars only
func RdTimestamp ¶
RdTimestamp return same format as RdDate except rand range TIMESTAMP has a range of '1970-01-01 00:00:01' UTC to '2038-01-19 03:14:07'
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.