package
0.0.0-20231023065502-1e4b8bd4bb51
Repository: https://github.com/vivino/bocadillo.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
DecodeBit decodes a bit into not less than 8 bytes.
DecodeDate decodes DATE value.
DecodeDatetime decodes DATETIME value.
DecodeDatetime2 decodes DATETIME v2 value.
DecodeDecimal decodes a decimal value.
DecodeFloat32 decodes a float value into a float32.
DecodeFloat64 decodes a double value into a float64.
DecodeJSON decodes JSON into raw bytes.
DecodeStringEOF copies given slice of bytes as a new string.
DecodeStringLenEnc decodes a length-encoded string from a given slice of bytes.
DecodeStringNullTerm decodes a null terminated string from a given slice of bytes.
DecodeStringVarLen decodes a varible-length string from a given slice of bytes.
DecodeTime decodes TIME value.
DecodeTime2 decodes TIME v2 value.
DecodeTimestamp decodes TIMESTAMP value.
DecodeTimestamp2 decodes TIMESTAMP v2 value.
DecodeUint16 decodes a uint16 value from a given slice of bytes.
DecodeUint24 decodes 3 bytes as uint32 value from a given slice of bytes.
DecodeUint32 decodes a uint32 value from a given slice of bytes.
DecodeUint48 decodes 6 bytes as uint64 value from a given slice of bytes.
DecodeUint64 decodes a uint64 value from a given slice of bytes.
DecodeUint8 decodes a uint8 value from a given slice of bytes.
DecodeUintLenEnc decodes a length-encoded integer from a given slice of bytes.
DecodeVarLen64 decodes a number of given size in bytes using Little Endian.
DecodeVarLen64BigEndian decodes a number of given size in bytes using Big Endian.
DecodeYear decodes YEAR value.
EncodeStringVarLen encodes a variable-length string into a given slice of bytes.
EncodeUint16 encodes given uint16 value into a slice of bytes.
EncodeUint24 encodes given uint32 value as a 3-byte integer into a slice of bytes.
EncodeUint32 encodes given uint32 value into a slice of bytes.
EncodeUint48 encodes given uint64 value as a 6-byte integer into a slice of bytes.
EncodeUint64 encodes given uint64 value into a slice of bytes.
EncodeUint8 encodes given uint8 value into a slice of bytes.
EncodeUintLenEnc writes a length-encoded integer into a given slice of bytes and returns the length of an encoded value.
NewDecimal creates a new decimal with given value.
SignUint16 converts uint16 into int16.
SignUint24 converts 3-byte uint32 into int32.
SignUint32 converts uint32 into int32.
SignUint64 converts uint64 into int64.
SignUint8 converts uint8 into int8.
# Constants
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
Spec: https://dev.mysql.com/doc/internals/en/com-query-response.html#column-type.
# Variables
Timezone is set for decoded datetime values.
# Structs
Decimal represents a decimal type that retains precision until converted to a float.
# Type aliases
ColumnType represents MySQL column type.