Jaymon / prom

A PostgreSQL or SQLite orm for Python
MIT License
22 stars 4 forks source link

Asyncio interfaces #138

Closed Jaymon closed 7 months ago

Jaymon commented 2 years ago

See this endpoints issue for how I want to approach the implementation

For Postgres, I could use asyncpg or aiopg (psycopg). I haven't looked into SQLite yet.

Jaymon commented 2 years ago

These were the PostgreSQL libraries I looked at:

I chose Psycopg since the newest version now has asyncio it's the library prom already uses. These were some of the implementation links I had open

Jaymon commented 2 years ago

General Asyncio stuff:

search:

Jaymon commented 2 years ago

This is the SQLite library I decided to go with:

It was the only one I looked at that had been updated in the last year.

other links I had open:

search:

Jaymon commented 1 year ago

So here is the blueprint for conversion:

This should handle the entire conversion over to async and allow prom to work transparently in both synchronous and asynchronous environments.