Skip to content

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

Open

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions