Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
prprprus committed Feb 21, 2019
1 parent 43e6df6 commit 29ec007
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 21 deletions.
34 changes: 18 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,22 +84,22 @@ That's all.

## Parameters for the pool initial:

- `host`: Host of MySQL server
- `port`: Port of MySQL server
- `user`: User of MySQL server
- `password`: Password of MySQL server
- `db`: Database of MySQL server
- `charset`: Charset of MySQL server
- `cursorclass`: Class of MySQL Cursor
- `autocommit`: auto commit mode
- `min_size`: Minimum size of connection pool
- `max_size`: Maximum size of connection pool
- `timeout`: Watting time in the multi-thread environment
- `interval`: Statistical cycle time
- `stati_mun`: Statistical frequency
- `multiple`: Regulation standard
- `counter`: Counter
- `accumulation`: Statiscal result
- `host`: Host of MySQL server, default for localhost
- `port`: Port of MySQL server, default for 3306
- `user`: User of MySQL server, default for None
- `password`: Password of MySQL server, default for None
- `db`: Database of MySQL server, default for None
- `charset`: Charset of MySQL server, default for utf8
- `cursorclass`: Class of MySQL Cursor, default for pymysql.cursors.DictCursor
- `autocommit`: auto commit mode, default for False
- `min_size`: Minimum size of connection pool, default for 1
- `max_size`: Maximum size of connection pool, default for 3
- `timeout`: Watting time in the multi-thread environment, default for 10.0
- `interval`: Statistical cycle time, default for 600.0
- `stati_mun`: Statistical frequency, default for 3
- `multiple`: Regulation standard, default for 4
- `counter`: Counter, default for 0
- `accumulation`: Statiscal result, default for 0

## Roadmap

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

You can submit issue and pull requests, please submit an issue before submitting pull requests.

At last if the project is helpful to you, please click a star, thank you so much.
8 changes: 4 additions & 4 deletions pymysqlpool/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@ class Pool(object):
"""

def __init__(self,
host='localhost',
host="localhost",
port=3306,
user='root',
user=None,
password=None,
db=None,
charset='utf8',
charset="utf8",
cursorclass=pymysql.cursors.DictCursor,
autocommit=False,
min_size=1,
max_size=1,
max_size=3,
timeout=10.0,
interval=600.0,
stati_num=3,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pymysql-pooling",
version="0.9.9",
version="1.0.0",
author="prprprus",
author_email="huangzongzhuan@gmail.com",
description="pymysql-based database connection pool",
Expand Down

0 comments on commit 29ec007

Please sign in to comment.