orator
orator copied to clipboard
asyncio support
Hi!
Thanks for your work guys, ORM looks very nice to me (good replacement for SQLAlchemy to my mind).
But my question about asyncio support (or your plans to support if any), I found nothing in docs, but maybe I wrong. It would be great to have possibility to write code like this (https://github.com/aio-libs/aiopg#example-of-sqlalchemy-optional-integration) using orator.
Thanks for your interest in Orator!
Orator does not currently support asyncio but that's definitely something I want to do.
I don't know just yet if it will be directly integrated in the library or available as a separate package.
Nice to hear this!
I know this is weird question, but maybe you have any estimates (like half year, year...)?
I see that aiopg mentioned, but there is better option asyncpg
@Gr1N No, I don't have any estimates yet.
Nice to hear this. I think separate package would be better, like https://github.com/challengepost/activeasync
Great idea wondering if there's been any recent developments/thoughts on this, definitely interested in hearing/joining/starting the discussion
Same here, just trying out the library coming from a Peewee background and wondering if there are any plans to make Orator asynchronous
@mitchfriedman @JosXa Out of curiosity and as someone not familiar with exactly what parts would be asyncio, what are you thinking to make asynchronous? Is it just saving models asynchronously?
I'm not sure exactly what is needed to be changed to make this compatible with asyncio, but yeah, all IO operations (in this case, not just saving, but all calls to the DB - connection creation/resume/termination, all queries, etc) need to yield execution to the event loop.