MCPcopy Create free account

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

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

↓ 2 callersFunctionreallocBytes
reallocBytes is like realloc.
tidbparser/dependency/util/codec/bytes.go:194
↓ 2 callersFunctionreverseBytes
(b []byte)
tidbparser/dependency/util/codec/bytes.go:184
↓ 2 callersFunctionroundTime
roundTime rounds the time value according to digits count specified by fsp.
tidbparser/dependency/types/time.go:334
↓ 2 callersMethodscanBit
()
tidbparser/parser/lexer.go:640
↓ 2 callersMethodscanHex
()
tidbparser/parser/lexer.go:632
↓ 2 callersFunctionscanIdentifier
(s *Scanner)
tidbparser/parser/lexer.go:434
↓ 2 callersMethodscanNumber
(seenDecimalPoint bool)
sqlparser/token.go:569
↓ 2 callersFunctionsetAllowComments
(yylex interface{}, allow bool)
sqlparser/sql.go:11
↓ 2 callersFunctionsetMutRowJSON
(col *column, j json.BinaryJSON)
tidbparser/dependency/util/chunk/mutrow.go:334
↓ 2 callersFunctionsetTypeFlag
(flag *uint, flagItem uint, on bool)
tidbparser/dependency/types/field_type.go:145
↓ 2 callersMethodsetUseBuf
(str string)
tidbparser/parser/lexer.go:482
↓ 2 callersMethodskipWhitespace
()
tidbparser/parser/lexer.go:197
↓ 2 callersFunctionsqlOffsetInComment
(comment string)
tidbparser/parser/lexer.go:389
↓ 2 callersMethodstmtText
()
tidbparser/parser/yy_parser.go:76
↓ 2 callersFunctiontoDecimal
(l yyLexer, lval *yySymType, str string)
tidbparser/parser/yy_parser.go:191
↓ 2 callersMethodtoSignedInteger
(sc *stmtctx.StatementContext, tp byte)
tidbparser/dependency/types/datum.go:1343
↓ 2 callersFunctiontrimLeadingZeroBytes
(bytes []byte)
tidbparser/dependency/types/binary_literal.go:40
↓ 2 callersFunctiontruncateStr
(str string, flen int)
tidbparser/dependency/types/convert.go:33
↓ 2 callersFunctiontsConvert2Time
tsConvert2Time converts timestamp to time.
tidbparser/dependency/model/ddl.go:152
↓ 2 callersFunctionunquoteString
unquoteString recognizes the escape sequences shown in: https://dev.mysql.com/doc/refman/5.7/en/json-modification-functions.html#json-unquote-characte
tidbparser/dependency/types/json/binary_functions.go:81
↓ 2 callersFunctionweekMode
(mode int)
tidbparser/dependency/types/mytime.go:234
↓ 2 callersFunctionyylex1
(lex yyLexer, lval *yySymType)
sqlparser/sql.go:1296
↓ 1 callersMethodAction
Action will be called when memory usage exceeds memory quota by the corresponding Tracker.
tidbparser/dependency/util/memory/action.go:28
↓ 1 callersMethodAddDBInfo
AddDBInfo adds schema version and schema information that are used for binlog. dbInfo is added in the following operations: create database, drop data
tidbparser/dependency/model/ddl.go:86
↓ 1 callersFunctionAddInt64
AddInt64 adds int64 a and b if no overflow, otherwise returns error.
tidbparser/dependency/types/overflow.go:32
↓ 1 callersMethodAddTableInfo
AddTableInfo adds schema version and table information that are used for binlog. tblInfo is added except for the following operations: create database
tidbparser/dependency/model/ddl.go:93
↓ 1 callersFunctionAdjustYear
AdjustYear is used for adjusting year and checking its validation.
tidbparser/dependency/types/time.go:740
↓ 1 callersMethodAppendPartialRow
AppendPartialRow appends a row to the chunk.
tidbparser/dependency/util/chunk/chunk.go:164
↓ 1 callersMethodBytes
Bytes returns a copy of the raw data. All types are currently implemented as []byte. Use this function instead of Raw if you can't be sure about maint
sqltypes/value.go:86
↓ 1 callersMethodCheck
Check if 't' is valid
tidbparser/dependency/types/time.go:464
↓ 1 callersMethodClose
Close closes the underlying iterator, call Next after Close will restart the iteration.
tidbparser/ast/ast.go:151
↓ 1 callersMethodCompare
Compare returns an integer comparing the Duration instant t to o. If d is after o, return 1, equal o, return 0, before o, return -1.
tidbparser/dependency/types/time.go:877
↓ 1 callersFunctionConvertUintToInt
ConvertUintToInt converts an uint value to an int value.
tidbparser/dependency/types/convert.go:100
↓ 1 callersMethodCopy
Copy deep copies a Datum.
tidbparser/dependency/types/datum.go:69
↓ 1 callersFunctionDecimalPeak
DecimalPeak returns the length of the encoded decimal.
tidbparser/dependency/types/mydecimal.go:2122
↓ 1 callersFunctionDecodeOne
DecodeOne decodes on datum from a byte slice generated with EncodeKey or EncodeValue.
tidbparser/dependency/util/codec/codec.go:301
↓ 1 callersFunctionDecodeUintDesc
DecodeUintDesc decodes value encoded by EncodeInt before. It returns the leftover un-decoded slice, decoded value if no error.
tidbparser/dependency/util/codec/number.go:109
↓ 1 callersFunctionEncodeCompactBytes
EncodeCompactBytes joins bytes with its length into a byte slice. It is more efficient in both space and time compare to EncodeBytes. Note that the en
tidbparser/dependency/util/codec/bytes.go:141
↓ 1 callersFunctionEncodeComparableUvarint
EncodeComparableUvarint encodes uint64 into mem-comparable bytes.
tidbparser/dependency/util/codec/number.go:196
↓ 1 callersFunctionEncodePassword
EncodePassword converts plaintext password to hashed hex string.
tidbparser/dependency/util/auth/auth.go:77
↓ 1 callersFunctionEncodeUintDesc
EncodeUintDesc appends the encoded value to slice b and returns the appended slice. EncodeUintDesc guarantees that the encoded value is in descending
tidbparser/dependency/util/codec/number.go:89
↓ 1 callersFunctionEncodeUvarint
EncodeUvarint appends the encoded value to slice b and returns the appended slice. Note that the encoded result is not memcomparable.
tidbparser/dependency/util/codec/number.go:143
↓ 1 callersMethodEqual
Equal returns true if the column names match.
sqlparser/ast.go:1778
↓ 1 callersMethodEqualClass
EqualClass returns true if err is *Error with the same class.
tidbparser/dependency/terror/terror.go:123
↓ 1 callersMethodEvalType
EvalType gets the type in evaluation.
tidbparser/dependency/types/field_type.go:154
↓ 1 callersMethodFrac
Frac gets the frac of the datum.
tidbparser/dependency/types/datum.go:101
↓ 1 callersMethodFromBin
FromBin Restores decimal from its binary fixed-length representation.
tidbparser/dependency/types/mydecimal.go:1213
↓ 1 callersMethodFromPackedUint
FromPackedUint decodes Time from a packed uint64 value.
tidbparser/dependency/types/time.go:419
↓ 1 callersFunctionGetCharsetInfo
GetCharsetInfo returns charset and collation for cs as name.
tidbparser/dependency/util/charset/charset.go:132
↓ 1 callersMethodGetDatum
GetDatum implements the types.Row interface.
tidbparser/dependency/util/chunk/chunk.go:588
↓ 1 callersFunctionGetDefaultCollation
GetDefaultCollation returns the default collation for charset.
tidbparser/dependency/util/charset/charset.go:119
↓ 1 callersFunctionGetDefaultFieldLengthAndDecimal
GetDefaultFieldLengthAndDecimal returns the default display length (flen) and decimal length for column. Call this when no Flen assigned in ddl. or co
tidbparser/dependency/mysql/util.go:65
↓ 1 callersMethodGetDuration
GetDuration returns the Duration value with the colIdx.
tidbparser/dependency/util/chunk/chunk.go:534
↓ 1 callersMethodGetEnum
GetEnum returns the Enum value with the colIdx.
tidbparser/dependency/util/chunk/chunk.go:551
↓ 1 callersMethodGetFloat32
GetFloat32 returns the float64 value with the colIdx.
tidbparser/dependency/util/chunk/chunk.go:484
↓ 1 callersMethodGetFloat64
GetFloat64 gets the float64 value.
tidbparser/dependency/types/json/binary.go:159
↓ 1 callersMethodGetFloat64
GetFloat64 returns the float64 value with the colIdx.
tidbparser/dependency/util/chunk/chunk.go:490
↓ 1 callersMethodGetInt64
GetInt64 gets the int64 value.
tidbparser/dependency/types/json/binary.go:149
↓ 1 callersMethodGetInt64
GetInt64 returns the int64 value with the colIdx.
tidbparser/dependency/util/chunk/chunk.go:472
↓ 1 callersMethodGetInterface
GetInterface gets interface value.
tidbparser/dependency/types/datum.go:203
↓ 1 callersMethodGetJSON
GetJSON returns the JSON value with the colIdx.
tidbparser/dependency/util/chunk/chunk.go:569
↓ 1 callersMethodGetMyDecimal
GetMyDecimal returns the MyDecimal value with the colIdx.
tidbparser/dependency/util/chunk/chunk.go:563
↓ 1 callersMethodGetRow
GetRow gets the Row in the chunk with the row index.
tidbparser/dependency/util/chunk/chunk.go:153
↓ 1 callersMethodGetRowCount
GetRowCount gets the number of rows. Make sure it can pass `make race`.
tidbparser/dependency/model/ddl.go:166
↓ 1 callersMethodGetSQLMode
GetSQLMode return the SQL mode of scanner.
tidbparser/parser/lexer.go:188
↓ 1 callersMethodGetSet
GetSet returns the Set value with the colIdx.
tidbparser/dependency/util/chunk/chunk.go:557
↓ 1 callersMethodGetTime
GetTime returns the Time value with the colIdx. TODO: use Time structure directly.
tidbparser/dependency/util/chunk/chunk.go:511
↓ 1 callersMethodGetType
GetType gets the evaluation type of the expression.
tidbparser/ast/ast.go:66
↓ 1 callersMethodGetUint64
GetUint64 returns the uint64 value with the colIdx.
tidbparser/dependency/util/chunk/chunk.go:478
↓ 1 callersMethodHasANSIQuotesMode
HasANSIQuotesMode detects if 'ANSI_QUOTES' mode is set in SQLMode
tidbparser/dependency/mysql/const.go:446
↓ 1 callersMethodHasHighNotPrecedenceMode
HasHighNotPrecedenceMode detects if 'HIGH_NOT_PRECEDENCE' mode is set in SQLMode
tidbparser/dependency/mysql/const.go:441
↓ 1 callersMethodHasIgnoreSpaceMode
HasIgnoreSpaceMode detects if 'IGNORE_SPACE' mode is set in SQLMode
tidbparser/dependency/mysql/const.go:466
↓ 1 callersMethodHasNoBackslashEscapesMode
HasNoBackslashEscapesMode detects if 'NO_BACKSLASH_ESCAPES' mode is set in SQLMode
tidbparser/dependency/mysql/const.go:461
↓ 1 callersMethodHasPipesAsConcatMode
HasPipesAsConcatMode detects if 'PIPES_AS_CONCAT' mode is set in SQLMode
tidbparser/dependency/mysql/const.go:431
↓ 1 callersMethodHasRealAsFloatMode
HasRealAsFloatMode detects if 'REAL_AS_FLOAT' mode is set in SQLMode
tidbparser/dependency/mysql/const.go:451
↓ 1 callersFunctionHasZerofillFlag
HasZerofillFlag checks if ZerofillFlag is set.
tidbparser/dependency/mysql/type.go:107
↓ 1 callersFunctionIndentFormatter
IndentFormatter returns a new Formatter which interprets %i and %u in the Format() formats string as indent and unindent commands. The commands can ne
tidbparser/dependency/util/format/format.go:73
↓ 1 callersFunctionIsBinaryStr
IsBinaryStr returns a boolean indicating whether the field type is a binary string type.
tidbparser/dependency/types/etc.go:89
↓ 1 callersMethodIsEmpty
IsEmpty returns true if TableName is nil or empty.
sqlparser/ast.go:1204
↓ 1 callersFunctionIsIntegral
IsIntegral returns true if querypb.Type is an integral (signed/unsigned) that can be represented using up to 64 binary bits.
sqltypes/type.go:48
↓ 1 callersMethodIsNegative
IsNegative returns whether a decimal is negative.
tidbparser/dependency/types/mydecimal.go:181
↓ 1 callersFunctionIsSigned
IsSigned returns true if querypb.Type is a signed integral.
sqltypes/type.go:53
↓ 1 callersFunctionIsTypeTime
IsTypeTime returns a boolean indicating whether the tp is time type like datetime, date or timestamp.
tidbparser/dependency/types/etc.go:72
↓ 1 callersFunctionIsUnsigned
IsUnsigned returns true if querypb.Type is an unsigned integral. Caution: this is not the same as !IsSigned.
sqltypes/type.go:59
↓ 1 callersMethodLen
Len returns the number of values in the row.
tidbparser/dependency/types/row.go:21
↓ 1 callersMethodLen
Len returns the length.
tidbparser/dependency/util/chunk/iterator.go:39
↓ 1 callersMethodLength
Length gets the length of the datum.
tidbparser/dependency/types/datum.go:111
↓ 1 callersFunctionMakeDatums
MakeDatums creates datum slice from interfaces.
tidbparser/dependency/types/datum.go:1698
↓ 1 callersFunctionMakeString
MakeString makes a VarBinary Value.
sqltypes/value.go:67
↓ 1 callersFunctionMakeTrusted
MakeTrusted makes a new Value based on the type. If the value is an integral, then val must be in its cannonical form. This function should only be us
sqltypes/value.go:59
↓ 1 callersMethodMarshalJSON
MarshalJSON implements the json.Marshaler interface.
tidbparser/dependency/types/json/binary.go:123
↓ 1 callersFunctionMergeBinary
MergeBinary merges multiple BinaryJSON into one according the following rules: 1) adjacent arrays are merged to a single array; 2) adjacent object are
tidbparser/dependency/types/json/binary_functions.go:595
↓ 1 callersFunctionMergeFieldType
MergeFieldType merges two MySQL type to a new type. This is used in hybrid field type expression. For example "select case c when 1 then 2 when 2 then
tidbparser/dependency/types/field_type.go:469
↓ 1 callersFunctionNewBitLiteral
NewBitLiteral parses bit string as BitLiteral type.
tidbparser/dependency/types/binary_literal.go:160
↓ 1 callersFunctionNewBuffer
NewBuffer is equivalent to bytes.NewBuffer.
bytes2/buffer.go:30
↓ 1 callersFunctionNewChunk
NewChunk creates a new chunk with field types.
tidbparser/dependency/util/chunk/chunk.go:45
↓ 1 callersFunctionNewChunkWithCapacity
NewChunkWithCapacity creates a new chunk with field types and capacity.
tidbparser/dependency/util/chunk/chunk.go:50
↓ 1 callersFunctionNewDatum
NewDatum creates a new Datum from an interface{}.
tidbparser/dependency/types/datum.go:1621
↓ 1 callersFunctionNewDecFromInt
NewDecFromInt creates a MyDecimal from int.
tidbparser/dependency/types/mydecimal.go:2132
↓ 1 callersFunctionNewErr
NewErr generates a SQL error, with an error code and default format specifier defined in MySQLErrName.
tidbparser/dependency/mysql/error.go:40
← previousnext →401–500 of 1,509, ranked by callers