Skip to content

Commit

Permalink
Clear database storage (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhdirkse authored Jan 6, 2025
1 parent c6eed0d commit 8078ba0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ public void setValues(PreparedStatement ps) throws SQLException {

@Override
public void clear() throws StorageException {
throw new StorageException("Clear method is not implemented yet...");
String query = "delete from " + getTable();
log.debug("Delete all reports with query: " + query);
ladybugJdbcTemplate.update(query);
}

@Override
Expand Down

0 comments on commit 8078ba0

Please sign in to comment.