mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Call db.close() in ds.remove_database()
https://github.com/simonw/datasette/issues/2465#issuecomment-2640712713
This commit is contained in:
parent
f95ac19e71
commit
7f23411002
1 changed files with 1 additions and 0 deletions
|
|
@ -668,6 +668,7 @@ class Datasette:
|
|||
return self.add_database(Database(self, memory_name=memory_name))
|
||||
|
||||
def remove_database(self, name):
|
||||
self.get_database(name).close()
|
||||
new_databases = self.databases.copy()
|
||||
new_databases.pop(name)
|
||||
self.databases = new_databases
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue