MCPcopy Create free account

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

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

↓ 4 callersFunctionStrToInt
StrToInt converts a string to an integer at the best-effort.
tidbparser/dependency/types/convert.go:140
↓ 4 callersFunctionString
String force casts a []byte to a string. USE AT YOUR OWN RISK
hack/hack.go:64
↓ 4 callersMethodWeek
Week returns the week value.
tidbparser/dependency/types/mytime.go:95
↓ 4 callersFunctioncalcDaysInYear
calcDaysInYear calculates days in one year, it works with 0 <= year <= 99.
tidbparser/dependency/types/mytime.go:201
↓ 4 callersFunctioncalcTimeDiff
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 callersMethodconvertToUint
(sc *stmtctx.StatementContext, target *FieldType)
tidbparser/dependency/types/datum.go:838
↓ 4 callersFunctioncountLeadingZeroes
* 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 callersFunctionencodeSignedInt
(b []byte, v int64, comparable bool)
tidbparser/dependency/util/codec/codec.go:141
↓ 4 callersMethodfinishAppendVar
()
tidbparser/dependency/util/chunk/chunk.go:398
↓ 4 callersFunctionforceEOF
(yylex interface{})
sqlparser/sql.go:27
↓ 4 callersMethodgetNameValue
(colIdx int)
tidbparser/dependency/util/chunk/chunk.go:539
↓ 4 callersFunctiongetUint64FromNUM
(num interface{})
tidbparser/parser/yy_parser.go:234
↓ 4 callersMethodincN
(n int)
tidbparser/parser/lexer.go:722
↓ 4 callersMethodisFixed
()
tidbparser/dependency/util/chunk/chunk.go:329
↓ 4 callersFunctionmakeMutRowColumn
(in interface{})
tidbparser/dependency/util/chunk/mutrow.go:109
↓ 4 callersMethodmarshalTo
(buf []byte)
tidbparser/dependency/types/json/binary.go:128
↓ 4 callersFunctionmyMin
(a, b int)
tidbparser/dependency/types/helper.go:117
↓ 4 callersFunctionnewMutRowVarLenColumn
(valSize int)
tidbparser/dependency/util/chunk/mutrow.go:177
↓ 4 callersFunctionparseTwoNumeric
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 callersFunctionreadWord
(b []byte, size int)
tidbparser/dependency/types/mydecimal.go:1323
↓ 4 callersMethodremoveLeadingZeros
()
tidbparser/dependency/types/mydecimal.go:203
↓ 4 callersMethodscanDigits
()
tidbparser/parser/lexer.go:671
↓ 4 callersFunctionsetMutRowNameValue
(col *column, name string, val uint64)
tidbparser/dependency/util/chunk/mutrow.go:320
↓ 4 callersFunctionskipWhiteSpace
(input string)
tidbparser/dependency/types/time.go:2044
↓ 4 callersFunctionwriteTime
(buf []byte, t types.Time)
tidbparser/dependency/util/chunk/chunk.go:419
↓ 3 callersMethodAppendDuration
AppendDuration appends a Duration value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:266
↓ 3 callersFunctionCompareBinary
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 callersFunctionConvertDatumToDecimal
ConvertDatumToDecimal converts datum to decimal.
tidbparser/dependency/types/datum.go:1290
↓ 3 callersFunctionConvertJSONToFloat
ConvertJSONToFloat casts JSON into float64.
tidbparser/dependency/types/convert.go:355
↓ 3 callersMethodConvertTimeZone
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 callersMethodDateFormat
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 callersMethodDecode
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 callersFunctionDecodeUint
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 callersFunctionDecodeVarint
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 callersFunctionEncodeFloat
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 callersFunctionEncodeInt
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 callersMethodEnd
End implements the Iterator interface.
tidbparser/dependency/util/chunk/iterator.go:87
↓ 3 callersMethodEnd
End implements the Iterator interface.
tidbparser/dependency/util/chunk/iterator.go:141
↓ 3 callersMethodEnd
End implements the Iterator interface.
tidbparser/dependency/util/chunk/iterator.go:213
↓ 3 callersMethodEnd
End implements the Iterator interface.
tidbparser/dependency/util/chunk/iterator.go:267
↓ 3 callersMethodEqual
Equal checks whether two FieldType objects are equal.
tidbparser/dependency/types/field_type.go:56
↓ 3 callersMethodFormat
(buf *TrackedBuffer)
sqlparser/ast.go:77
↓ 3 callersMethodFromInt
FromInt sets the decimal value from int64.
tidbparser/dependency/types/mydecimal.go:890
↓ 3 callersMethodGen
Gen generates a new *Error with the same class and code, and a new formatted message.
tidbparser/dependency/terror/terror.go:220
↓ 3 callersMethodGetDatum
GetDatum gets datum of the expression.
tidbparser/ast/ast.go:74
↓ 3 callersMethodIsStringKind
IsStringKind returns true for ETString, ETDatetime, ETTimestamp, ETDuration, ETJson EvalTypes.
tidbparser/dependency/types/eval_type.go:39
↓ 3 callersFunctionIsTypeVarchar
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 callersFunctionNewTrackedBuffer
NewTrackedBuffer creates a new TrackedBuffer.
sqlparser/tracked_buffer.go:38
↓ 3 callersFunctionParseDatetime
ParseDatetime is a helper function wrapping ParseTime with datetime type and default fsp.
tidbparser/dependency/types/time.go:1225
↓ 3 callersFunctionParseEnumValue
ParseEnumValue creates a Enum with special number.
tidbparser/dependency/types/enum.go:56
↓ 3 callersFunctionParseSetValue
ParseSetValue creates a Set with special number.
tidbparser/dependency/types/set.go:92
↓ 3 callersFunctionPeekBytesAsJSON
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 callersMethodScan
Scan scans the tokenizer for the next token and returns the token type and an optional value.
sqlparser/token.go:345
↓ 3 callersMethodSetFrac
SetFrac sets the frac of the datum.
tidbparser/dependency/types/datum.go:106
↓ 3 callersMethodSetLength
SetLength sets the length of the datum
tidbparser/dependency/types/datum.go:116
↓ 3 callersMethodSetMysqlBit
SetMysqlBit sets MysqlBit value
tidbparser/dependency/types/datum.go:236
↓ 3 callersMethodSetMysqlDuration
SetMysqlDuration sets Duration value
tidbparser/dependency/types/datum.go:258
↓ 3 callersMethodSetString
SetString sets string value.
tidbparser/dependency/types/datum.go:175
↓ 3 callersFunctionSha1Hash
Sha1Hash is an util function to calculate sha1 hash.
tidbparser/dependency/util/auth/auth.go:69
↓ 3 callersMethodString
()
tidbparser/dependency/types/time.go:199
↓ 3 callersMethodString
String returns the raw value as a string.
sqltypes/value.go:98
↓ 3 callersMethodToBin
* 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 callersFunctionTypeStr
TypeStr converts tp to a string.
tidbparser/dependency/types/etc.go:136
↓ 3 callersMethodWeekday
Weekday returns the Weekday value.
tidbparser/dependency/types/mytime.go:70
↓ 3 callersMethodWriteArg
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 callersMethodYearWeek
YearWeek return year and week.
tidbparser/dependency/types/mytime.go:89
↓ 3 callersFunctionappendBinary
(buf []byte, in interface{})
tidbparser/dependency/types/json/binary.go:419
↓ 3 callersFunctionappendBinaryFloat64
(buf []byte, v float64)
tidbparser/dependency/types/json/binary.go:526
↓ 3 callersFunctionappendBinaryUint64
(buf []byte, v uint64)
tidbparser/dependency/types/json/binary.go:533
↓ 3 callersFunctionbuildBinaryObject
(keys [][]byte, elems []BinaryJSON)
tidbparser/dependency/types/json/binary_functions.go:253
↓ 3 callersFunctiondoSub
(from1, from2, to *MyDecimal)
tidbparser/dependency/types/mydecimal.go:1395
↓ 3 callersFunctionencode
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 callersFunctionextractSecondMicrosecond
extractSecondMicrosecond extracts second and microsecond from a string and its format is `SS.FFFFFF`.
tidbparser/dependency/types/time.go:1490
↓ 3 callersFunctiongetDateFromDaynr
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 callersFunctiongetFormatToken
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 callersMethodgetMsg
()
tidbparser/dependency/terror/terror.go:212
↓ 3 callersFunctionmakeMutRowBytesColumn
(bin []byte)
tidbparser/dependency/util/chunk/mutrow.go:195
↓ 3 callersMethodscanCommentType1
(prefix string)
sqlparser/token.go:647
↓ 3 callersMethodscanFloat
(beg *Pos)
tidbparser/parser/lexer.go:646
↓ 3 callersFunctionscanTimeArgs
(seps []string, args ...*int)
tidbparser/dependency/types/time.go:690
↓ 3 callersFunctionsub
sub subtracts b and carry from a, returns the diff and new carry.
tidbparser/dependency/types/mydecimal.go:89
↓ 3 callersMethodtest
(flag weekBehaviour)
tidbparser/dependency/types/mytime.go:230
↓ 3 callersMethodvalEntryGet
(valEntryOff int)
tidbparser/dependency/types/json/binary.go:191
↓ 3 callersFunctionwriteWord
(b []byte, word int32, size int)
tidbparser/dependency/types/mydecimal.go:1342
↓ 3 callersFunctionyyStatname
(s int)
sqlparser/sql.go:1223
↓ 3 callersFunctionyySymName
(c int)
tidbparser/parser/parser.go:5836
↓ 2 callersMethodAdd
Add adds d to t, returns the result time value.
tidbparser/dependency/types/time.go:497
↓ 2 callersFunctionAddUint64
AddUint64 adds uint64 a and b if no overflow, else returns error.
tidbparser/dependency/types/overflow.go:24
↓ 2 callersFunctionAppend
Append appends the SQLNode to the buffer.
sqlparser/ast.go:119
↓ 2 callersMethodAppendEnum
AppendEnum appends an Enum value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:276
↓ 2 callersMethodAppendFloat32
AppendFloat32 appends a float32 value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:240
↓ 2 callersMethodAppendFloat64
AppendFloat64 appends a float64 value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:245
↓ 2 callersMethodAppendInt64
AppendInt64 appends a int64 value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:230
↓ 2 callersMethodAppendJSON
AppendJSON appends a JSON value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:286
↓ 2 callersMethodAppendMyDecimal
AppendMyDecimal appends a MyDecimal value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:271
↓ 2 callersMethodAppendNull
AppendNull appends a null value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:225
↓ 2 callersMethodAppendSet
AppendSet appends a Set value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:281
↓ 2 callersMethodAppendTime
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 callersMethodAppendUint64
AppendUint64 appends a uint64 value to the chunk.
tidbparser/dependency/util/chunk/chunk.go:235
↓ 2 callersMethodCompactStr
CompactStr only considers Tp/CharsetBin/Flen/Deimal. This is used for showing column type in infoschema.
tidbparser/dependency/types/field_type.go:189
← previousnext →201–300 of 1,509, ranked by callers