|
1 | 1 | # PyMySQLPool
|
2 | 2 |
|
3 |
| -[](hhttps://travis-ci.org/zongzhenh/PyMySQLPool.svg?branch=master) [](https://codecov.io/gh/zongzhenh/PyMySQLPool) [](https://img.shields.io/badge/pip-v18.1-blue.svg) [](./LICENSE) |
| 3 | +[](https://travis-ci.org/zongzhenh/PyMySQLPool.svg?branch=master) [](https://codecov.io/gh/zongzhenh/PyMySQLPool) [](https://img.shields.io/badge/pip-v18.1-blue.svg) [](./LICENSE) |
4 | 4 |
|
5 | 5 | PyMySQLPool is a pymysql-based database connection pool, simple and lightweight.
|
6 | 6 |
|
@@ -82,25 +82,6 @@ pool = Pool(host=HOST, port=PORT, user=USER, password=PASSWORD, db=DB, autocommi
|
82 | 82 |
|
83 | 83 | That's all.
|
84 | 84 |
|
85 |
| -## Parameters for the pool initial: |
86 |
| - |
87 |
| -- `host`: Host of MySQL server, default for localhost |
88 |
| -- `port`: Port of MySQL server, default for 3306 |
89 |
| -- `user`: User of MySQL server, default for None |
90 |
| -- `password`: Password of MySQL server, default for None |
91 |
| -- `db`: Database of MySQL server, default for None |
92 |
| -- `charset`: Charset of MySQL server, default for utf8 |
93 |
| -- `cursorclass`: Class of MySQL Cursor, default for pymysql.cursors.DictCursor |
94 |
| -- `autocommit`: auto commit mode, default for False |
95 |
| -- `min_size`: Minimum size of connection pool, default for 1 |
96 |
| -- `max_size`: Maximum size of connection pool, default for 3 |
97 |
| -- `timeout`: Watting time in the multi-thread environment, default for 10.0 |
98 |
| -- `interval`: Statistical cycle time, default for 600.0 |
99 |
| -- `stati_mun`: Statistical frequency, default for 3 |
100 |
| -- `multiple`: Regulation standard, default for 4 |
101 |
| -- `counter`: Counter, default for 0 |
102 |
| -- `accumulation`: Statiscal result, default for 0 |
103 |
| - |
104 | 85 | ## Roadmap
|
105 | 86 |
|
106 | 87 | + [x] Connection Pool
|
|
0 commit comments