#pragma once #include #include "database/graph_db.hpp" namespace durability { /** * Make snapshot and save it in snapshots folder. Returns true if successful. * @param db - database for which we are creating a snapshot * @param durability_dir - directory where durability data is stored. * @param snapshot_max_retained - maximum number of snapshots to retain. */ bool MakeSnapshot(database::GraphDb &db, const std::experimental::filesystem::path &durability_dir, int snapshot_max_retained); } // namespace durability