MCPcopy Create free account

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

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

↓ 193 callersMethodLeave
Leave is called after children nodes have been visited. The returned node's type can be different from the input node if it is a ExprNode, Non-express
tidbparser/ast/ast.go:209
↓ 132 callersMethodAccept
Accept accepts Visitor to visit itself. The returned node should replace original node. ok returns false to stop visiting. Implementation of this met
tidbparser/ast/ast.go:38
↓ 99 callersMethodMyprintf
Myprintf mimics fmt.Fprintf(buf, ...), but limited to Node(%v), Node.Value(%s) and string(%s). It also allows a %a for a value argument, in which case
sqlparser/tracked_buffer.go:58
↓ 95 callersMethodEnter
Enter is called before children nodes are visited. The returned node must be the same type as the input node n. skipChildren returns true means childr
tidbparser/ast/ast.go:204
↓ 80 callersFunctionNewCIStr
NewCIStr creates a new CIStr.
tidbparser/dependency/model/model.go:351
↓ 75 callersMethodGenByArgs
GenByArgs generates a new *Error with the same class and code, and new arguments.
tidbparser/dependency/terror/terror.go:229
↓ 72 callersMethodNew
New creates an *Error with an error code and an error message. Usually used to create base *Error.
tidbparser/dependency/terror/terror.go:141
↓ 59 callersMethodErrorf
(format string, a ...interface{})
tidbparser/parser/parser.go:5827
↓ 57 callersFunctionWalk
Walk calls visit on every node. If visit returns true, the underlying nodes are also visited. If it returns an error, walking is interrupted, and the
sqlparser/ast.go:92
↓ 50 callersFunctionNewValueExpr
NewValueExpr creates a ValueExpr with value, and sets default field type.
tidbparser/ast/expressions.go:101
↓ 42 callersMethodWriteByte
WriteByte is equivalent to bytes.Buffer.WriteByte.
bytes2/buffer.go:47
↓ 42 callersMethodWriteString
WriteString is equivalent to bytes.Buffer.WriteString.
bytes2/buffer.go:41
↓ 38 callersFunctionNewFieldType
NewFieldType returns a FieldType, with a type and other information about field type.
tidbparser/dependency/types/field_type.go:47
↓ 38 callersMethodToNumber
ToNumber changes Set to float64 for numeric operation.
tidbparser/dependency/types/set.go:37
↓ 35 callersFunctiondigitsToWords
(digits int)
tidbparser/dependency/types/mydecimal.go:158
↓ 31 callersMethodnext
()
sqlparser/token.go:689
↓ 29 callersMethodFormat
Format formats the AST into a writer.
tidbparser/ast/ast.go:83
↓ 29 callersMethodGetFlag
GetFlag returns the flag of the expression.
tidbparser/ast/ast.go:80
↓ 29 callersMethodIsNull
IsNull returns if the value is null with the colIdx.
tidbparser/dependency/types/row.go:64
↓ 28 callersMethodDay
Day returns the day value.
tidbparser/dependency/types/mytime.go:45
↓ 28 callersMethodinc
inc increase the position offset of the reader. peek must be called before calling inc!
tidbparser/parser/lexer.go:713
↓ 26 callersMethodMonth
Month returns the month value.
tidbparser/dependency/types/mytime.go:40
↓ 26 callersMethodpeek
peek() peeks a rune from underlying reader. if reader meets EOF, it will return unicode.ReplacementChar. to distinguish from the real unicode.Replacem
tidbparser/parser/lexer.go:692
↓ 24 callersMethodGetMysqlDecimal
GetMysqlDecimal gets Decimal value
tidbparser/dependency/types/datum.go:242
↓ 24 callersMethodGetMysqlTime
GetMysqlTime gets types.Time value
tidbparser/dependency/types/datum.go:303
↓ 24 callersMethodGetString
GetString gets string value.
tidbparser/dependency/types/datum.go:170
↓ 24 callersMethodSetFlag
SetFlag sets flag to the expression. Flag indicates whether the expression contains parameter marker, reference, aggregate function...
tidbparser/ast/ast.go:78
↓ 23 callersMethodBytes
Bytes is equivalent to bytes.Buffer.Bytes.
bytes2/buffer.go:53
↓ 23 callersMethodYear
Year returns the year value.
tidbparser/dependency/types/mytime.go:35
↓ 22 callersMethodGetInt64
GetInt64 returns the int64 value with the colIdx.
tidbparser/dependency/types/row.go:24
↓ 22 callersMethodGetMysqlDuration
GetMysqlDuration gets Duration value
tidbparser/dependency/types/datum.go:253
↓ 21 callersMethodCompare
Compare returns an integer comparing the time instant t to o. If t is after o, return 1, equal o, return 0, before o, return -1.
tidbparser/dependency/types/time.go:296
↓ 21 callersFunctionLog
Log logs the error if it is not nil.
tidbparser/dependency/terror/terror.go:339
↓ 21 callersMethodString
String implements fmt.Stringer interface.
tidbparser/dependency/types/set.go:32
↓ 21 callersFunctioninitTokenByte
(c byte, tok int)
tidbparser/parser/misc.go:51
↓ 20 callersMethodGetMysqlEnum
GetMysqlEnum gets Enum value
tidbparser/dependency/types/datum.go:265
↓ 20 callersMethodGetMysqlSet
GetMysqlSet gets Set value
tidbparser/dependency/types/datum.go:278
↓ 20 callersMethodMicrosecond
Microsecond returns the microsecond value.
tidbparser/dependency/types/mytime.go:65
↓ 20 callersMethodToInt
ToInt returns int part of the decimal, returns the result and errcode.
tidbparser/dependency/types/mydecimal.go:922
↓ 19 callersMethodGetBinaryLiteral
GetBinaryLiteral gets Bit value
tidbparser/dependency/types/datum.go:220
↓ 19 callersFunctionNewColIdent
NewColIdent makes a new ColIdent.
sqlparser/ast.go:2466
↓ 18 callersFunctionFromDate
FromDate makes a internal time representation from the given date.
tidbparser/dependency/types/time.go:148
↓ 18 callersMethodKind
Kind gets the kind of the datum.
tidbparser/dependency/types/datum.go:86
↓ 17 callersMethodMinute
Minute returns current minute. e.g, hour("11:11:11") -> 11
tidbparser/dependency/types/time.go:908
↓ 17 callersMethodSecond
Second returns current second. e.g, hour("11:11:11") -> 11
tidbparser/dependency/types/time.go:915
↓ 17 callersMethodSetFloat64
SetFloat64 sets float64 value.
tidbparser/dependency/types/datum.go:153
↓ 17 callersMethoddata
(from *Pos)
tidbparser/parser/lexer.go:741
↓ 16 callersMethodGetUint64
GetUint64 gets uint64 value.
tidbparser/dependency/types/datum.go:137
↓ 16 callersMethodHour
Hour returns current hour. e.g, hour("11:11:11") -> 11
tidbparser/dependency/types/time.go:901
↓ 15 callersMethodGetMysqlJSON
GetMysqlJSON gets json.BinaryJSON value
tidbparser/dependency/types/datum.go:291
↓ 15 callersMethodGetUint64
GetUint64 returns the uint64 value with the colIdx.
tidbparser/dependency/types/row.go:27
↓ 15 callersFunctionSetBinChsClnFlag
SetBinChsClnFlag sets charset, collation as 'binary' and adds binaryFlag to FieldType.
tidbparser/dependency/types/field_type.go:1417
↓ 15 callersMethodgetElemCount
()
tidbparser/dependency/types/json/binary.go:172
↓ 15 callersMethodpos
()
tidbparser/parser/lexer.go:737
↓ 14 callersFunctionCompareFloat64
CompareFloat64 returns an integer comparing the float64 x to y.
tidbparser/dependency/types/compare.go:39
↓ 14 callersMethodGetFloat64
GetFloat64 gets float64 value.
tidbparser/dependency/types/datum.go:148
↓ 14 callersMethodGetFloat64
GetFloat64 returns the float64 value with the colIdx.
tidbparser/dependency/types/row.go:33
↓ 14 callersMethodGetString
GetString returns the string value with the colIdx.
tidbparser/dependency/types/row.go:36
↓ 14 callersMethodString
String returns the unescaped column name. It must not be used for SQL generation. Use sqlparser.String instead. The Stringer conformance is for usage
sqlparser/ast.go:2491
↓ 13 callersMethodGetInt64
GetInt64 gets int64 value.
tidbparser/dependency/types/datum.go:126
↓ 13 callersMethodNumRows
NumRows returns the number of rows in the chunk.
tidbparser/dependency/util/chunk/chunk.go:145
↓ 13 callersMethodToFloat64
ToFloat64 converts to a float64
tidbparser/dependency/types/datum.go:1417
↓ 13 callersMethodWrite
([]byte)
sqltypes/value.go:42
↓ 13 callersMethodeof
()
tidbparser/parser/lexer.go:685
↓ 13 callersMethodincAsLongAs
(fn func(rune) bool)
tidbparser/parser/lexer.go:745
↓ 13 callersFunctionparseDigits
(input string, count int)
tidbparser/dependency/types/time.go:2170
↓ 12 callersMethodSetText
SetText sets original text to the Node.
tidbparser/ast/ast.go:42
↓ 12 callersFunctionSlice
Slice converts string to slice without copy. Use at your own risk.
tidbparser/dependency/util/hack/hack.go:36
↓ 12 callersMethodString
Strings is equivalent to bytes.Buffer.Strings.
bytes2/buffer.go:58
↓ 12 callersMethodToString
ToString gets the string representation of the datum.
tidbparser/dependency/types/datum.go:1453
↓ 12 callersFunctioninitTokenFunc
(str string, fn func(s *Scanner) (int, Pos, string))
tidbparser/parser/misc.go:69
↓ 12 callersFunctioninitTokenString
(str string, tok int)
tidbparser/parser/misc.go:58
↓ 11 callersMethodGetBytes
GetBytes returns the bytes value with the colIdx.
tidbparser/dependency/types/row.go:39
↓ 11 callersMethodGetRow
GetRow gets a Row from the list by RowPtr.
tidbparser/dependency/util/chunk/list.go:122
↓ 11 callersMethodIsNull
IsNull implements the types.Row interface.
tidbparser/dependency/util/chunk/chunk.go:647
↓ 11 callersFunctioncmpNull
(lNull, rNull bool)
tidbparser/dependency/util/chunk/compare.go:59
↓ 11 callersMethodconsumeNext
(buffer *bytes2.Buffer)
sqlparser/token.go:680
↓ 11 callersMethodendOffset
(v *yySymType)
tidbparser/parser/yy_parser.go:155
↓ 10 callersFunctionCompareString
CompareString returns an integer comparing the string x to y.
tidbparser/dependency/types/compare.go:50
↓ 10 callersMethodFromString
FromString parses decimal from string.
tidbparser/dependency/types/mydecimal.go:304
↓ 10 callersFunctionHasUnsignedFlag
HasUnsignedFlag checks if UnsignedFlag is set.
tidbparser/dependency/mysql/type.go:102
↓ 10 callersMethodIsZero
IsZero returns a boolean indicating whether the time is equal to ZeroTime.
tidbparser/dependency/types/time.go:218
↓ 10 callersMethodSetValue
SetValue sets value to the expression.
tidbparser/ast/ast.go:68
↓ 10 callersFunctionString
String converts slice to string without copy. Use at your own risk.
tidbparser/dependency/util/hack/hack.go:23
↓ 10 callersFunctioncheckint
(t *testing.T, actual, expected int)
hack/hack_test.go:70
↓ 10 callersFunctioncheckstring
(t *testing.T, actual, expected string)
hack/hack_test.go:64
↓ 10 callersMethodcompareFloat64
(sc *stmtctx.StatementContext, f float64)
tidbparser/dependency/types/datum.go:492
↓ 10 callersFunctionencodeUnsignedInt
(b []byte, v uint64, comparable bool)
tidbparser/dependency/util/codec/codec.go:152
↓ 10 callersFunctioninvalidConv
(d *Datum, tp byte)
tidbparser/dependency/types/datum.go:1533
↓ 9 callersMethodGetFloat32
GetFloat32 returns the float32 value with the colIdx.
tidbparser/dependency/types/row.go:30
↓ 9 callersMethodHour
Hour returns the hour value.
tidbparser/dependency/types/mytime.go:50
↓ 9 callersMethodMinute
Minute returns the minute value.
tidbparser/dependency/types/mytime.go:55
↓ 9 callersFunctionNewIntVal
NewIntVal builds a new IntVal.
sqlparser/ast.go:1660
↓ 9 callersMethodRound
Round rounds the decimal to "frac" digits. to - result buffer. d == to is allowed frac - to what position after fraction point to round. can be n
tidbparser/dependency/types/mydecimal.go:704
↓ 9 callersMethodSecond
Second returns the second value.
tidbparser/dependency/types/mytime.go:60
↓ 9 callersMethodSetInt64
SetInt64 sets int64 value.
tidbparser/dependency/types/datum.go:131
↓ 9 callersMethodSetMysqlJSON
SetMysqlJSON sets json.BinaryJSON value
tidbparser/dependency/types/datum.go:296
↓ 9 callersMethodarrayGetElem
(idx int)
tidbparser/dependency/types/json/binary.go:176
↓ 9 callersFunctionoverflow
overflow returns an overflowed error.
tidbparser/dependency/types/etc.go:174
↓ 8 callersMethodClock
Clock returns the hour, minute, and second within the day specified by t.
tidbparser/dependency/types/time.go:161
next →1–100 of 1,509, ranked by callers