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 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page