Skip to content

Commit 49957eb

Browse files
committed
Fix check for in-memory db
1 parent a460794 commit 49957eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tiled/server/connection_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async def __aexit__(self, *excinfo):
5555

5656

5757
def open_database_connection_pool(database_settings: DatabaseSettings) -> AsyncEngine:
58-
if make_url(database_settings.uri).database == ":memory:":
58+
if make_url(database_settings.uri).database == ":memory:" or database_settings.uri == "sqlite://":
5959
# For SQLite databases that exist only in process memory,
6060
# pooling is not applicable. Just return an engine and don't cache it.
6161
engine = create_async_engine(

0 commit comments

Comments
 (0)