Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
prprprus committed Apr 3, 2019
1 parent 4ead6df commit a17e59b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
language: python

python:
- "3.4"
- "3.5"
- "3.5-dev"
- "3.6"
- "3.6-dev"
- "3.7-dev"

env:
- CODECOV_TOKEN="e57b350a-75fb-40fd-964a-9c0e85dfa0ff"

before_install:
- "pip install -U pip"
- "export PYTHONPATH=$PYTHONPATH:$(pwd)"

install:
- pip install -r requirements.txt
- pip install codecov

script:
- coverage run test/test_pool.py

after_success:
- codecov
- codecov
21 changes: 1 addition & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PyMySQLPool

[![build status](https://travis-ci.org/prprprus/PyMySQLPool.svg?branch=master)](hhttps://travis-ci.org/zongzhenh/PyMySQLPool.svg?branch=master) [![codecov](https://codecov.io/gh/zongzhenh/PyMySQLPool/branch/master/graph/badge.svg)](https://codecov.io/gh/zongzhenh/PyMySQLPool) [![pip version](https://img.shields.io/badge/pip-v18.1-blue.svg)](https://img.shields.io/badge/pip-v18.1-blue.svg) [![license](https://img.shields.io/dub/l/vibe-d.svg)](./LICENSE)
[![build status](https://travis-ci.org/prprprus/PyMySQLPool.svg?branch=master)](https://travis-ci.org/zongzhenh/PyMySQLPool.svg?branch=master) [![codecov](https://codecov.io/gh/zongzhenh/PyMySQLPool/branch/master/graph/badge.svg)](https://codecov.io/gh/zongzhenh/PyMySQLPool) [![pip version](https://img.shields.io/badge/pip-v18.1-blue.svg)](https://img.shields.io/badge/pip-v18.1-blue.svg) [![license](https://img.shields.io/dub/l/vibe-d.svg)](./LICENSE)

PyMySQLPool is a pymysql-based database connection pool, simple and lightweight.

Expand Down Expand Up @@ -82,25 +82,6 @@ pool = Pool(host=HOST, port=PORT, user=USER, password=PASSWORD, db=DB, autocommi

That's all.

## Parameters for the pool initial:

- `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

+ [x] Connection Pool
Expand Down

0 comments on commit a17e59b

Please sign in to comment.