DataBase Reader and Writer utilities
Project description
dbrw
Postgres DataBase Reader and Writer utilities.
Installation
pip install dbrw[psycopg2]
or
pip install dbrw[psycopg2-binary]
Basic Usage
export DBRW_PGHOST=localhost
export DBRW_PGPORT=5432
export DBRW_PGDBNAME=postgres
export DBRW_PGUSER=postgres
export DBRW_PGPASSWORD=postgres
export DBRW_PGPOOLSIZE=10
from dbrw import DbSession, DbUtilities
session: DbSession = DbSession()
db: DbUtilities = session.get_db()
db.execute("SELECT * FROM mytable;")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dbrw-0.1.14.tar.gz
(9.7 kB
view details)
File details
Details for the file dbrw-0.1.14.tar.gz.
File metadata
- Download URL: dbrw-0.1.14.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1effb81dede32da2f150aa847c28d69100ea438bef15e8287f18257337fb630
|
|
| MD5 |
bee0eb19a11d23d9ad0657e6284d8e70
|
|
| BLAKE2b-256 |
60daaf8a9f98c968b335db537ee76f25c31dad6bbaca5ea73ea3c1d1b912cf77
|