diff options
| author | Glenn Smith <glenn@vector35.com> | 2022-04-13 22:40:28 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2022-04-13 22:40:28 -0400 |
| commit | 43730ec61dc280d0915a9db0fdbd38bb1cdc8f9a (patch) | |
| tree | 0a7f4cf3296407743949f18b6a6491403de38280 /database.cpp | |
| parent | 91eb7be1f537b15795559ffc62c1ee6ecdcdf412 (diff) | |
Add Database::TrimSnapshot api
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)) |
