Skip to content

Commit

Permalink
fix(sqlite): handle slash memory
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Feb 2, 2024
1 parent dbf7b55 commit 6fd6a0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ibis/backends/sqlite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ def _from_url(self, url: str, **kwargs):
"""
url = urlparse(url)
database = url.path or ":memory:"
if database in ("/", "/:memory:"):
database = ":memory:"
return self.connect(database=database, **kwargs)

def raw_sql(self, query: str | sg.Expression, **kwargs: Any) -> Any:
Expand Down

0 comments on commit 6fd6a0d

Please sign in to comment.