package
5.2.0-alpha+incompatible
Repository: https://github.com/pingcap/parser.git
Documentation: pkg.go.dev
# Functions
DefaultTypeForValue returns the default FieldType for the value.
MakeDatums creates datum slice from interfaces.
NewBitLiteral parses bit string as BitLiteral type.
NewBytesDatum creates a new Datum from a byte slice.
NewDatum creates a new Datum from an interface{}.
NewHexLiteral parses hexadecimal string as HexLiteral type.
NewStringDatum creates a new Datum from a string.
ParseBitStr parses bit string.
ParseHexStr parses hexadecimal string literal.
SetBinChsClnFlag sets charset, collation as 'binary' and adds binaryFlag to FieldType.
StrLenOfInt64Fast efficiently calculate the string character lengths of an int64 as input.
StrLenOfUint64Fast efficiently calculate the string character lengths of an uint64 as input.
# Constants
DefaultFsp is the default digit of fractional seconds part.
Used for BIT / HEX literals.
Kind constants.
Kind constants.
Kind constants.
Kind constants.
Kind constants.
Kind constants.
Kind constants.
Used for BIT table column values.
Kind constants.
Kind constants.
Kind constants.
Kind constants.
Kind constants.
Kind constants.
Kind constants.
Kind constants.
Kind constants.
Kind constants.
# Variables
ZeroBinaryLiteral is a BinaryLiteral literal with zero value.
# Structs
Datum is a data box holds different kind of data.
MyDecimal represents a decimal value.
ParamMarkerExpr expression holds a place for another expression.
ValueExpr is the simple value expression.
# Type aliases
BinaryLiteral is the internal type for storing bit / hex literal type.
BitLiteral is the bit literal type.
HexLiteral is the hex literal type.