Expand description
§SZ-ORM 的 actix-web 框架集成
提供:
PoolState— 连接池的 actix-web 应用数据包装(实现FromRequest)JsonRows— 包装QueryRows实现ResponderJsonResp<T>— 通用 JSON 响应包装TransactionMiddleware— 事务中间件(请求成功提交,失败回滚)
由于 Rust 孤儿规则,无法直接为 Arc<Pool> 或 QueryRows 实现
actix-web 的 FromRequest/Responder,因此使用 PoolState / JsonRows
包装类型(与 sz-orm-axum 风格保持一致)。
Structs§
- Json
Resp - 通用 JSON 响应包装
- Json
Rows - 包装
QueryRows实现Responder - Pool
State - 连接池的 actix-web 应用数据包装
- Transaction
Conn - 事务连接持有者
- Transaction
Middleware - 事务中间件
- Transaction
Middleware Service - 事务中间件服务