From 6fd6a0d7cc030537f7aa327e964d22e95f9a6e06 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Fri, 2 Feb 2024 06:15:10 -0500 Subject: [PATCH] fix(sqlite): handle slash memory --- ibis/backends/sqlite/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ibis/backends/sqlite/__init__.py b/ibis/backends/sqlite/__init__.py index 0cfe66d71d415..33ca1e897b934 100644 --- a/ibis/backends/sqlite/__init__.py +++ b/ibis/backends/sqlite/__init__.py @@ -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: