pyrevs.utils.dbutils

A set of utility functions for database operations.

Functions

prepare_database_path(→ None)

Archive a database if it already exists.

Module Contents

prepare_database_path(path: pathlib.Path, restart: bool) None[source]

Archive a database if it already exists.

Parameters:
  • path – the path to the database

  • restart – the database access mode