# STL_MySQL_Conn_Pool **Repository Path**: scitechlabs/STL_MySQL_Conn_Pool ## Basic Information - **Project Name**: STL_MySQL_Conn_Pool - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-25 - **Last Updated**: 2021-01-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # STL_MysqlConnPool # 需要安装 libmysqlclient-dev $ apt-get install libmysqlclient-dev ## 简介 代码应该基于 xPool 仓库([https://github.com/simedcn/xPool](https://github.com/simedcn/xPool))为基础修改的。 基于 mysql 安装后自带的库文件 libmysqlclient.so 开发的 mysql 数据库连接池。 其他参考:[TAlib]https://github.com/trialley/TAlib/blob/6d3237b0c6279d36694c2d8c3e28d7697e92fda3/src/MySQL/pool.h\ ## future - [x] 连接池 - [ ] create - [ ] insert - [ ] delete - [ ] update - [x] select - [ ] drop - [ ] 线程池 - [ ] ERROR处理 - [ ] insert ID插入自增量 - [ ] jsoncpp输出jion - [ ] 类型转换(选做) ## 备注 似乎还有一个 libmysqlcppconn 库,很多 github 仓库使用此它为基础做连接池可以研究。 ## 官方文档 [https://dev.mysql.com/doc/c-api/5.7/en/c-api-function-overview.html](https://dev.mysql.com/doc/c-api/5.7/en/c-api-function-overview.html) | id | device_id | transport_mode | create_time | update_time | | --- | --------- | -------------- | ------------------- | ------------------- | | 1 | 123 | udp | 2020-12-25 15:20:12 | 2020-12-25 15:20:12 |