Skip to content

Commit 29ec007

Browse files
committed
fix readme
1 parent 43e6df6 commit 29ec007

File tree

3 files changed

+23
-21
lines changed

3 files changed

+23
-21
lines changed

README.md

+18-16
Original file line numberDiff line numberDiff line change
@@ -84,22 +84,22 @@ That's all.
8484

8585
## Parameters for the pool initial:
8686

87-
- `host`: Host of MySQL server
88-
- `port`: Port of MySQL server
89-
- `user`: User of MySQL server
90-
- `password`: Password of MySQL server
91-
- `db`: Database of MySQL server
92-
- `charset`: Charset of MySQL server
93-
- `cursorclass`: Class of MySQL Cursor
94-
- `autocommit`: auto commit mode
95-
- `min_size`: Minimum size of connection pool
96-
- `max_size`: Maximum size of connection pool
97-
- `timeout`: Watting time in the multi-thread environment
98-
- `interval`: Statistical cycle time
99-
- `stati_mun`: Statistical frequency
100-
- `multiple`: Regulation standard
101-
- `counter`: Counter
102-
- `accumulation`: Statiscal result
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
103103

104104
## Roadmap
105105

@@ -122,3 +122,5 @@ PyMySQLPool is released under the MIT License. See LICENSE for more information.
122122
Thank you for your interest in contribution of PyMySQLPool, your help and contribution is very valuable.
123123

124124
You can submit issue and pull requests, please submit an issue before submitting pull requests.
125+
126+
At last if the project is helpful to you, please click a star, thank you so much.

pymysqlpool/pool.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,16 @@ class Pool(object):
5858
"""
5959

6060
def __init__(self,
61-
host='localhost',
61+
host="localhost",
6262
port=3306,
63-
user='root',
63+
user=None,
6464
password=None,
6565
db=None,
66-
charset='utf8',
66+
charset="utf8",
6767
cursorclass=pymysql.cursors.DictCursor,
6868
autocommit=False,
6969
min_size=1,
70-
max_size=1,
70+
max_size=3,
7171
timeout=10.0,
7272
interval=600.0,
7373
stati_num=3,

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="pymysql-pooling",
8-
version="0.9.9",
8+
version="1.0.0",
99
author="prprprus",
1010
author_email="[email protected]",
1111
description="pymysql-based database connection pool",

0 commit comments

Comments
 (0)