import.py: Add VACUUM command
This commit is contained in:
@ -128,6 +128,7 @@ def main() -> None:
|
|||||||
if not check_foreign_keys(cnx.cursor()):
|
if not check_foreign_keys(cnx.cursor()):
|
||||||
raise RuntimeError('foreign key constraint failed')
|
raise RuntimeError('foreign key constraint failed')
|
||||||
cnx.execute("COMMIT")
|
cnx.execute("COMMIT")
|
||||||
|
cnx.execute("VACUUM")
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
cnx.execute("ROLLBACK")
|
cnx.execute("ROLLBACK")
|
||||||
raise err
|
raise err
|
||||||
|
Reference in New Issue
Block a user