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.13.tar.gz
(9.6 kB
view details)
File details
Details for the file dbrw-0.1.13.tar.gz.
File metadata
- Download URL: dbrw-0.1.13.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8c2c1d3c8d70a0b44d9ca40e9cc864021f816d826e2b1e7e832680ccb436519
|
|
| MD5 |
4df3e1a84982a07df26c05f68edb9a6d
|
|
| BLAKE2b-256 |
0890c26146a0009c1bdb318d9251ef3a34560b14879f9f6e7aafa6ef34c02976
|