# q_sql_mw **Repository Path**: qinwenhui/q_sql_mw ## Basic Information - **Project Name**: q_sql_mw - **Description**: 一个简单的sql中间件 - **Primary Language**: Rust - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-26 - **Last Updated**: 2025-04-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # q_sql_mw #### 介绍 一个简单的sql中间件 #### 软件架构 软件架构说明 sql-middleway/ ├── Cargo.toml ├── configs/ # 配置文件目录 │ ├── dbs.yaml # 数据库连接配置 │ └── middleway.yaml # 中间件全局配置 ├── src/ │ ├── main.rs # 入口文件 │ ├── lib.rs # 核心模块导出 │ ├── protocol/ # 协议处理模块 │ │ ├── mod.rs # 协议抽象接口 │ │ ├── mysql/ # MySQL协议实现 │ │ ├── http/ # HTTP协议实现 │ │ └── custom/ # 自定义协议实现 │ ├── core/ # 核心逻辑模块 │ │ ├── mod.rs # 核心处理逻辑 │ │ ├── processor.rs # 请求处理流程 │ │ └── transaction.rs# 事务管理 │ ├── pool/ # 连接池管理 │ │ ├── mod.rs # 连接池接口 │ │ ├── mysql_pool.rs # MySQL连接池实现 │ │ └── postgres_pool.rs # PG连接池实现 │ ├── config/ # 配置管理模块 │ │ ├── mod.rs # 配置加载与解析 │ │ └── validator.rs # 配置校验 │ ├── session/ # 会话管理 │ │ ├── mod.rs # 会话生命周期管理 │ │ ├── user_identity.rs # 用户标识管理 │ │ └── connection_tracker.rs # 连接追踪 │ ├── error/ # 错误处理模块 │ │ ├── mod.rs # 统一错误类型 │ │ └── error_chain.rs# 错误链处理 │ └── utils/ # 工具类模块 │ ├── logging.rs # 日志工具 │ ├── metrics.rs # 监控指标 │ └── crypto.rs # 加密工具 ├── tests/ # 集成测试 └── benches/ # 性能基准测试 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)