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
↓ 4 callers
Function
StrToInt
StrToInt converts a string to an integer at the best-effort.
tidbparser/dependency/types/convert.go:140
↓ 4 callers
Function
String
String force casts a []byte to a string. USE AT YOUR OWN RISK
hack/hack.go:64
↓ 4 callers
Method
Week
Week returns the week value.
tidbparser/dependency/types/mytime.go:95
↓ 4 callers
Function
calcDaysInYear
calcDaysInYear calculates days in one year, it works with 0 <= year <= 99.
tidbparser/dependency/types/mytime.go:201
↓ 4 callers
Function
calcTimeDiff
calcTimeDiff calculates difference between two datetime values as seconds + microseconds. t1 and t2 should be TIME/DATE/DATETIME value. sign can be +1
tidbparser/dependency/types/mytime.go:138
↓ 4 callers
Method
convertToUint
(sc *stmtctx.StatementContext, target *FieldType)
tidbparser/dependency/types/datum.go:838
↓ 4 callers
Function
countLeadingZeroes
* countLeadingZeroes returns the number of leading zeroes that can be removed from fraction. @param i start index @param word value to c
tidbparser/dependency/types/mydecimal.go:134
↓ 4 callers
Function
encodeSignedInt
(b []byte, v int64, comparable bool)
tidbparser/dependency/util/codec/codec.go:141
↓ 4 callers
Method
finishAppendVar
()
tidbparser/dependency/util/chunk/chunk.go:398
↓ 4 callers
Function
forceEOF
(yylex interface{})
sqlparser/sql.go:27
↓ 4 callers
Method
getNameValue
(colIdx int)
tidbparser/dependency/util/chunk/chunk.go:539
↓ 4 callers
Function
getUint64FromNUM
(num interface{})
tidbparser/parser/yy_parser.go:234
↓ 4 callers
Method
incN
(n int)
tidbparser/parser/lexer.go:722
↓ 4 callers
Method
isFixed
()
tidbparser/dependency/util/chunk/chunk.go:329
↓ 4 callers
Function
makeMutRowColumn
(in interface{})
tidbparser/dependency/util/chunk/mutrow.go:109
↓ 4 callers
Method
marshalTo
(buf []byte)
tidbparser/dependency/types/json/binary.go:128
↓ 4 callers
Function
myMin
(a, b int)
tidbparser/dependency/types/helper.go:117
↓ 4 callers
Function
newMutRowVarLenColumn
(valSize int)
tidbparser/dependency/util/chunk/mutrow.go:177
↓ 4 callers
Function
parseTwoNumeric
parseTwoNumeric is used for pattens 0..31 0..24 0..60 and so on. It returns the parsed int, and remain data after parse.
tidbparser/dependency/types/time.go:2304
↓ 4 callers
Function
readWord
(b []byte, size int)
tidbparser/dependency/types/mydecimal.go:1323
↓ 4 callers
Method
removeLeadingZeros
()
tidbparser/dependency/types/mydecimal.go:203
↓ 4 callers
Method
scanDigits
()
tidbparser/parser/lexer.go:671
↓ 4 callers
Function
setMutRowNameValue
(col *column, name string, val uint64)
tidbparser/dependency/util/chunk/mutrow.go:320
↓ 4 callers
Function
skipWhiteSpace
(input string)
tidbparser/dependency/types/time.go:2044
↓ 4 callers
Function
writeTime
(buf []byte, t types.Time)
tidbparser/dependency/util/chunk/chunk.go:419
↓ 3 callers
Method
AppendDuration
AppendDuration appends a Duration value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:266
↓ 3 callers
Function
CompareBinary
CompareBinary compares two binary json objects. Returns -1 if left < right, 0 if left == right, else returns 1.
tidbparser/dependency/types/json/binary_functions.go:533
↓ 3 callers
Function
ConvertDatumToDecimal
ConvertDatumToDecimal converts datum to decimal.
tidbparser/dependency/types/datum.go:1290
↓ 3 callers
Function
ConvertJSONToFloat
ConvertJSONToFloat casts JSON into float64.
tidbparser/dependency/types/convert.go:355
↓ 3 callers
Method
ConvertTimeZone
ConvertTimeZone converts the time value from one timezone to another. The input time should be a valid timestamp.
tidbparser/dependency/types/time.go:187
↓ 3 callers
Method
DateFormat
DateFormat returns a textual representation of the time value formatted according to layout. See http://dev.mysql.com/doc/refman/5.7/en/date-and-time-
tidbparser/dependency/types/time.go:1788
↓ 3 callers
Method
Decode
Decode decodes job from the json buffer, we must use DecodeArgs later to decode special args for this job.
tidbparser/dependency/model/ddl.go:194
↓ 3 callers
Function
DecodeUint
DecodeUint decodes value encoded by EncodeUint before. It returns the leftover un-decoded slice, decoded value if no error.
tidbparser/dependency/util/codec/number.go:97
↓ 3 callers
Function
DecodeVarint
DecodeVarint decodes value encoded by EncodeVarint before. It returns the leftover un-decoded slice, decoded value if no error.
tidbparser/dependency/util/codec/number.go:130
↓ 3 callers
Function
EncodeFloat
EncodeFloat encodes a float v into a byte slice which can be sorted lexicographically later. EncodeFloat guarantees that the encoded value is in ascen
tidbparser/dependency/util/codec/float.go:43
↓ 3 callers
Function
EncodeInt
EncodeInt appends the encoded value to slice b and returns the appended slice. EncodeInt guarantees that the encoded value is in ascending order for c
tidbparser/dependency/util/codec/number.go:37
↓ 3 callers
Method
End
End implements the Iterator interface.
tidbparser/dependency/util/chunk/iterator.go:87
↓ 3 callers
Method
End
End implements the Iterator interface.
tidbparser/dependency/util/chunk/iterator.go:141
↓ 3 callers
Method
End
End implements the Iterator interface.
tidbparser/dependency/util/chunk/iterator.go:213
↓ 3 callers
Method
End
End implements the Iterator interface.
tidbparser/dependency/util/chunk/iterator.go:267
↓ 3 callers
Method
Equal
Equal checks whether two FieldType objects are equal.
tidbparser/dependency/types/field_type.go:56
↓ 3 callers
Method
Format
(buf *TrackedBuffer)
sqlparser/ast.go:77
↓ 3 callers
Method
FromInt
FromInt sets the decimal value from int64.
tidbparser/dependency/types/mydecimal.go:890
↓ 3 callers
Method
Gen
Gen generates a new *Error with the same class and code, and a new formatted message.
tidbparser/dependency/terror/terror.go:220
↓ 3 callers
Method
GetDatum
GetDatum gets datum of the expression.
tidbparser/ast/ast.go:74
↓ 3 callers
Method
IsStringKind
IsStringKind returns true for ETString, ETDatetime, ETTimestamp, ETDuration, ETJson EvalTypes.
tidbparser/dependency/types/eval_type.go:39
↓ 3 callers
Function
IsTypeVarchar
IsTypeVarchar returns a boolean indicating whether the tp is the varchar type like a varstring type or a varchar type.
tidbparser/dependency/types/etc.go:49
↓ 3 callers
Function
NewTrackedBuffer
NewTrackedBuffer creates a new TrackedBuffer.
sqlparser/tracked_buffer.go:38
↓ 3 callers
Function
ParseDatetime
ParseDatetime is a helper function wrapping ParseTime with datetime type and default fsp.
tidbparser/dependency/types/time.go:1225
↓ 3 callers
Function
ParseEnumValue
ParseEnumValue creates a Enum with special number.
tidbparser/dependency/types/enum.go:56
↓ 3 callers
Function
ParseSetValue
ParseSetValue creates a Set with special number.
tidbparser/dependency/types/set.go:92
↓ 3 callers
Function
PeekBytesAsJSON
PeekBytesAsJSON trys to peek some bytes from b, until we can deserialize a JSON from those bytes.
tidbparser/dependency/types/json/binary_functions.go:667
↓ 3 callers
Method
Scan
Scan scans the tokenizer for the next token and returns the token type and an optional value.
sqlparser/token.go:345
↓ 3 callers
Method
SetFrac
SetFrac sets the frac of the datum.
tidbparser/dependency/types/datum.go:106
↓ 3 callers
Method
SetLength
SetLength sets the length of the datum
tidbparser/dependency/types/datum.go:116
↓ 3 callers
Method
SetMysqlBit
SetMysqlBit sets MysqlBit value
tidbparser/dependency/types/datum.go:236
↓ 3 callers
Method
SetMysqlDuration
SetMysqlDuration sets Duration value
tidbparser/dependency/types/datum.go:258
↓ 3 callers
Method
SetString
SetString sets string value.
tidbparser/dependency/types/datum.go:175
↓ 3 callers
Function
Sha1Hash
Sha1Hash is an util function to calculate sha1 hash.
tidbparser/dependency/util/auth/auth.go:69
↓ 3 callers
Method
String
()
tidbparser/dependency/types/time.go:199
↓ 3 callers
Method
String
String returns the raw value as a string.
sqltypes/value.go:98
↓ 3 callers
Method
ToBin
* ToBin converts decimal to its binary fixed-length representation two representations of the same length can be compared with memcmp with the correct
tidbparser/dependency/types/mydecimal.go:1079
↓ 3 callers
Function
TypeStr
TypeStr converts tp to a string.
tidbparser/dependency/types/etc.go:136
↓ 3 callers
Method
Weekday
Weekday returns the Weekday value.
tidbparser/dependency/types/mytime.go:70
↓ 3 callers
Method
WriteArg
WriteArg writes a value argument into the buffer along with tracking information for future substitutions. arg must contain the ":" or "::" prefix.
sqlparser/tracked_buffer.go:112
↓ 3 callers
Method
YearWeek
YearWeek return year and week.
tidbparser/dependency/types/mytime.go:89
↓ 3 callers
Function
appendBinary
(buf []byte, in interface{})
tidbparser/dependency/types/json/binary.go:419
↓ 3 callers
Function
appendBinaryFloat64
(buf []byte, v float64)
tidbparser/dependency/types/json/binary.go:526
↓ 3 callers
Function
appendBinaryUint64
(buf []byte, v uint64)
tidbparser/dependency/types/json/binary.go:533
↓ 3 callers
Function
buildBinaryObject
(keys [][]byte, elems []BinaryJSON)
tidbparser/dependency/types/json/binary_functions.go:253
↓ 3 callers
Function
doSub
(from1, from2, to *MyDecimal)
tidbparser/dependency/types/mydecimal.go:1395
↓ 3 callers
Function
encode
encode will encode a datum and append it to a byte slice. If comparable is true, the encoded bytes can be sorted as it's original order. If hash is tr
tidbparser/dependency/util/codec/codec.go:47
↓ 3 callers
Function
extractSecondMicrosecond
extractSecondMicrosecond extracts second and microsecond from a string and its format is `SS.FFFFFF`.
tidbparser/dependency/types/time.go:1490
↓ 3 callers
Function
getDateFromDaynr
getDateFromDaynr changes a daynr to year, month and day, daynr 0 is returned as date 00.00.00
tidbparser/dependency/types/mytime.go:321
↓ 3 callers
Function
getFormatToken
getFormatToken takes one format control token from the string. format "%d %H %m" will get token "%d" and the remain is " %H %m".
tidbparser/dependency/types/time.go:2023
↓ 3 callers
Method
getMsg
()
tidbparser/dependency/terror/terror.go:212
↓ 3 callers
Function
makeMutRowBytesColumn
(bin []byte)
tidbparser/dependency/util/chunk/mutrow.go:195
↓ 3 callers
Method
scanCommentType1
(prefix string)
sqlparser/token.go:647
↓ 3 callers
Method
scanFloat
(beg *Pos)
tidbparser/parser/lexer.go:646
↓ 3 callers
Function
scanTimeArgs
(seps []string, args ...*int)
tidbparser/dependency/types/time.go:690
↓ 3 callers
Function
sub
sub subtracts b and carry from a, returns the diff and new carry.
tidbparser/dependency/types/mydecimal.go:89
↓ 3 callers
Method
test
(flag weekBehaviour)
tidbparser/dependency/types/mytime.go:230
↓ 3 callers
Method
valEntryGet
(valEntryOff int)
tidbparser/dependency/types/json/binary.go:191
↓ 3 callers
Function
writeWord
(b []byte, word int32, size int)
tidbparser/dependency/types/mydecimal.go:1342
↓ 3 callers
Function
yyStatname
(s int)
sqlparser/sql.go:1223
↓ 3 callers
Function
yySymName
(c int)
tidbparser/parser/parser.go:5836
↓ 2 callers
Method
Add
Add adds d to t, returns the result time value.
tidbparser/dependency/types/time.go:497
↓ 2 callers
Function
AddUint64
AddUint64 adds uint64 a and b if no overflow, else returns error.
tidbparser/dependency/types/overflow.go:24
↓ 2 callers
Function
Append
Append appends the SQLNode to the buffer.
sqlparser/ast.go:119
↓ 2 callers
Method
AppendEnum
AppendEnum appends an Enum value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:276
↓ 2 callers
Method
AppendFloat32
AppendFloat32 appends a float32 value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:240
↓ 2 callers
Method
AppendFloat64
AppendFloat64 appends a float64 value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:245
↓ 2 callers
Method
AppendInt64
AppendInt64 appends a int64 value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:230
↓ 2 callers
Method
AppendJSON
AppendJSON appends a JSON value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:286
↓ 2 callers
Method
AppendMyDecimal
AppendMyDecimal appends a MyDecimal value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:271
↓ 2 callers
Method
AppendNull
AppendNull appends a null value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:225
↓ 2 callers
Method
AppendSet
AppendSet appends a Set value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:281
↓ 2 callers
Method
AppendTime
AppendTime appends a Time value to the chunk. TODO: change the time structure so it can be directly written to memory.
tidbparser/dependency/util/chunk/chunk.go:261
↓ 2 callers
Method
AppendUint64
AppendUint64 appends a uint64 value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:235
↓ 2 callers
Method
CompactStr
CompactStr only considers Tp/CharsetBin/Flen/Deimal. This is used for showing column type in infoschema.
tidbparser/dependency/types/field_type.go:189
← previous
next →
201–300 of 1,509, ranked by callers