MCPcopy Create free account

hub / github.com/blastrain/vitess-sqlparser / functions

Functions1,509 in github.com/blastrain/vitess-sqlparser

MethodRebuildPlan
RebuildPlan rebuilds the plan of the statement.
tidbparser/ast/ast.go:195
MethodRemove
Remove removes the elements indicated by pathExprList from JSON.
tidbparser/dependency/types/json/binary_functions.go:304
MethodReset
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
MethodResetForRetry
ResetForRetry resets the changed states during execution.
tidbparser/dependency/sessionctx/stmtctx/stmtctx.go:171
FunctionRoundFrac
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
MethodRoundFrac
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
FunctionRowToDatums
RowToDatums converts row to datum slice.
tidbparser/ast/ast.go:155
FunctionRunWithRetry
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
MethodSecureText
SecureText is different from Text that it hide password information.
tidbparser/ast/ast.go:173
MethodSecureText
SecureText implements SensitiveStatement interface.
tidbparser/ast/misc.go:425
MethodSecureText
SecureText implements SensitiveStatement interface.
tidbparser/ast/misc.go:498
MethodSecureText
SecureText implements SensitiveStatement interface.
tidbparser/ast/misc.go:519
MethodSecureText
SecureText implements SensitiveStatement interface.
tidbparser/ast/misc.go:718
MethodSetActionOnExceed
SetActionOnExceed sets the action when memory usage is out of memory quota.
tidbparser/dependency/util/memory/tracker.go:64
MethodSetBytesAsString
SetBytesAsString sets bytes value to datum as string type.
tidbparser/dependency/types/datum.go:197
MethodSetCollation
SetCollation sets the collation of the datum.
tidbparser/dependency/types/datum.go:96
MethodSetDatum
SetDatum sets datum to the expression.
tidbparser/ast/ast.go:72
MethodSetDatum
SetDatum implements ExprNode interface.
tidbparser/ast/base.go:71
MethodSetDatums
SetDatums sets the MutRow with datum slice.
tidbparser/dependency/util/chunk/mutrow.go:268
MethodSetFlag
SetFlag implements ExprNode interface.
tidbparser/ast/base.go:91
MethodSetHistogramsNotLoad
SetHistogramsNotLoad sets histogramsNotLoad.
tidbparser/dependency/sessionctx/stmtctx/stmtctx.go:126
MethodSetLabel
SetLabel sets the label of a Tracker.
tidbparser/dependency/util/memory/tracker.go:69
MethodSetLimit
(*Limit)
sqlparser/ast.go:163
MethodSetLimit
SetLimit sets the limit clause
sqlparser/ast.go:211
MethodSetLimit
SetLimit sets the limit clause
sqlparser/ast.go:299
MethodSetLimit
SetLimit sets the limit clause
sqlparser/ast.go:341
MethodSetNumVirtualRows
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
FunctionSetRawValues
SetRawValues set raw datum values from a row data.
tidbparser/dependency/util/codec/codec.go:381
MethodSetRow
SetRow sets the MutRow with Row.
tidbparser/dependency/util/chunk/mutrow.go:203
MethodSetRowCount
SetRowCount sets the number of rows. Make sure it can pass `make race`.
tidbparser/dependency/model/ddl.go:158
MethodSetSQLMode
SetSQLMode sets the SQL mode for parser.
tidbparser/parser/yy_parser.go:129
MethodSetSQLMode
SetSQLMode sets the SQL mode for scanner.
tidbparser/parser/lexer.go:183
MethodSetText
SetText implements Node interface.
tidbparser/ast/base.go:25
MethodSetType
SetType sets evaluation type to the expression.
tidbparser/ast/ast.go:64
MethodSetType
SetType implements ExprNode interface.
tidbparser/ast/base.go:81
MethodSetValues
SetValues sets the MutRow with values.
tidbparser/dependency/util/chunk/mutrow.go:221
MethodSetWarnings
SetWarnings sets warnings.
tidbparser/dependency/sessionctx/stmtctx/stmtctx.go:110
MethodShowProcessList
()
tidbparser/dependency/util/processinfo.go:35
FunctionSortDatums
SortDatums sorts a slice of datum.
tidbparser/dependency/types/datum.go:1740
MethodStrToDate
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
FunctionStrToDuration
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
FunctionString
String returns a string representation of an SQLNode.
sqlparser/ast.go:112
MethodString
String implements fmt.Stringer interface.
tidbparser/ast/ddl.go:182
MethodString
String implements fmt.Stringer.
tidbparser/ast/dml.go:245
MethodString
String implements fmt.Stringer interface.
tidbparser/dependency/terror/terror.go:115
MethodString
String implements fmt.Stringer interface.
tidbparser/dependency/types/enum.go:30
MethodString
String returns the time formatted using default TimeFormat and fsp.
tidbparser/dependency/types/time.go:788
MethodString
String implements fmt.Stringer interface.
tidbparser/dependency/types/binary_literal.go:71
MethodString
String return current ddl action in string
tidbparser/dependency/model/ddl.go:70
MethodString
String implements fmt.Stringer interface.
tidbparser/dependency/model/ddl.go:207
MethodString
String implements fmt.Stringer interface.
tidbparser/dependency/model/ddl.go:271
MethodString
String implements fmt.Stringer interface.
tidbparser/dependency/model/model.go:44
MethodString
String implements Stringer interface.
tidbparser/dependency/model/model.go:242
MethodString
String implements fmt.Stringer interface.
tidbparser/dependency/model/model.go:346
MethodString
String converts UserIdentity to the format user@host.
tidbparser/dependency/util/auth/auth.go:33
MethodString
()
sqlparser/ast.go:565
MethodString
()
sqlparser/ast.go:580
MethodString
()
sqlparser/ast.go:621
MethodString
()
sqlparser/ast.go:920
MethodString
()
sqlparser/ast.go:950
MethodString
()
sqlparser/ast.go:980
MethodString
()
sqlparser/ast.go:1013
MethodString
()
sqlparser/ast.go:1028
MethodString
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
FunctionStringPointer
StringPointer returns &s[0], which is not allowed in go
hack/hack.go:76
MethodSub
Sub subtracts d to d, returns a duration value.
tidbparser/dependency/types/time.go:773
FunctionSubIntWithUint
SubIntWithUint subtracts int64 a with uint64 b and returns uint64 if no overflow error.
tidbparser/dependency/types/overflow.go:80
FunctionSubUintWithInt
SubUintWithInt subtracts uint64 a with int64 b and returns uint64 if no overflow error.
tidbparser/dependency/types/overflow.go:72
MethodSwap
(i, j int)
tidbparser/dependency/types/datum.go:1765
MethodSwapColumn
SwapColumn swaps column "c.columns[colIdx]" with column "other.columns[otherIdx]".
tidbparser/dependency/util/chunk/chunk.go:114
MethodSwapColumns
SwapColumns swaps columns with another Chunk.
tidbparser/dependency/util/chunk/chunk.go:119
FunctionTestBuffer
(t *testing.T)
bytes2/buffer_test.go:21
FunctionTestByteToString
(t *testing.T)
hack/hack_test.go:76
FunctionTestCreateTableParsing
(t *testing.T)
sqlparser/sqlparser_test.go:30
FunctionTestCreateTableWithPartition
(t *testing.T)
sqlparser/sqlparser_test.go:43
FunctionTestDropTableParsing
(t *testing.T)
sqlparser/sqlparser_test.go:20
FunctionTestLiteralID
(t *testing.T)
sqlparser/token_test.go:21
FunctionTestSelectParsing
(t *testing.T)
sqlparser/sqlparser_test.go:25
FunctionTestShowCreateTableParsing
(t *testing.T)
sqlparser/sqlparser_test.go:62
FunctionTestStringArena
(t *testing.T)
hack/hack_test.go:21
MethodText
Text implements Node interface.
tidbparser/ast/base.go:30
FunctionTimeFromDays
TimeFromDays Converts a day number to a date.
tidbparser/dependency/types/time.go:1278
FunctionTimestampDiff
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
MethodToBool
ToBool converts to a bool. We will use 1 for true, and 0 for false.
tidbparser/dependency/types/datum.go:1245
MethodToBytes
ToBytes gets the bytes representation of the datum.
tidbparser/dependency/types/datum.go:1487
MethodToDecimal
ToDecimal converts to a decimal.
tidbparser/dependency/types/datum.go:1327
MethodToFloat64
ToFloat64 converts decimal to float64 value.
tidbparser/dependency/types/mydecimal.go:993
MethodToInt
ToInt returns the int value for the literal.
tidbparser/dependency/types/binary_literal.go:103
MethodToInt64
ToInt64 converts to a int64.
tidbparser/dependency/types/datum.go:1339
MethodToNumber
ToNumber changes enum index to float64 for numeric operation.
tidbparser/dependency/types/enum.go:35
MethodToNumber
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
MethodToNumber
ToNumber changes duration to number format. e.g, 10:10:10 -> 101010
tidbparser/dependency/types/time.go:815
MethodToRow
ToRow converts the MutRow to Row, so it can be used to read data.
tidbparser/dependency/util/chunk/mutrow.go:32
MethodToSQLError
ToSQLError convert Error to mysql.SQLError.
tidbparser/dependency/terror/terror.go:265
FunctionToString
ToString converts an interface to a string.
tidbparser/dependency/types/convert.go:427
MethodToString
ToString returns the string representation for the literal.
tidbparser/dependency/types/binary_literal.go:79
MethodToUint
ToUint returns int part of the decimal, returns the result and errcode.
tidbparser/dependency/types/mydecimal.go:963
FunctionTrimComment
TrimComment trim comment for special comment code of MySQL.
tidbparser/parser/yy_parser.go:56
FunctionTruncate
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
MethodTruncateTo
TruncateTo truncates rows from tail to head in a Chunk to "numRows" rows.
tidbparser/dependency/util/chunk/chunk.go:204
← previousnext →1,201–1,300 of 1,509, ranked by callers