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
↓ 1 callers
Function
NewErrf
NewErrf creates a SQL error, with an error code and a format specifier.
tidbparser/dependency/mysql/error.go:59
↓ 1 callers
Function
NewFloatVal
NewFloatVal builds a new FloatVal.
sqlparser/ast.go:1665
↓ 1 callers
Function
NewHexLiteral
NewHexLiteral parses hexadecimal string as HexLiteral type.
tidbparser/dependency/types/binary_literal.go:203
↓ 1 callers
Function
NewHexNum
NewHexNum builds a new HexNum.
sqlparser/ast.go:1670
↓ 1 callers
Function
NewHexVal
NewHexVal builds a new HexVal.
sqlparser/ast.go:1675
↓ 1 callers
Function
NewIntDatum
NewIntDatum creates a new Datum from an int64 value.
tidbparser/dependency/types/datum.go:1632
↓ 1 callers
Function
NewMaxOrMinDec
NewMaxOrMinDec returns the max or min value decimal for given precision and fraction.
tidbparser/dependency/types/mydecimal.go:2158
↓ 1 callers
Function
NewStrVal
NewStrVal builds a new StrVal.
sqlparser/ast.go:1655
↓ 1 callers
Function
NewStringArena
NewStringArena creates an arena of the specified size.
hack/hack.go:34
↓ 1 callers
Function
NewTracker
NewTracker creates a memory tracker. 1. "label" is the label used in the usage string. 2. "bytesLimit < 0" means no limit.
tidbparser/dependency/util/memory/tracker.go:52
↓ 1 callers
Function
OutputFormat
OutputFormat output escape character with backslash.
tidbparser/dependency/util/format/format.go:184
↓ 1 callers
Method
Parse
Parse parses a query string to raw ast.StmtNode. If charset or collation is "", default charset and collation will be used.
tidbparser/parser/yy_parser.go:88
↓ 1 callers
Function
ParseBinaryFromString
ParseBinaryFromString parses a json from string.
tidbparser/dependency/types/json/binary.go:379
↓ 1 callers
Function
ParseBitStr
ParseBitStr parses bit string. The string format can be b'val', B'val' or 0bval, val must be 0 or 1. See https://dev.mysql.com/doc/refman/5.7/en/bit-v
tidbparser/dependency/types/binary_literal.go:123
↓ 1 callers
Function
ParseDatetimeFromNum
ParseDatetimeFromNum is a helper function wrapping ParseTimeFromNum with datetime type and default fsp.
tidbparser/dependency/types/time.go:1262
↓ 1 callers
Function
ParseEnumName
ParseEnumName creates a Enum with item name.
tidbparser/dependency/types/enum.go:40
↓ 1 callers
Function
ParseErrorWith
ParseErrorWith returns "You have a syntax error near..." error message compatible with mysql.
tidbparser/parser/yy_parser.go:134
↓ 1 callers
Method
ParseFloat64
ParseFloat64 will parse a Value into an float64. It does not check the type. TODO(sougou): deprecate this function in favor of a more type-aware imple
sqltypes/value.go:148
↓ 1 callers
Function
ParseHexStr
ParseHexStr parses hexadecimal string literal. See https://dev.mysql.com/doc/refman/5.7/en/hexadecimal-literals.html
tidbparser/dependency/types/binary_literal.go:170
↓ 1 callers
Method
ParseInt64
ParseInt64 will parse a Value into an int64. It does not check the type. TODO(sougou): deprecate this function in favor of a more type-aware implement
sqltypes/value.go:132
↓ 1 callers
Function
ParseSetName
ParseSetName creates a Set with name.
tidbparser/dependency/types/set.go:42
↓ 1 callers
Method
ParseUint64
ParseUint64 will parse a Value into a uint64. It does not check the type. TODO(sougou): deprecate this function in favor of a more type-aware implemen
sqltypes/value.go:140
↓ 1 callers
Function
ProduceDecWithSpecifiedTp
ProduceDecWithSpecifiedTp produces a new decimal according to `flen` and `decimal`.
tidbparser/dependency/types/datum.go:1072
↓ 1 callers
Function
ProduceFloatWithSpecifiedTp
ProduceFloatWithSpecifiedTp produces a new float64 according to `flen` and `decimal`.
tidbparser/dependency/types/datum.go:746
↓ 1 callers
Function
ProduceStrWithSpecifiedTp
ProduceStrWithSpecifiedTp produces a new string according to `flen` and `chs`.
tidbparser/dependency/types/datum.go:796
↓ 1 callers
Method
Reduced
(rule, state int, lval *yySymType)
tidbparser/parser/parser.go:5833
↓ 1 callers
Method
ReplaceChild
ReplaceChild removes the old child specified in "oldChild" and add a new child specified in "newChild". old child's memory consumption will be removed
tidbparser/dependency/util/memory/tracker.go:88
↓ 1 callers
Function
Round
Round rounds the argument f to dec decimal places. dec defaults to 0 if not specified. dec can be negative to cause dec digits left of the decimal poi
tidbparser/dependency/types/helper.go:40
↓ 1 callers
Method
SetDatum
SetDatum sets the MutRow with colIdx and datum.
tidbparser/dependency/util/chunk/mutrow.go:275
↓ 1 callers
Method
SetInterface
SetInterface sets interface to datum.
tidbparser/dependency/types/datum.go:208
↓ 1 callers
Method
SetNull
SetNull sets datum to nil.
tidbparser/dependency/types/datum.go:214
↓ 1 callers
Method
SetRaw
SetRaw sets raw value.
tidbparser/dependency/types/datum.go:314
↓ 1 callers
Method
SetValue
SetValue sets the MutRow with colIdx and value.
tidbparser/dependency/util/chunk/mutrow.go:228
↓ 1 callers
Method
Shift
Shift shifts decimal digits in given number (with rounding if it need), shift > 0 means shift to left shift, shift < 0 means right shift. In fact it i
tidbparser/dependency/types/mydecimal.go:435
↓ 1 callers
Function
StrToDateTime
StrToDateTime converts str to MySQL DateTime.
tidbparser/dependency/types/convert.go:165
↓ 1 callers
Function
StrToUint
StrToUint converts a string to an unsigned integer at the best-effortt.
tidbparser/dependency/types/convert.go:151
↓ 1 callers
Method
String
String implements fmt.Stringer interface.
tidbparser/ast/misc.go:752
↓ 1 callers
Method
String
String joins the information of FieldType and returns a string. Note: when flen or decimal is unspecified, this function will use the default value in
tidbparser/dependency/types/field_type.go:254
↓ 1 callers
Method
String
String returns the decimal string representation rounded to resultFrac.
tidbparser/dependency/types/mydecimal.go:191
↓ 1 callers
Method
String
String returns the string representation of this Tracker tree.
tidbparser/dependency/util/memory/tracker.go:133
↓ 1 callers
Method
Sub
Sub subtracts t1 from t, returns a duration value. Note that sub should not be done on different time types.
tidbparser/dependency/types/time.go:470
↓ 1 callers
Function
SubInt64
SubInt64 subtracts int64 a with b and returns int64 if no overflow error.
tidbparser/dependency/types/overflow.go:62
↓ 1 callers
Function
SubUint64
SubUint64 subtracts uint64 a with b and returns uint64 if no overflow error.
tidbparser/dependency/types/overflow.go:54
↓ 1 callers
Method
Text
Text returns the original text of the element.
tidbparser/ast/ast.go:40
↓ 1 callers
Method
ToBitLiteralString
ToBitLiteralString returns the bit literal representation for the literal.
tidbparser/dependency/types/binary_literal.go:84
↓ 1 callers
Method
ToMysqlJSON
ToMysqlJSON is similar to convertToMysqlJSON, except the latter parses from string, but the former uses it as primitive.
tidbparser/dependency/types/datum.go:1502
↓ 1 callers
Method
ToString
ToString converts decimal to its printable string representation without rounding. RETURN VALUE str - result string errCode - eDecOK/eDecTru
tidbparser/dependency/types/mydecimal.go:226
↓ 1 callers
Function
TruncateFloat
TruncateFloat tries to truncate f. If the result exceeds the max/min float that flen/decimal allowed, returns the max/min float allowed.
tidbparser/dependency/types/helper.go:71
↓ 1 callers
Function
TruncateOverflowMySQLTime
TruncateOverflowMySQLTime truncates d when it overflows, and return ErrTruncatedWrongVal.
tidbparser/dependency/types/time.go:1052
↓ 1 callers
Function
TypeToStr
TypeToStr converts a field to a string. It is used for converting Text to Blob, or converting Char to Binary. Args: tp: type enum cs: charset
tidbparser/dependency/types/etc.go:146
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON implements the json.Unmarshaler interface.
tidbparser/dependency/types/json/binary.go:391
↓ 1 callers
Method
WalkSubtree
WalkSubtree calls visit on all underlying nodes of the subtree, but not the current one. Walking must be interrupted if visit returns an error.
sqlparser/ast.go:81
↓ 1 callers
Method
YearDay
YearDay returns day in year.
tidbparser/dependency/types/mytime.go:80
↓ 1 callers
Function
abbrDayOfMonth
(day int)
tidbparser/dependency/types/time.go:1931
↓ 1 callers
Method
addColumnByFieldType
addColumnByFieldType adds a column by field type.
tidbparser/dependency/util/chunk/chunk.go:90
↓ 1 callers
Method
addVarLenColumn
addVarLenColumn adds a variable length column with initial data capacity.
tidbparser/dependency/util/chunk/chunk.go:81
↓ 1 callers
Method
aggregateFunc
(x *AggregateFuncExpr)
tidbparser/ast/flag.go:150
↓ 1 callers
Function
alignFrac
alignFrac is used to generate alignment frac, like `100` -> `100000`
tidbparser/dependency/types/fsp.go:90
↓ 1 callers
Method
allocChunk
()
tidbparser/dependency/util/chunk/list.go:109
↓ 1 callers
Function
appendBinaryArray
(buf []byte, array []interface{})
tidbparser/dependency/types/json/binary.go:540
↓ 1 callers
Function
appendBinaryNumber
(buf []byte, x json.Number)
tidbparser/dependency/types/json/binary.go:491
↓ 1 callers
Function
appendBinaryObject
(buf []byte, x map[string]interface{})
tidbparser/dependency/types/json/binary.go:585
↓ 1 callers
Function
appendBinaryString
(buf []byte, v string)
tidbparser/dependency/types/json/binary.go:517
↓ 1 callers
Method
appendBytes
(b []byte)
tidbparser/dependency/util/chunk/chunk.go:409
↓ 1 callers
Method
appendDuration
(dur types.Duration)
tidbparser/dependency/util/chunk/chunk.go:431
↓ 1 callers
Method
appendFloat32
(f float32)
tidbparser/dependency/util/chunk/chunk.go:388
↓ 1 callers
Method
appendFloat64
(f float64)
tidbparser/dependency/util/chunk/chunk.go:393
↓ 1 callers
Function
appendFloatToChunk
(val float64, chk *chunk.Chunk, colIdx int, ft *types.FieldType)
tidbparser/dependency/util/codec/codec.go:625
↓ 1 callers
Method
appendInt64
(i int64)
tidbparser/dependency/util/chunk/chunk.go:378
↓ 1 callers
Method
appendJSON
(j json.BinaryJSON)
tidbparser/dependency/util/chunk/chunk.go:449
↓ 1 callers
Method
appendMyDecimal
(dec *types.MyDecimal)
tidbparser/dependency/util/chunk/chunk.go:436
↓ 1 callers
Method
appendNull
()
tidbparser/dependency/util/chunk/chunk.go:362
↓ 1 callers
Method
appendString
(str string)
tidbparser/dependency/util/chunk/chunk.go:404
↓ 1 callers
Method
appendTime
(t types.Time)
tidbparser/dependency/util/chunk/chunk.go:414
↓ 1 callers
Method
appendUint64
(u uint64)
tidbparser/dependency/util/chunk/chunk.go:383
↓ 1 callers
Function
calcWeekday
calcWeekday calculates weekday from daynr, returns 0 for Monday, 1 for Tuesday ...
tidbparser/dependency/types/mytime.go:209
↓ 1 callers
Method
caseExpr
(x *CaseExpr)
tidbparser/ast/flag.go:92
↓ 1 callers
Function
checkDateRange
(t MysqlTime)
tidbparser/dependency/types/time.go:1316
↓ 1 callers
Function
checkDatetimeType
(t MysqlTime, allowZeroInDate bool)
tidbparser/dependency/types/time.go:1363
↓ 1 callers
Function
checkEqual
(t *testing.T, src interface{}, dst interface{})
sqlparser/sqlparser_test.go:14
↓ 1 callers
Function
checkMonthDay
(year, month, day int)
tidbparser/dependency/types/time.go:1328
↓ 1 callers
Function
checkTimestampType
(t MysqlTime)
tidbparser/dependency/types/time.go:1347
↓ 1 callers
Function
compare
(row Row, colIdx int, ad *types.Datum)
tidbparser/dependency/util/chunk/compare.go:169
↓ 1 callers
Method
compareBinaryLiteral
(sc *stmtctx.StatementContext, b BinaryLiteral)
tidbparser/dependency/types/datum.go:606
↓ 1 callers
Method
compareBytes
(sc *stmtctx.StatementContext, b []byte)
tidbparser/dependency/types/datum.go:564
↓ 1 callers
Function
compareFloat64PrecisionLoss
compareFloat64 returns an integer comparing the float64 x to y, allowing precision loss.
tidbparser/dependency/types/json/binary_functions.go:522
↓ 1 callers
Method
compareInt64
(sc *stmtctx.StatementContext, i int64)
tidbparser/dependency/types/datum.go:460
↓ 1 callers
Method
compareMysqlDecimal
(sc *stmtctx.StatementContext, dec *MyDecimal)
tidbparser/dependency/types/datum.go:568
↓ 1 callers
Method
compareMysqlDuration
(sc *stmtctx.StatementContext, dur Duration)
tidbparser/dependency/types/datum.go:585
↓ 1 callers
Method
compareMysqlEnum
(sc *stmtctx.StatementContext, enum Enum)
tidbparser/dependency/types/datum.go:597
↓ 1 callers
Method
compareMysqlJSON
(sc *stmtctx.StatementContext, target json.BinaryJSON)
tidbparser/dependency/types/datum.go:631
↓ 1 callers
Method
compareMysqlSet
(sc *stmtctx.StatementContext, set Set)
tidbparser/dependency/types/datum.go:622
↓ 1 callers
Method
compareMysqlTime
(sc *stmtctx.StatementContext, time Time)
tidbparser/dependency/types/datum.go:639
↓ 1 callers
Method
compareUint64
(sc *stmtctx.StatementContext, u uint64)
tidbparser/dependency/types/datum.go:476
↓ 1 callers
Method
convertDateFormat
(b rune, buf *bytes.Buffer)
tidbparser/dependency/types/time.go:1815
↓ 1 callers
Function
convertFromCreateTableStmt
(stmt *ast.CreateTableStmt, ddl *DDL)
sqlparser/type_converter.go:9
↓ 1 callers
Function
convertFromTruncateTableStmt
(stmt *ast.TruncateTableStmt)
sqlparser/type_converter.go:60
↓ 1 callers
Function
convertTiDBStmtToVitessDDL
(stmts []ast.StmtNode, ddl *DDL)
sqlparser/type_converter.go:76
↓ 1 callers
Function
convertTiDBStmtToVitessOtherAdmin
(stmts []ast.StmtNode, admin *OtherAdmin)
sqlparser/type_converter.go:64
↓ 1 callers
Function
convertTiDBStmtToVitessShow
(stmts []ast.StmtNode, show *Show)
sqlparser/type_converter.go:88
← previous
next →
501–600 of 1,509, ranked by callers