psycopg2-wrapper

Simple wrapper for executing commands and queries


License
MIT
Install
pip install psycopg2-wrapper==1.0

Documentation

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,))