Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asyncpg support #190

Open
ArunJRK opened this issue Jan 30, 2025 · 3 comments
Open

asyncpg support #190

ArunJRK opened this issue Jan 30, 2025 · 3 comments

Comments

@ArunJRK
Copy link

ArunJRK commented Jan 30, 2025

Does dbos support asyncpg driver with sqlalchemy?

@kraftp
Copy link
Member

kraftp commented Jan 30, 2025

Currently, DBOS uses the psycopg3 sync driver (postgresql+psycopg) internally. However, you can create your own SQLAlchemy engine and use it to perform database operations in DBOS steps (as both workflows and steps can be async def).

Would love to learn more about what you're building--what do you use that driver for?

@ArunJRK
Copy link
Author

ArunJRK commented Jan 31, 2025

I like the idea of using a database as a source of truth for events and processing when things are lightweight. That's why DBOS is interesting.

I am currently building an app with long-running transactions and potential parallel requests and so, looking for a nonblocking way of transacting.

@kraftp
Copy link
Member

kraftp commented Jan 31, 2025

Got it! Yeah, DBOS fully supports async steps and workflows, so you can access the database using an async driver from within a step (instead of using a DBOS-provided connection).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants