Skip to content

Commit

Permalink
tweaked comments #196
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Joshi authored and zanieb committed Jul 26, 2023
1 parent feaf71f commit 995a3f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions databases/backends/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def connect(self) -> None:
# )

async def disconnect(self) -> None:
# remove reference to cached database connection on disconnect
# if it extsis, remove reference to connection to cached in-memory database on disconnect
if self._pool._memref:
self._pool._memref = None
# assert self._pool is not None, "DatabaseBackend is not running"
Expand All @@ -69,7 +69,7 @@ def __init__(self, url: DatabaseURL, **options: typing.Any) -> None:
self._options = options

if url.options and "cache" in url.options:
# reference to cached memory database must be held to keep it from being deleted
# reference to a connection to the cached in-memory database must be held to keep it from being deleted
self._memref = sqlite3.connect(self._database, **self._options)

async def acquire(self) -> aiosqlite.Connection:
Expand Down

0 comments on commit 995a3f4

Please sign in to comment.