Example #1
0
 @OnlyUsedByTests
 public long count() {
   try {
     return dataSource.queryForLong("select count(*) from snapshot");
   } catch (SQLException e) {
     logger.error(e.getMessage(), e);
     return 0;
   }
 }