Add support for deleting keys associated with an account.

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2020-09-25 11:39:17 -04:00
1 parent 86fae58c96
commit 789af0f8a6
2 files changed
+52

No files matched your search

@@ -106,6 +106,16 @@ public class Keys {
}));
}
public void delete(final String number) {
database.use(jdbi -> jdbi.useHandle(handle -> {
try (Timer.Context ignored = getCountTimer.time()) {
handle.createUpdate("DELETE FROM keys WHERE number = :number")
.bind("number", number)
.execute();
}
}));
}
public void vacuum() {
database.use(jdbi -> jdbi.useHandle(handle -> {
try (Timer.Context ignored = vacuumTimer.time()) {