package
0.0.0-20231213065948-336e064b488d
Repository: https://github.com/chaos-mesh/go-sqlsmith.git
Documentation: pkg.go.dev

# Functions

BufferOut parser ast node to SQL string.
GenerateDataItem rand data interface with given type.
GenerateDataItemString rand data with given type.
GenerateDateItem generate date item.
GenerateFloatItem generate float item.
GenerateIntItem generate int item.
GenerateRandDataItem rand data item with rand type.
GenerateStringItem generate string item.
GenerateTiDBDateItem generate date item.
GenerateTimestampItem generate timestamp item.
GetUUID return uuid.
Info ...
MaxInt ...
MinInt ...
Rd same to rand.Intn.
RdBool ...
RdCharset rand charset.
RdColumnOptions for rand column option with given type.
RdDataLen rand data with given type.
RdDate rand date.
RdFloat64 rand float64.
RdRange rand int in range.
RdString rand string with given length.
RdStringChar rand string with given length, letter chars only.
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'.
RdType rand data type.
TimeMustParse wrap time.Parse and panic when error.
Type2Tp conver type string to tp byte TODO: complete conversion map.