Simple wrapper for executing commands and queries
Features
- Connection Pool
- Client cursor
For installing package:
pip install psycopg2-wrapper
For usage:
from psycopg2_wrapper.database import Database database = Database(host='host_name', database='db_name', user='db_user', password='db_password') result = database.execute_query('select * from user where id=%s', (1,))