3 ms·
a quick request (and something similar was discussed here - https://news.ycombinator.com/item?id=11626454 https://news.ycombinator.com/item?id=11626454) could
by sandGorgon 11y ago
a quick request (and something similar was discussed here - https://news.ycombinator.com/item?id=11626454 https://news.ycombinator.com/item?id=11626454)
could you add a representative example to show how we can use your framework with Postgres ? For example, psycopg vs psycopg2 vs psycogreen vs psycopg2-cffi vs aiopg ... I dont even know which one will work properly using your framework and how (and maintain async characteristics).
- Leynos 11y ago(Comment from a bystander). You probably want aiopg in order to maintain the async characteristics and use the "friendly" asyncio syntax. There is also peewee-async (http://peewee-async.readthedocs.io/en/latest/ http://peewee-async.readthedocs.io/en/latest/) if you want an ORM using asyncio. (I've been meaning to try this myself, but haven't had an opportunity).
- sandGorgon 11y agoabsolutely.. i am concerned about frameworks not fundamentally thinking about DB. With async, there is that additional problem of "this does not work in async mode". So I would hope the developers include database hookup as part of their unit test suite.