Skip to content

Commit

Permalink
DBConnection.DeleteVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
roysc committed Aug 13, 2021
1 parent 3e9e56d commit 3d9dc49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ type DBConnection interface {
// Returns an error if any open DBWriter transactions exist.
SaveVersion(uint64) error

// Deletes a saved version. Returns ErrVersionDoesNotExist for invalid versions.
DeleteVersion(uint64) error

// Close closes the database connection.
Close() error
}
Expand Down

0 comments on commit 3d9dc49

Please sign in to comment.