package
0.0.0-20250117090402-068cd5952c55
Repository: https://github.com/apecloud/myduckserver.git
Documentation: pkg.go.dev
# README
The code in this directory was copied and modified from the Vitess project (as of 2024-09-19, https://github.com/vitessio/vitess/blob/main/go/mysql/binlog/). The original code is licensed under the Apache License, Version 2.0. The modifications are also licensed under the Apache License, Version 2.0. The goal is to bypass unnecessary string conversion and memory allocation in the original code.
# Functions
CellLength returns the new position after the field with the given type is read.
CellValue returns the data for a cell as a sqltypes.Value, and how many bytes it takes.
# Constants
IMPORTANT: The order of these values is important.
No description provided by the author
TypeBit is MYSQL_TYPE_BIT.
TypeBlob is MYSQL_TYPE_BLOB.
TypeDate is MYSQL_TYPE_DATE.
TypeDateTime is MYSQL_TYPE_DATETIME.
TypeDateTime2 is MYSQL_TYPE_DATETIME2.
TypeDecimal is MYSQL_TYPE_DECIMAL.
TypeDouble is MYSQL_TYPE_DOUBLE.
TypeEnum is MYSQL_TYPE_ENUM.
TypeFloat is MYSQL_TYPE_FLOAT.
TypeGeometry is MYSQL_TYPE_GEOMETRY.
TypeInt24 is MYSQL_TYPE_INT24.
TypeJSON is MYSQL_TYPE_JSON.
TypeLong is MYSQL_TYPE_LONG.
TypeLongBlob is MYSQL_TYPE_LONG_BLOB.
TypeLongLong is MYSQL_TYPE_LONGLONG.
TypeMediumBlob is MYSQL_TYPE_MEDIUM_BLOB.
TypeNewDate is MYSQL_TYPE_NEWDATE.
TypeNewDecimal is MYSQL_TYPE_NEWDECIMAL.
TypeNull is MYSQL_TYPE_NULL.
TypeSet is MYSQL_TYPE_SET.
TypeShort is MYSQL_TYPE_SHORT.
TypeString is MYSQL_TYPE_STRING.
TypeTime is MYSQL_TYPE_TIME.
TypeTime2 is MYSQL_TYPE_TIME2.
TypeTimestamp is MYSQL_TYPE_TIMESTAMP.
TypeTimestamp2 is MYSQL_TYPE_TIMESTAMP2.
TypeTiny is MYSQL_TYPE_TINY.
TypeTinyBlob is MYSQL_TYPE_TINY_BLOB.
TypeVarchar is MYSQL_TYPE_VARCHAR.
TypeVarString is MYSQL_TYPE_VAR_STRING.
TypeVector is MYSQL_TYPE_VECTOR.
TypeYear is MYSQL_TYPE_YEAR.
No description provided by the author
# Variables
No description provided by the author
ZeroTimestamp is the special value 0 for a timestamp.
# Type aliases
No description provided by the author