crate / sqlalchemy-cratedb

SQLAlchemy dialect for CrateDB.
https://cratedb.com/docs/sqlalchemy-cratedb/
Apache License 2.0
3 stars 2 forks source link

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

Open amotl opened 11 months ago

amotl commented 11 months ago

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