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
↓ 2 callers
Function
reallocBytes
reallocBytes is like realloc.
tidbparser/dependency/util/codec/bytes.go:194
↓ 2 callers
Function
reverseBytes
(b []byte)
tidbparser/dependency/util/codec/bytes.go:184
↓ 2 callers
Function
roundTime
roundTime rounds the time value according to digits count specified by fsp.
tidbparser/dependency/types/time.go:334
↓ 2 callers
Method
scanBit
()
tidbparser/parser/lexer.go:640
↓ 2 callers
Method
scanHex
()
tidbparser/parser/lexer.go:632
↓ 2 callers
Function
scanIdentifier
(s *Scanner)
tidbparser/parser/lexer.go:434
↓ 2 callers
Method
scanNumber
(seenDecimalPoint bool)
sqlparser/token.go:569
↓ 2 callers
Function
setAllowComments
(yylex interface{}, allow bool)
sqlparser/sql.go:11
↓ 2 callers
Function
setMutRowJSON
(col *column, j json.BinaryJSON)
tidbparser/dependency/util/chunk/mutrow.go:334
↓ 2 callers
Function
setTypeFlag
(flag *uint, flagItem uint, on bool)
tidbparser/dependency/types/field_type.go:145
↓ 2 callers
Method
setUseBuf
(str string)
tidbparser/parser/lexer.go:482
↓ 2 callers
Method
skipWhitespace
()
tidbparser/parser/lexer.go:197
↓ 2 callers
Function
sqlOffsetInComment
(comment string)
tidbparser/parser/lexer.go:389
↓ 2 callers
Method
stmtText
()
tidbparser/parser/yy_parser.go:76
↓ 2 callers
Function
toDecimal
(l yyLexer, lval *yySymType, str string)
tidbparser/parser/yy_parser.go:191
↓ 2 callers
Method
toSignedInteger
(sc *stmtctx.StatementContext, tp byte)
tidbparser/dependency/types/datum.go:1343
↓ 2 callers
Function
trimLeadingZeroBytes
(bytes []byte)
tidbparser/dependency/types/binary_literal.go:40
↓ 2 callers
Function
truncateStr
(str string, flen int)
tidbparser/dependency/types/convert.go:33
↓ 2 callers
Function
tsConvert2Time
tsConvert2Time converts timestamp to time.
tidbparser/dependency/model/ddl.go:152
↓ 2 callers
Function
unquoteString
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 callers
Function
weekMode
(mode int)
tidbparser/dependency/types/mytime.go:234
↓ 2 callers
Function
yylex1
(lex yyLexer, lval *yySymType)
sqlparser/sql.go:1296
↓ 1 callers
Method
Action
Action will be called when memory usage exceeds memory quota by the corresponding Tracker.
tidbparser/dependency/util/memory/action.go:28
↓ 1 callers
Method
AddDBInfo
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 callers
Function
AddInt64
AddInt64 adds int64 a and b if no overflow, otherwise returns error.
tidbparser/dependency/types/overflow.go:32
↓ 1 callers
Method
AddTableInfo
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 callers
Function
AdjustYear
AdjustYear is used for adjusting year and checking its validation.
tidbparser/dependency/types/time.go:740
↓ 1 callers
Method
AppendPartialRow
AppendPartialRow appends a row to the chunk.
tidbparser/dependency/util/chunk/chunk.go:164
↓ 1 callers
Method
Bytes
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 callers
Method
Check
Check if 't' is valid
tidbparser/dependency/types/time.go:464
↓ 1 callers
Method
Close
Close closes the underlying iterator, call Next after Close will restart the iteration.
tidbparser/ast/ast.go:151
↓ 1 callers
Method
Compare
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 callers
Function
ConvertUintToInt
ConvertUintToInt converts an uint value to an int value.
tidbparser/dependency/types/convert.go:100
↓ 1 callers
Method
Copy
Copy deep copies a Datum.
tidbparser/dependency/types/datum.go:69
↓ 1 callers
Function
DecimalPeak
DecimalPeak returns the length of the encoded decimal.
tidbparser/dependency/types/mydecimal.go:2122
↓ 1 callers
Function
DecodeOne
DecodeOne decodes on datum from a byte slice generated with EncodeKey or EncodeValue.
tidbparser/dependency/util/codec/codec.go:301
↓ 1 callers
Function
DecodeUintDesc
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 callers
Function
EncodeCompactBytes
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 callers
Function
EncodeComparableUvarint
EncodeComparableUvarint encodes uint64 into mem-comparable bytes.
tidbparser/dependency/util/codec/number.go:196
↓ 1 callers
Function
EncodePassword
EncodePassword converts plaintext password to hashed hex string.
tidbparser/dependency/util/auth/auth.go:77
↓ 1 callers
Function
EncodeUintDesc
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 callers
Function
EncodeUvarint
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 callers
Method
Equal
Equal returns true if the column names match.
sqlparser/ast.go:1778
↓ 1 callers
Method
EqualClass
EqualClass returns true if err is *Error with the same class.
tidbparser/dependency/terror/terror.go:123
↓ 1 callers
Method
EvalType
EvalType gets the type in evaluation.
tidbparser/dependency/types/field_type.go:154
↓ 1 callers
Method
Frac
Frac gets the frac of the datum.
tidbparser/dependency/types/datum.go:101
↓ 1 callers
Method
FromBin
FromBin Restores decimal from its binary fixed-length representation.
tidbparser/dependency/types/mydecimal.go:1213
↓ 1 callers
Method
FromPackedUint
FromPackedUint decodes Time from a packed uint64 value.
tidbparser/dependency/types/time.go:419
↓ 1 callers
Function
GetCharsetInfo
GetCharsetInfo returns charset and collation for cs as name.
tidbparser/dependency/util/charset/charset.go:132
↓ 1 callers
Method
GetDatum
GetDatum implements the types.Row interface.
tidbparser/dependency/util/chunk/chunk.go:588
↓ 1 callers
Function
GetDefaultCollation
GetDefaultCollation returns the default collation for charset.
tidbparser/dependency/util/charset/charset.go:119
↓ 1 callers
Function
GetDefaultFieldLengthAndDecimal
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 callers
Method
GetDuration
GetDuration returns the Duration value with the colIdx.
tidbparser/dependency/util/chunk/chunk.go:534
↓ 1 callers
Method
GetEnum
GetEnum returns the Enum value with the colIdx.
tidbparser/dependency/util/chunk/chunk.go:551
↓ 1 callers
Method
GetFloat32
GetFloat32 returns the float64 value with the colIdx.
tidbparser/dependency/util/chunk/chunk.go:484
↓ 1 callers
Method
GetFloat64
GetFloat64 gets the float64 value.
tidbparser/dependency/types/json/binary.go:159
↓ 1 callers
Method
GetFloat64
GetFloat64 returns the float64 value with the colIdx.
tidbparser/dependency/util/chunk/chunk.go:490
↓ 1 callers
Method
GetInt64
GetInt64 gets the int64 value.
tidbparser/dependency/types/json/binary.go:149
↓ 1 callers
Method
GetInt64
GetInt64 returns the int64 value with the colIdx.
tidbparser/dependency/util/chunk/chunk.go:472
↓ 1 callers
Method
GetInterface
GetInterface gets interface value.
tidbparser/dependency/types/datum.go:203
↓ 1 callers
Method
GetJSON
GetJSON returns the JSON value with the colIdx.
tidbparser/dependency/util/chunk/chunk.go:569
↓ 1 callers
Method
GetMyDecimal
GetMyDecimal returns the MyDecimal value with the colIdx.
tidbparser/dependency/util/chunk/chunk.go:563
↓ 1 callers
Method
GetRow
GetRow gets the Row in the chunk with the row index.
tidbparser/dependency/util/chunk/chunk.go:153
↓ 1 callers
Method
GetRowCount
GetRowCount gets the number of rows. Make sure it can pass `make race`.
tidbparser/dependency/model/ddl.go:166
↓ 1 callers
Method
GetSQLMode
GetSQLMode return the SQL mode of scanner.
tidbparser/parser/lexer.go:188
↓ 1 callers
Method
GetSet
GetSet returns the Set value with the colIdx.
tidbparser/dependency/util/chunk/chunk.go:557
↓ 1 callers
Method
GetTime
GetTime returns the Time value with the colIdx. TODO: use Time structure directly.
tidbparser/dependency/util/chunk/chunk.go:511
↓ 1 callers
Method
GetType
GetType gets the evaluation type of the expression.
tidbparser/ast/ast.go:66
↓ 1 callers
Method
GetUint64
GetUint64 returns the uint64 value with the colIdx.
tidbparser/dependency/util/chunk/chunk.go:478
↓ 1 callers
Method
HasANSIQuotesMode
HasANSIQuotesMode detects if 'ANSI_QUOTES' mode is set in SQLMode
tidbparser/dependency/mysql/const.go:446
↓ 1 callers
Method
HasHighNotPrecedenceMode
HasHighNotPrecedenceMode detects if 'HIGH_NOT_PRECEDENCE' mode is set in SQLMode
tidbparser/dependency/mysql/const.go:441
↓ 1 callers
Method
HasIgnoreSpaceMode
HasIgnoreSpaceMode detects if 'IGNORE_SPACE' mode is set in SQLMode
tidbparser/dependency/mysql/const.go:466
↓ 1 callers
Method
HasNoBackslashEscapesMode
HasNoBackslashEscapesMode detects if 'NO_BACKSLASH_ESCAPES' mode is set in SQLMode
tidbparser/dependency/mysql/const.go:461
↓ 1 callers
Method
HasPipesAsConcatMode
HasPipesAsConcatMode detects if 'PIPES_AS_CONCAT' mode is set in SQLMode
tidbparser/dependency/mysql/const.go:431
↓ 1 callers
Method
HasRealAsFloatMode
HasRealAsFloatMode detects if 'REAL_AS_FLOAT' mode is set in SQLMode
tidbparser/dependency/mysql/const.go:451
↓ 1 callers
Function
HasZerofillFlag
HasZerofillFlag checks if ZerofillFlag is set.
tidbparser/dependency/mysql/type.go:107
↓ 1 callers
Function
IndentFormatter
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 callers
Function
IsBinaryStr
IsBinaryStr returns a boolean indicating whether the field type is a binary string type.
tidbparser/dependency/types/etc.go:89
↓ 1 callers
Method
IsEmpty
IsEmpty returns true if TableName is nil or empty.
sqlparser/ast.go:1204
↓ 1 callers
Function
IsIntegral
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 callers
Method
IsNegative
IsNegative returns whether a decimal is negative.
tidbparser/dependency/types/mydecimal.go:181
↓ 1 callers
Function
IsSigned
IsSigned returns true if querypb.Type is a signed integral.
sqltypes/type.go:53
↓ 1 callers
Function
IsTypeTime
IsTypeTime returns a boolean indicating whether the tp is time type like datetime, date or timestamp.
tidbparser/dependency/types/etc.go:72
↓ 1 callers
Function
IsUnsigned
IsUnsigned returns true if querypb.Type is an unsigned integral. Caution: this is not the same as !IsSigned.
sqltypes/type.go:59
↓ 1 callers
Method
Len
Len returns the number of values in the row.
tidbparser/dependency/types/row.go:21
↓ 1 callers
Method
Len
Len returns the length.
tidbparser/dependency/util/chunk/iterator.go:39
↓ 1 callers
Method
Length
Length gets the length of the datum.
tidbparser/dependency/types/datum.go:111
↓ 1 callers
Function
MakeDatums
MakeDatums creates datum slice from interfaces.
tidbparser/dependency/types/datum.go:1698
↓ 1 callers
Function
MakeString
MakeString makes a VarBinary Value.
sqltypes/value.go:67
↓ 1 callers
Function
MakeTrusted
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 callers
Method
MarshalJSON
MarshalJSON implements the json.Marshaler interface.
tidbparser/dependency/types/json/binary.go:123
↓ 1 callers
Function
MergeBinary
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 callers
Function
MergeFieldType
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 callers
Function
NewBitLiteral
NewBitLiteral parses bit string as BitLiteral type.
tidbparser/dependency/types/binary_literal.go:160
↓ 1 callers
Function
NewBuffer
NewBuffer is equivalent to bytes.NewBuffer.
bytes2/buffer.go:30
↓ 1 callers
Function
NewChunk
NewChunk creates a new chunk with field types.
tidbparser/dependency/util/chunk/chunk.go:45
↓ 1 callers
Function
NewChunkWithCapacity
NewChunkWithCapacity creates a new chunk with field types and capacity.
tidbparser/dependency/util/chunk/chunk.go:50
↓ 1 callers
Function
NewDatum
NewDatum creates a new Datum from an interface{}.
tidbparser/dependency/types/datum.go:1621
↓ 1 callers
Function
NewDecFromInt
NewDecFromInt creates a MyDecimal from int.
tidbparser/dependency/types/mydecimal.go:2132
↓ 1 callers
Function
NewErr
NewErr generates a SQL error, with an error code and default format specifier defined in MySQLErrName.
tidbparser/dependency/mysql/error.go:40
← previous
next →
401–500 of 1,509, ranked by callers