Flush metadata buffer when exiting gracefully
This commit is contained in:
parent
2251664dbd
commit
fd654f25b8
@ -131,4 +131,6 @@ class Database:
|
|||||||
cur.close()
|
cur.close()
|
||||||
|
|
||||||
def close(self) -> None:
|
def close(self) -> None:
|
||||||
|
if self.__pending_metadata:
|
||||||
|
self.__commit_metadata()
|
||||||
self.__db_conn.close()
|
self.__db_conn.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user