Categorygithub.com/WANGgbin/mini_mysql_driver
modulepackage
0.0.0-20231022143947-b0af91c36d20
Repository: https://github.com/wanggbin/mini_mysql_driver.git
Documentation: pkg.go.dev

# README

实现一个 go 版本的 mysql driver.

架构

组件

  • 数据包序列化与反序列化
  • tcp 连接的维护:创建、关闭

# Functions

No description provided by the author
No description provided by the author
No description provided by the author

# Constants

参考:https://dev.mysql.com/doc/dev/mysql-server/latest/group__group__cs__capabilities__flags.html.
参考:https://dev.mysql.com/doc/dev/mysql-server/latest/group__group__cs__capabilities__flags.html.
参考:https://dev.mysql.com/doc/dev/mysql-server/latest/group__group__cs__capabilities__flags.html.
参考:https://dev.mysql.com/doc/dev/mysql-server/latest/group__group__cs__capabilities__flags.html.
参考:https://dev.mysql.com/doc/dev/mysql-server/latest/group__group__cs__capabilities__flags.html.
参考:https://dev.mysql.com/doc/dev/mysql-server/latest/group__group__cs__capabilities__flags.html.
参考:https://dev.mysql.com/doc/dev/mysql-server/latest/group__group__cs__capabilities__flags.html.
参考:https://dev.mysql.com/doc/dev/mysql-server/latest/group__group__cs__capabilities__flags.html.
参考:https://dev.mysql.com/doc/dev/mysql-server/latest/group__group__cs__capabilities__flags.html.
参考:https://dev.mysql.com/doc/dev/mysql-server/latest/group__group__cs__capabilities__flags.html.
参考:https://dev.mysql.com/doc/dev/mysql-server/latest/group__group__cs__capabilities__flags.html.
参考:https://dev.mysql.com/doc/dev/mysql-server/latest/group__group__cs__capabilities__flags.html.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
区分读错误的目的是:在非 ErrReadSocket 的时候,是可以复用底层链接的.
区分读错误的目的是:在非 ErrReadSocket 的时候,是可以复用底层链接的.
区分读错误的目的是:在非 ErrReadSocket 的时候,是可以复用底层链接的.
区分读错误的目的是:在非 ErrReadSocket 的时候,是可以复用底层链接的.
区分这两种错误的原因是,如果没有写入任何字节,则应该返回 driver.ErrBadConn, 这样 sql 包会进行重试.
区分这两种错误的原因是,如果没有写入任何字节,则应该返回 driver.ErrBadConn, 这样 sql 包会进行重试.
区分这两种错误的原因是,如果没有写入任何字节,则应该返回 driver.ErrBadConn, 这样 sql 包会进行重试.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
CmdPing 检查服务端是否存活, Name: 0x0E.
CmdQuery 当 sql 没有参数的时候,就可以考虑直接使用 CmdQuery 命令,这会减少 prepare/close statement 这样的 roundtrip 从而提高性能.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StmtPrepare 创建预定义语句,Name: 0x16.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author