Expand description
达梦 DM8 最小客户端(参照 dm-pure Python 驱动移植)。
连接流程: TCP → 握手(cmd=200) → 登录(cmd=1) → 会话查询(cmd=3) → 执行(cmd=5)
Structs§
- Client
Config - 客户端配置。
- DmClient
- 达梦客户端:连接 / 查询 / 参数绑定 / LOB / 事务 / 存储过程 / 惰性查询。
- Lazy
State - 惰性查询状态(execute_lazy 返回,fetch_more / close_lazy 使用)。
- OUT
- 存储过程 OUT 参数标记:
execute("CALL proc(?, ?)", &[Param::Int(1), Param::out(Some(OutType::Int))]) - Server
Param - 服务器返回的参数元信息(cmd=5 响应 serverParams)。
Enums§
- Execute
Result - 执行结果。
- OutType
- 存储过程 OUT 参数类型提示
- Param
- 绑定参数。
Functions§
- parse_
server_ params - 解析 cmd=5 响应(DML prepare)的 serverParams。