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

Can I use dbhub.io with SQLAlchemy? #372

Open
swckd opened this issue May 12, 2024 · 3 comments
Open

Can I use dbhub.io with SQLAlchemy? #372

swckd opened this issue May 12, 2024 · 3 comments

Comments

@swckd
Copy link

swckd commented May 12, 2024

Can I connect my SQLAlchemy to dbhub.io?
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///kanban.db'

@chrisjlocke
Copy link
Member

Don't think it would work directly .. dbhub.io works via API, not a direct 'storage'. But you could download the file locally and do what you needed, then upload again?
There are live databases on dbhub.io, but again, they work on an API, not a direct storage.

@swckd
Copy link
Author

swckd commented May 12, 2024

It makes sense! Thanks!

@justinclift
Copy link
Member

justinclift commented May 12, 2024

dbhub.io works via API

That's correct. The DBHub.io service doesn't have a Python driver written for SQLAlchemy, so SQLAlchemy doesn't know how to communicate with it directly.

Maybe some day... 😄

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

3 participants