reckonsys / pgorm

A n00by PostgreSQL ORM in pure python 3.7+ which probably abuses asyncio, dataclasses & type hints
MIT License
26 stars 4 forks source link

Transactions & Connection Pooling #2

Open rs-ds opened 5 years ago

rs-ds commented 5 years ago

We have to leverage, asyncpg's transaction & connection pooling

rmad17 commented 5 years ago

From an architecture perspective I like how SQLAlchemy is designed. We probably do not need so much complexity as is present in SQLAlchemy however we can take some idea from how they implement it here. One thing I especially like in SQLAlchemy from Django is how you can easily create connections manually/dynamically without forcing to be written to settings.