Skip to main content

Module client

Module client 

Source
Expand description

达梦 DM8 最小客户端(参照 dm-pure Python 驱动移植)。

连接流程: TCP → 握手(cmd=200) → 登录(cmd=1) → 会话查询(cmd=3) → 执行(cmd=5)

Structs§

ClientConfig
客户端配置。
DmClient
达梦客户端:连接 / 查询 / 参数绑定 / LOB / 事务 / 存储过程 / 惰性查询。
LazyState
惰性查询状态(execute_lazy 返回,fetch_more / close_lazy 使用)。
OUT
存储过程 OUT 参数标记:execute("CALL proc(?, ?)", &[Param::Int(1), Param::out(Some(OutType::Int))])
ServerParam
服务器返回的参数元信息(cmd=5 响应 serverParams)。

Enums§

ExecuteResult
执行结果。
OutType
存储过程 OUT 参数类型提示
Param
绑定参数。

Functions§

parse_server_params
解析 cmd=5 响应(DML prepare)的 serverParams。