Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PingCAP-QE/go-sqlsmith
/ functions
Functions
215 in github.com/PingCAP-QE/go-sqlsmith
⨍
Functions
215
◇
Types & classes
17
↓ 1 callers
Function
NewConnect
(dsn string)
tests/connect.go:13
↓ 1 callers
Function
NewSQLSmithConfig
()
cmd/config.go:55
↓ 1 callers
Method
RandIndex
RandIndex rand indexes
types/table.go:112
↓ 1 callers
Method
RandStmt
()
cmd/connect.go:365
↓ 1 callers
Method
RandTables
RandTables rand tables
types/types.go:28
↓ 1 callers
Function
RdBool
RdBool ...
util/rand.go:150
↓ 1 callers
Function
RdCharset
RdCharset rand charset
util/rand.go:142
↓ 1 callers
Function
RdColumnOptions
RdColumnOptions for rand column option with given type
util/rand.go:126
↓ 1 callers
Function
RdDataLen
RdDataLen rand data with given type
util/rand.go:107
↓ 1 callers
Function
RdType
RdType rand data type
util/rand.go:92
↓ 1 callers
Method
Rollback
()
cmd/executor.go:46
↓ 1 callers
Method
Run
Run starts running SQLSmith
cmd/connect.go:242
↓ 1 callers
Method
RunOnce
RunOnce ...
cmd/connect.go:300
↓ 1 callers
Function
Type2Tp
Type2Tp conver type string to tp byte TODO: complete conversion map
util/conversion.go:20
↓ 1 callers
Method
WalkTree
WalkTree parse
stateflow/walker.go:27
↓ 1 callers
Method
alterTableSpec
()
ddl_ast.go:54
↓ 1 callers
Method
alterTableSpecAddColumns
()
ddl_ast.go:72
↓ 1 callers
Method
alterTableSpecAddColumns
(node *ast.AlterTableSpec, table *types.Table)
stateflow/walker_ddl.go:299
↓ 1 callers
Method
alterTableSpecDropColumn
(node *ast.AlterTableSpec, table *types.Table)
stateflow/walker_ddl.go:310
↓ 1 callers
Method
alterTableSpecDropIndex
()
ddl_ast.go:79
↓ 1 callers
Method
alterTableSpecDropIndex
(node *ast.AlterTableSpec, table *types.Table)
stateflow/walker_ddl.go:317
↓ 1 callers
Method
alterTableStmt
()
ddl_ast.go:36
↓ 1 callers
Function
copyFunc
(fn *functionClass)
builtin/function.go:66
↓ 1 callers
Method
createIndexStmt
()
ddl_ast.go:92
↓ 1 callers
Method
createTableStmt
()
ddl_ast.go:22
↓ 1 callers
Method
debugPrintf
(f string, a ...interface{})
debug.go:24
↓ 1 callers
Method
deleteStmt
()
dml_ast.go:92
↓ 1 callers
Method
forkDB
(concurrency int)
cmd/connect.go:216
↓ 1 callers
Method
generateDataItem
(columnType string)
data_gen.go:89
↓ 1 callers
Method
generateDateItem
()
data_gen.go:117
↓ 1 callers
Method
generateFloatItem
()
data_gen.go:113
↓ 1 callers
Method
generateIntItem
()
data_gen.go:109
↓ 1 callers
Function
getDSN
()
cmd/main.go:37
↓ 1 callers
Function
getDSN
()
tests/main.go:32
↓ 1 callers
Function
getFuncMap
()
builtin/function_list.go:31
↓ 1 callers
Function
getValidArgsFunc
(args int, stable bool)
builtin/function.go:50
↓ 1 callers
Method
insertStmt
()
dml_ast.go:79
↓ 1 callers
Method
makeColumnOption
(column *types.Column, option ast.ColumnOptionType)
stateflow/walker_ddl.go:118
↓ 1 callers
Method
makeList
(columns []*types.Column)
stateflow/walker.go:313
↓ 1 callers
Function
mapFn
(arr [][]string, fn func([]string) string)
data_gen.go:81
↓ 1 callers
Method
mergeTable
(table1 *types.Table, table2 *types.Table)
stateflow/schema.go:135
↓ 1 callers
Function
min
(a, b int)
types/table.go:58
↓ 1 callers
Method
patternInExpr
()
dml_ast.go:215
↓ 1 callers
Method
randNewTable
()
stateflow/schema.go:201
↓ 1 callers
Method
rdDate
()
rand.go:36
↓ 1 callers
Method
rdRange
(n, m int)
rand.go:25
↓ 1 callers
Method
rdString
(length int)
rand.go:51
↓ 1 callers
Method
renameTable
(table *types.Table)
stateflow/schema.go:191
↓ 1 callers
Method
run
(i int, stopCh <-chan struct{}, doneCh chan struct{}, errCh chan *Result)
cmd/connect.go:286
↓ 1 callers
Method
selectForUpdateStmt
(depth int)
dml_ast.go:51
↓ 1 callers
Method
shouldNotWalkHere
(a ...interface{})
stateflow/util.go:27
↓ 1 callers
Method
updateStmt
()
dml_ast.go:57
↓ 1 callers
Method
walkAlterTableStmt
(node *ast.AlterTableStmt)
stateflow/walker_ddl.go:64
↓ 1 callers
Method
walkAssignmentList
(list *[]*ast.Assignment, table *types.Table)
stateflow/walker.go:268
↓ 1 callers
Method
walkBinaryOperationExpr
(node *ast.BinaryOperationExpr, table *types.Table)
stateflow/walker.go:287
↓ 1 callers
Method
walkColumnNameExpr
(node *ast.ColumnNameExpr, table *types.Table)
stateflow/walker.go:239
↓ 1 callers
Method
walkColumns
(columns *[]*ast.ColumnName, table *types.Table)
stateflow/walker.go:291
↓ 1 callers
Method
walkCreateIndexStmt
(node *ast.CreateIndexStmt)
stateflow/walker_ddl.go:87
↓ 1 callers
Method
walkCreateTableStmt
(node *ast.CreateTableStmt)
stateflow/walker_ddl.go:39
↓ 1 callers
Method
walkDeleteStmt
(node *ast.DeleteStmt)
stateflow/walker.go:115
↓ 1 callers
Method
walkInsertStmt
(node *ast.InsertStmt)
stateflow/walker.go:108
↓ 1 callers
Method
walkLists
(lists *[][]ast.ExprNode, columns []*types.Column)
stateflow/walker.go:306
↓ 1 callers
Method
walkOnStmt
(node *ast.OnCondition, table1, table2 *types.Table)
stateflow/walker.go:122
↓ 1 callers
Method
walkOrderByClause
(node *ast.OrderByClause, table *types.Table)
stateflow/walker.go:328
↓ 1 callers
Method
walkPartition
(node *ast.PartitionOptions, column *types.Column)
stateflow/walker_ddl.go:170
↓ 1 callers
Method
walkPartitionDefinitions
(definitions *[]*ast.PartitionDefinition, column *types.Column)
stateflow/walker_ddl.go:208
↓ 1 callers
Method
walkPartitionDefinitionsDatetime
(definitions *[]*ast.PartitionDefinition)
stateflow/walker_ddl.go:263
↓ 1 callers
Method
walkPartitionDefinitionsInt
(definitions *[]*ast.PartitionDefinition)
stateflow/walker_ddl.go:230
↓ 1 callers
Method
walkPartitionDefinitionsString
(definitions *[]*ast.PartitionDefinition)
stateflow/walker_ddl.go:245
↓ 1 callers
Method
walkPartitionDefinitionsTimestamp
(definitions *[]*ast.PartitionDefinition)
stateflow/walker_ddl.go:281
↓ 1 callers
Method
walkPatternInExpr
(node *ast.PatternInExpr, table *types.Table)
stateflow/walker.go:357
↓ 1 callers
Method
walkTableOption
(node *ast.CreateTableStmt)
stateflow/walker_ddl.go:155
↓ 1 callers
Method
walkTree
(node ast.Node)
stateflow/walker.go:38
↓ 1 callers
Method
walkUpdateStmt
(node *ast.UpdateStmt)
stateflow/walker.go:93
Method
BeginWithOnlineTables
BeginWithOnlineTables begins a transaction with some online tables
schema.go:71
Method
Clone
Clone makes a replica of column
types/column.go:33
Method
Debug
Debug turn on debug mode
sqlsmith.go:55
Method
EndTransaction
EndTransaction ends transaction and set every table offline
schema.go:89
Function
GenerateTypeFuncCallExpr
GenerateTypeFuncCallExpr generate FuncCallExpr by given type
builtin/genetate.go:25
Function
Info
Info ...
util/log.go:19
Method
InsertStmtStr
InsertStmtStr make random insert statement SQL
dml_sql.go:57
Method
Len
()
types/table.go:42
Method
Less
(i, j int)
types/table.go:44
Function
MaxInt
MaxInt ...
util/util.go:53
Function
RdString
RdString rand string with given length
util/rand.go:67
Method
SetHint
SetHint ...
sqlsmith.go:95
Method
SetStable
SetStable set stable to given value
sqlsmith.go:85
Method
Stable
Stable set generated SQLs no rand
sqlsmith.go:80
Method
Swap
(i, j int)
types/table.go:43
Function
TestSQLSmith_AlterTable
TestSQLSmith_AlterTable tests alter table statement
ddl_test.go:30
Function
TestSQLSmith_CreateIndex
TestSQLSmith_CreateIndex tests create index statement
ddl_test.go:41
Function
TestSQLSmith_CreateTable
TestSQLSmith_CreateTable tests create table statement
ddl_test.go:21
Function
TestSQLSmith_DataGenerator
TestSQLSmith_DataGenerator tests with data generator
data_generator_test.go:19
Function
TestSQLSmith_Delete
TestSQLSmith_Delete tests delete statment
dml_test.go:88
Function
TestSQLSmith_Insert
TestSQLSmith_Insert tests insert statment
dml_test.go:71
Function
TestSQLSmith_LoadIndexes
TestSQLSmith_LoadIndexes tests with load table indexes
schema_test.go:93
Function
TestSQLSmith_Select
TestSQLSmith_Select tests select statment
dml_test.go:22
Function
TestSQLSmith_SelectForUpdateStmt
TestSQLSmith_SelectForUpdateStmt tests select for update statement
dml_test.go:38
Function
TestSQLSmith_TableGetColumns
(t *testing.T)
types/table_test.go:22
Function
TestSQLSmith_TestIfDaylightTime
(t *testing.T)
util/generate_data_item_test.go:26
← previous
next →
101–200 of 215, ranked by callers