clear_wal.py 212 B

123456789101112
  1. import model
  2. from game import DB_NAME
  3. def run():
  4. model.connect(DB_NAME)
  5. model.execute('PRAGMA main.val_checkpoint(TRUNCATE)')
  6. model.current_connection.commit()
  7. if __name__ == '__main__':
  8. run()