Skip to content

Commit

Permalink
Connect: Fix SQLAlchemy connection strings
Browse files Browse the repository at this point in the history
With SQLAlchemy, using a database name as the URL path will trip on the
CrateDB dialect, because CrateDB does not understand the notion of a
database.

TypeError: __init__() got an unexpected keyword argument 'database'
  • Loading branch information
amotl committed Nov 15, 2024
1 parent a0846f3 commit d4b7fb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/connect/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ A native PostgreSQL connection string.
`postgresql://<username>@<clustername>.cratedb.net/crate`

A connection string for SQLAlchemy or Apache Flink.
`crate://<username>@<clustername>.cratedb.net/crate?ssl=true`
`crate://<username>@<clustername>.cratedb.net/?ssl=true`

An HTTP URL to visit Admin UI.
`https://<username>@<clustername>.cratedb.net:4200/`
Expand Down Expand Up @@ -104,7 +104,7 @@ A native PostgreSQL connection string.
`postgresql://crate@localhost:5432/crate`

A connection string for SQLAlchemy or Apache Flink.
`crate://crate@localhost/crate`
`crate://crate@localhost/`

An HTTP URL to visit Admin UI.
`http://crate@localhost:4200/`
Expand Down

0 comments on commit d4b7fb6

Please sign in to comment.