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

SQLAlchemy: Improve error message when using database path parameter #81

Open
amotl opened this issue Dec 4, 2023 · 0 comments
Open

Comments

@amotl
Copy link
Member

amotl commented Dec 4, 2023

Problem

When approaching the CrateDB SQLAlchemy dialect with an erroneous connection string including the database path parameter, like crate://localhost/dbname, it fails using this exception message:

(crate.client.exceptions.ProgrammingError) Connection.__init__() got an unexpected keyword argument 'database'

The error message may be improved, specifically because this works well with other databases. However, it can't work with CrateDB, because it does not understand the concept of "databases" at all, but uses "schemas" instead.

References

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

1 participant