Skip to main content

Simple wrapper for executing commands and queries

Project description

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

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

psycopg2_wrapper-1.0.tar.gz (2.3 kB view hashes)

Uploaded source

Built Distribution

psycopg2_wrapper-1.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page