diff options
Diffstat (limited to 'database.cpp')
| -rw-r--r-- | database.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/database.cpp b/database.cpp index 0a846f09..326b57f2 100644 --- a/database.cpp +++ b/database.cpp @@ -403,6 +403,15 @@ int64_t Database::WriteSnapshotData(std::vector<int64_t> parents, Ref<BinaryView } +void Database::TrimSnapshot(int64_t id) +{ + if (!BNTrimDatabaseSnapshot(m_object, id)) + { + throw DatabaseException("BNTrimDatabaseSnapshot"); + } +} + + void Database::RemoveSnapshot(int64_t id) { if (!BNRemoveDatabaseSnapshot(m_object, id)) |
