MCPcopy Create free account

hub / github.com/PingCAP-QE/go-sqlsmith / functions

Functions215 in github.com/PingCAP-QE/go-sqlsmith

↓ 38 callersFunctionRd
Rd same to rand.Intn
util/rand.go:25
↓ 16 callersMethodSetDB
SetDB set current database
sqlsmith.go:60
↓ 15 callersFunctionRdRange
RdRange rand int in range
util/rand.go:30
↓ 14 callersMethodLoadSchema
LoadSchema init schemas, tables and columns record[0] dbname record[1] table name record[2] table type record[3] column name record[4] column type
schema.go:31
↓ 14 callersMethodMustExec
(query string, args ...interface{})
tests/connect.go:24
↓ 13 callersFunctionnew
()
sqlsmith.go:47
↓ 9 callersFunctionGenerateDataItem
GenerateDataItem rand data interface with given type
util/generate_data_item.go:69
↓ 9 callersMethodWalk
Walk will walk the tree and fillin tables and columns data
sqlsmith.go:100
↓ 9 callersFunctionlog
(l string, args ...interface{})
tests/main.go:24
↓ 9 callersMethodwalkExprNode
(node ast.ExprNode, table *types.Table, column *types.Column)
stateflow/walker.go:207
↓ 8 callersFunctionlogError
(l string, args ...interface{})
tests/main.go:28
↓ 8 callersMethodrd
(n int)
rand.go:21
↓ 6 callersMethodInsertStmt
InsertStmt implement insert statement from AST
dml_sql.go:45
↓ 6 callersFunctionifDaylightTime
(t time.Time)
util/generate_data_item.go:137
↓ 5 callersMethodGetDB
GetDB get current database without nil
sqlsmith.go:70
↓ 5 callersMethodNext
Next returns data batch
data_generator.go:44
↓ 5 callersMethodRandColumn
RandColumn rand column from table
types/table.go:85
↓ 5 callersFunctionTimeMustParse
TimeMustParse wrap time.Parse and panic when error
util/util.go:36
↓ 5 callersMethodwalkTableName
(node *ast.TableName, fn bool, online bool)
stateflow/walker.go:165
↓ 4 callersMethodAddToInnerTables
AddToInnerTables Do NOT set InnerTableList directly
types/table.go:120
↓ 4 callersMethodClone
Clone copy table struct
types/table.go:66
↓ 4 callersMethodCreateTableStmt
CreateTableStmt create table
ddl_sql.go:17
↓ 4 callersMethodDeleteStmt
DeleteStmt implement delete statement from AST
dml_sql.go:51
↓ 4 callersMethodExec
(query string, args ...interface{})
cmd/executor.go:17
↓ 4 callersFunctionNew
New create SQLSmith instance
sqlsmith.go:43
↓ 4 callersFunctionRdDate
RdDate rand date
util/rand.go:46
↓ 4 callersFunctionRdStringChar
RdStringChar rand string with given length, letter chars only
util/rand.go:82
↓ 4 callersMethodSelectStmt
SelectStmt make random select statement SQL
dml_sql.go:27
↓ 4 callersMethodUpdateStmt
UpdateStmt make random update statement SQL
dml_sql.go:39
↓ 4 callersMethodbinaryOperationExpr
(depth, complex int)
dml_ast.go:164
↓ 4 callersMethodselectStmt
(depth int)
dml_ast.go:23
↓ 3 callersMethodAlterTableStmt
AlterTableStmt alter table
ddl_sql.go:24
↓ 3 callersFunctionGenerateStringItem
GenerateStringItem generate string item
util/generate_data_item.go:87
↓ 3 callersFunctionGenerateTimestampItem
GenerateTimestampItem generate timestamp item
util/generate_data_item.go:111
↓ 3 callersMethodGetColumns
GetColumns get ordered columns
types/table.go:102
↓ 3 callersMethodMustExec
(query string, args ...interface{})
cmd/connect.go:77
↓ 3 callersFunctionRdFloat64
RdFloat64 rand float64
util/rand.go:41
↓ 3 callersMethodSelectForUpdateStmt
SelectForUpdateStmt make random select statement SQL with for update lock
dml_sql.go:33
↓ 3 callersMethodgetSubTableName
()
stateflow/util.go:21
↓ 3 callersFunctionlog
(l string, args ...interface{})
cmd/main.go:29
↓ 3 callersFunctionlogError
(l string, args ...interface{})
cmd/main.go:33
↓ 3 callersMethodrandColumns
(table *types.Table)
stateflow/schema.go:124
↓ 3 callersMethodrandTable
(newName bool, fn bool, online bool)
stateflow/schema.go:76
↓ 3 callersMethodtableHintsExpr
()
dml_ast.go:109
↓ 3 callersMethodwalkHintList
(hintLength int, table *types.Table)
stateflow/walker.go:223
↓ 3 callersMethodwalkResultSetNode
(node ast.ResultSetNode)
stateflow/walker.go:147
↓ 3 callersMethodwalkSelectStmt
(node *ast.SelectStmt)
stateflow/walker.go:64
↓ 3 callersMethodwalkSubqueryExpr
(node *ast.SubqueryExpr)
stateflow/walker.go:405
↓ 2 callersMethodAddOption
AddOption add option for column
types/column.go:49
↓ 2 callersMethodBatchData
BatchData generate testing data by schema in given batch return SQLs with insert statement
data_gen.go:27
↓ 2 callersFunctionBufferOut
BufferOut parser ast node to SQL string
util/util.go:26
↓ 2 callersMethodCreateIndexStmt
CreateIndexStmt create index
ddl_sql.go:33
↓ 2 callersFunctionGenerateFloatItem
GenerateFloatItem generate float item
util/generate_data_item.go:97
↓ 2 callersFunctionGenerateFuncCallExpr
GenerateFuncCallExpr generate random builtin chain
builtin/function.go:24
↓ 2 callersFunctionGenerateIntItem
GenerateIntItem generate int item
util/generate_data_item.go:92
↓ 2 callersMethodGetCurrDBName
GetCurrDBName returns current selected dbname
sqlsmith.go:65
↓ 2 callersFunctionMinInt
MinInt ...
util/util.go:45
↓ 2 callersFunctionRdTimestamp
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'
util/rand.go:57
↓ 2 callersMethodReConnect
(dsn string)
cmd/connect.go:58
↓ 2 callersMethodReConnect
(dsn string)
tests/connect.go:32
↓ 2 callersMethodReloadSchema
()
cmd/connect.go:85
↓ 2 callersMethodexprNode
(cons bool)
dml_ast.go:238
↓ 2 callersMethodfreeOnlineOtherTables
freeOnlineOtherTables clear online tables obtain by other instances
schema.go:117
↓ 2 callersMethodgenerateStringItem
()
data_gen.go:105
↓ 2 callersMethodmakeColumnOptions
(column *types.Column, options []ast.ColumnOptionType)
stateflow/walker_ddl.go:111
↓ 2 callersMethodmakeConstraintPrimaryKey
makeConstraintPromaryKey is for convenience
stateflow/walker_ddl.go:132
↓ 2 callersMethodmakeFieldType
(t string, l int)
stateflow/walker_ddl.go:105
↓ 2 callersFunctionmakeSQL
(table *types.Table, columns []*types.Column, lines [][]string)
data_gen.go:68
↓ 2 callersMethodrandNewColumn
TIMESTAMP with CURRENT_TIMESTAMP in ALTER TABLE will make difference by design in binlog test
stateflow/schema.go:236
↓ 2 callersMethodrdFloat64
()
rand.go:32
↓ 2 callersMethodsetOnlineOtherTables
setOnlineOtherTables is for avoiding online DDL
schema.go:104
↓ 2 callersMethodsubqueryExpr
()
dml_ast.go:231
↓ 2 callersMethodtableRefsClause
(depth int)
dml_ast.go:132
↓ 2 callersMethodwalkSelectStmtColumns
(node *ast.SelectStmt, table *types.Table, join bool)
stateflow/walker.go:172
↓ 2 callersMethodwalkValueExpr
(node *driver.ValueExpr, table *types.Table, column *types.Column)
stateflow/walker.go:248
↓ 1 callersMethodBegin
()
cmd/executor.go:20
↓ 1 callersMethodCommit
()
cmd/executor.go:34
↓ 1 callersMethodExec
Exec runs query and return result TODO: read result rows
cmd/connect.go:108
↓ 1 callersMethodFetchColumns
FetchColumns get columns for given table
cmd/connect.go:156
↓ 1 callersMethodFetchIndexes
FetchIndexes get indexes for given table
cmd/connect.go:174
↓ 1 callersMethodFetchSchema
(db string)
cmd/connect.go:116
↓ 1 callersMethodGenData
GenData returns data generator
data_generator.go:27
↓ 1 callersFunctionGenerateDataItemString
GenerateDataItemString rand data with given type
util/generate_data_item.go:51
↓ 1 callersFunctionGenerateDateItem
GenerateDateItem generate date item
util/generate_data_item.go:102
↓ 1 callersFunctionGenerateHintExpr
GenerateHintExpr ...
builtin/hint.go:86
↓ 1 callersFunctionGenerateRandDataItem
GenerateRandDataItem rand data item with rand type
util/generate_data_item.go:32
↓ 1 callersFunctionGenerateTiDBDateItem
GenerateTiDBDateItem generate date item
util/generate_data_item.go:129
↓ 1 callersFunctionGenerateTimestampFuncCallExpr
GenerateTimestampFuncCallExpr generate builtin func which will return date type
builtin/genetate.go:34
↓ 1 callersMethodGetExec
()
cmd/executor.go:58
↓ 1 callersMethodGetField
(field string)
cmd/config.go:76
↓ 1 callersFunctionGetUUID
GetUUID return uuid
util/generate_data_item.go:27
↓ 1 callersMethodHasOption
HasOption return is has the given option
types/column.go:59
↓ 1 callersMethodHint
Hint ...
sqlsmith.go:90
↓ 1 callersMethodInit
(dsn string)
cmd/connect.go:68
↓ 1 callersMethodInit
(dsn string)
tests/connect.go:42
↓ 1 callersMethodInitSmithRates
()
cmd/connect.go:345
↓ 1 callersMethodInitTables
()
cmd/connect.go:228
↓ 1 callersMethodLoad
(path string)
cmd/config.go:71
↓ 1 callersFunctionNew
New Create StateFlow
stateflow/stateflow.go:33
↓ 1 callersFunctionNewConnect
(dsn string, dbname string, config *SQLSmithConfig)
cmd/connect.go:35
next →1–100 of 215, ranked by callers