Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/blastrain/vitess-sqlparser
/ functions
Functions
1,509 in github.com/blastrain/vitess-sqlparser
⨍
Functions
1,509
◇
Types & classes
344
Method
RebuildPlan
RebuildPlan rebuilds the plan of the statement.
tidbparser/ast/ast.go:195
Method
Remove
Remove removes the elements indicated by pathExprList from JSON.
tidbparser/dependency/types/json/binary_functions.go:304
Method
Reset
Reset resets the chunk, so the memory it allocated can be reused. Make sure all the data in the chunk is not used anymore before you reuse this chunk.
tidbparser/dependency/util/chunk/chunk.go:132
Method
ResetForRetry
ResetForRetry resets the changed states during execution.
tidbparser/dependency/sessionctx/stmtctx/stmtctx.go:171
Function
RoundFrac
RoundFrac rounds fractional seconds precision with new fsp and returns a new one. We will use the “round half up” rule, e.g, >= 0.5 -> 1, < 0.5 -> 0,
tidbparser/dependency/types/time.go:383
Method
RoundFrac
RoundFrac rounds fractional seconds precision with new fsp and returns a new one. We will use the “round half up” rule, e.g, >= 0.5 -> 1, < 0.5 -> 0,
tidbparser/dependency/types/time.go:860
Function
RowToDatums
RowToDatums converts row to datum slice.
tidbparser/ast/ast.go:155
Function
RunWithRetry
RunWithRetry will run the f with backoff and retry. retryCnt: Max retry count backoff: When run f failed, it will sleep backoff * triedCount time.Mill
tidbparser/dependency/util/misc.go:35
Method
SecureText
SecureText is different from Text that it hide password information.
tidbparser/ast/ast.go:173
Method
SecureText
SecureText implements SensitiveStatement interface.
tidbparser/ast/misc.go:425
Method
SecureText
SecureText implements SensitiveStatement interface.
tidbparser/ast/misc.go:498
Method
SecureText
SecureText implements SensitiveStatement interface.
tidbparser/ast/misc.go:519
Method
SecureText
SecureText implements SensitiveStatement interface.
tidbparser/ast/misc.go:718
Method
SetActionOnExceed
SetActionOnExceed sets the action when memory usage is out of memory quota.
tidbparser/dependency/util/memory/tracker.go:64
Method
SetBytesAsString
SetBytesAsString sets bytes value to datum as string type.
tidbparser/dependency/types/datum.go:197
Method
SetCollation
SetCollation sets the collation of the datum.
tidbparser/dependency/types/datum.go:96
Method
SetDatum
SetDatum sets datum to the expression.
tidbparser/ast/ast.go:72
Method
SetDatum
SetDatum implements ExprNode interface.
tidbparser/ast/base.go:71
Method
SetDatums
SetDatums sets the MutRow with datum slice.
tidbparser/dependency/util/chunk/mutrow.go:268
Method
SetFlag
SetFlag implements ExprNode interface.
tidbparser/ast/base.go:91
Method
SetHistogramsNotLoad
SetHistogramsNotLoad sets histogramsNotLoad.
tidbparser/dependency/sessionctx/stmtctx/stmtctx.go:126
Method
SetLabel
SetLabel sets the label of a Tracker.
tidbparser/dependency/util/memory/tracker.go:69
Method
SetLimit
(*Limit)
sqlparser/ast.go:163
Method
SetLimit
SetLimit sets the limit clause
sqlparser/ast.go:211
Method
SetLimit
SetLimit sets the limit clause
sqlparser/ast.go:299
Method
SetLimit
SetLimit sets the limit clause
sqlparser/ast.go:341
Method
SetNumVirtualRows
SetNumVirtualRows sets the virtual row number for a Chunk. It should only be used when there exists no column in the Chunk.
tidbparser/dependency/util/chunk/chunk.go:126
Function
SetRawValues
SetRawValues set raw datum values from a row data.
tidbparser/dependency/util/codec/codec.go:381
Method
SetRow
SetRow sets the MutRow with Row.
tidbparser/dependency/util/chunk/mutrow.go:203
Method
SetRowCount
SetRowCount sets the number of rows. Make sure it can pass `make race`.
tidbparser/dependency/model/ddl.go:158
Method
SetSQLMode
SetSQLMode sets the SQL mode for parser.
tidbparser/parser/yy_parser.go:129
Method
SetSQLMode
SetSQLMode sets the SQL mode for scanner.
tidbparser/parser/lexer.go:183
Method
SetText
SetText implements Node interface.
tidbparser/ast/base.go:25
Method
SetType
SetType sets evaluation type to the expression.
tidbparser/ast/ast.go:64
Method
SetType
SetType implements ExprNode interface.
tidbparser/ast/base.go:81
Method
SetValues
SetValues sets the MutRow with values.
tidbparser/dependency/util/chunk/mutrow.go:221
Method
SetWarnings
SetWarnings sets warnings.
tidbparser/dependency/sessionctx/stmtctx/stmtctx.go:110
Method
ShowProcessList
()
tidbparser/dependency/util/processinfo.go:35
Function
SortDatums
SortDatums sorts a slice of datum.
tidbparser/dependency/types/datum.go:1740
Method
StrToDate
StrToDate converts date string according to format. See https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_date-format
tidbparser/dependency/types/time.go:1948
Function
StrToDuration
StrToDuration converts str to Duration. It returns Duration in normal case, and returns Time when str is in datetime format. when isDuration is true,
tidbparser/dependency/types/convert.go:173
Function
String
String returns a string representation of an SQLNode.
sqlparser/ast.go:112
Method
String
String implements fmt.Stringer interface.
tidbparser/ast/ddl.go:182
Method
String
String implements fmt.Stringer.
tidbparser/ast/dml.go:245
Method
String
String implements fmt.Stringer interface.
tidbparser/dependency/terror/terror.go:115
Method
String
String implements fmt.Stringer interface.
tidbparser/dependency/types/enum.go:30
Method
String
String returns the time formatted using default TimeFormat and fsp.
tidbparser/dependency/types/time.go:788
Method
String
String implements fmt.Stringer interface.
tidbparser/dependency/types/binary_literal.go:71
Method
String
String return current ddl action in string
tidbparser/dependency/model/ddl.go:70
Method
String
String implements fmt.Stringer interface.
tidbparser/dependency/model/ddl.go:207
Method
String
String implements fmt.Stringer interface.
tidbparser/dependency/model/ddl.go:271
Method
String
String implements fmt.Stringer interface.
tidbparser/dependency/model/model.go:44
Method
String
String implements Stringer interface.
tidbparser/dependency/model/model.go:242
Method
String
String implements fmt.Stringer interface.
tidbparser/dependency/model/model.go:346
Method
String
String converts UserIdentity to the format user@host.
tidbparser/dependency/util/auth/auth.go:33
Method
String
()
sqlparser/ast.go:565
Method
String
()
sqlparser/ast.go:580
Method
String
()
sqlparser/ast.go:621
Method
String
()
sqlparser/ast.go:920
Method
String
()
sqlparser/ast.go:950
Method
String
()
sqlparser/ast.go:980
Method
String
()
sqlparser/ast.go:1013
Method
String
()
sqlparser/ast.go:1028
Method
String
String returns the unescaped table name. It must not be used for SQL generation. Use sqlparser.String instead. The Stringer conformance is for usage i
sqlparser/ast.go:2570
Function
StringPointer
StringPointer returns &s[0], which is not allowed in go
hack/hack.go:76
Method
Sub
Sub subtracts d to d, returns a duration value.
tidbparser/dependency/types/time.go:773
Function
SubIntWithUint
SubIntWithUint subtracts int64 a with uint64 b and returns uint64 if no overflow error.
tidbparser/dependency/types/overflow.go:80
Function
SubUintWithInt
SubUintWithInt subtracts uint64 a with int64 b and returns uint64 if no overflow error.
tidbparser/dependency/types/overflow.go:72
Method
Swap
(i, j int)
tidbparser/dependency/types/datum.go:1765
Method
SwapColumn
SwapColumn swaps column "c.columns[colIdx]" with column "other.columns[otherIdx]".
tidbparser/dependency/util/chunk/chunk.go:114
Method
SwapColumns
SwapColumns swaps columns with another Chunk.
tidbparser/dependency/util/chunk/chunk.go:119
Function
TestBuffer
(t *testing.T)
bytes2/buffer_test.go:21
Function
TestByteToString
(t *testing.T)
hack/hack_test.go:76
Function
TestCreateTableParsing
(t *testing.T)
sqlparser/sqlparser_test.go:30
Function
TestCreateTableWithPartition
(t *testing.T)
sqlparser/sqlparser_test.go:43
Function
TestDropTableParsing
(t *testing.T)
sqlparser/sqlparser_test.go:20
Function
TestLiteralID
(t *testing.T)
sqlparser/token_test.go:21
Function
TestSelectParsing
(t *testing.T)
sqlparser/sqlparser_test.go:25
Function
TestShowCreateTableParsing
(t *testing.T)
sqlparser/sqlparser_test.go:62
Function
TestStringArena
(t *testing.T)
hack/hack_test.go:21
Method
Text
Text implements Node interface.
tidbparser/ast/base.go:30
Function
TimeFromDays
TimeFromDays Converts a day number to a date.
tidbparser/dependency/types/time.go:1278
Function
TimestampDiff
TimestampDiff returns t2 - t1 where t1 and t2 are date or datetime expressions. The unit for the result (an integer) is given by the unit argument. Th
tidbparser/dependency/types/time.go:526
Method
ToBool
ToBool converts to a bool. We will use 1 for true, and 0 for false.
tidbparser/dependency/types/datum.go:1245
Method
ToBytes
ToBytes gets the bytes representation of the datum.
tidbparser/dependency/types/datum.go:1487
Method
ToDecimal
ToDecimal converts to a decimal.
tidbparser/dependency/types/datum.go:1327
Method
ToFloat64
ToFloat64 converts decimal to float64 value.
tidbparser/dependency/types/mydecimal.go:993
Method
ToInt
ToInt returns the int value for the literal.
tidbparser/dependency/types/binary_literal.go:103
Method
ToInt64
ToInt64 converts to a int64.
tidbparser/dependency/types/datum.go:1339
Method
ToNumber
ToNumber changes enum index to float64 for numeric operation.
tidbparser/dependency/types/enum.go:35
Method
ToNumber
ToNumber returns a formatted number. e.g, 2012-12-12 -> 20121212 2012-12-12T10:10:10 -> 20121212101010 2012-12-12T10:10:10.123456 -> 20121212101010.12
tidbparser/dependency/types/time.go:235
Method
ToNumber
ToNumber changes duration to number format. e.g, 10:10:10 -> 101010
tidbparser/dependency/types/time.go:815
Method
ToRow
ToRow converts the MutRow to Row, so it can be used to read data.
tidbparser/dependency/util/chunk/mutrow.go:32
Method
ToSQLError
ToSQLError convert Error to mysql.SQLError.
tidbparser/dependency/terror/terror.go:265
Function
ToString
ToString converts an interface to a string.
tidbparser/dependency/types/convert.go:427
Method
ToString
ToString returns the string representation for the literal.
tidbparser/dependency/types/binary_literal.go:79
Method
ToUint
ToUint returns int part of the decimal, returns the result and errcode.
tidbparser/dependency/types/mydecimal.go:963
Function
TrimComment
TrimComment trim comment for special comment code of MySQL.
tidbparser/parser/yy_parser.go:56
Function
Truncate
Truncate truncates the argument f to dec decimal places. dec defaults to 0 if not specified. dec can be negative to cause dec digits left of the decim
tidbparser/dependency/types/helper.go:53
Method
TruncateTo
TruncateTo truncates rows from tail to head in a Chunk to "numRows" rows.
tidbparser/dependency/util/chunk/chunk.go:204
← previous
next →
1,201–1,300 of 1,509, ranked by callers