Skip to content

Commit

Permalink
feat(duckdb): allow to use named in-memory db (#9241)
Browse files Browse the repository at this point in the history
Allows to use a named in-memory database with the DuckDB backend.

* Resolves #9240
  • Loading branch information
JulienZolli authored May 23, 2024
1 parent 01383ec commit 67460aa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ibis/backends/duckdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,10 +454,8 @@ def do_connect(
<ibis.backends.duckdb.Backend object at ...>
"""
if (
not isinstance(database, Path)
and database != ":memory:"
and not database.startswith(("md:", "motherduck:"))
if not isinstance(database, Path) and not database.startswith(
("md:", "motherduck:", ":memory:")
):
database = Path(database).absolute()

Expand Down

0 comments on commit 67460aa

Please sign in to comment.