Version: v0.1.0
A Python client library that provides a base repository for the PostgreSQL database.
Install the package using pip:
pip install git+https://${GITHUB_TOKEN}@<repository-url>.gitOr install from source:
git clone <repository-url>
cd postgresql-repository
pip install .- Python >= 3.7
- asyncpg==0.30.0
- environs==14.3.0
from postgresql_repository.base_postgresql_repository import BasePostgreSQLRepository
class LeadRepository(BasePostgreSQLRepository):
def __init__(self, db_connection: DatabaseConnection):
self._db_connection = db_connection
super().__init__(db_connection, "Lead", Lead)