public Map<String, String> getAll() {
      TreeMap<String, String> result = new TreeMap<>();
      try (Statement statement = connection.createStatement()) {
        var resultSet = statement
          .executeQuery("SELECT " + METADATA_COL_NAME + ", " + METADATA_COL_VALUE + " FROM " + METADATA_TABLE);
        while (resultSet.next()) {
          result.put(
            resultSet.getString(METADATA_COL_NAME),
            resultSet.getString(METADATA_COL_VALUE)
          );
        }
      } catch (SQLException throwables) {
        LOGGER.warn("Error retrieving metadata: {}", throwables.toString());
        LOGGER.trace("Error retrieving metadata details: ", throwables);
      }
      return result;
    }
Returns all key-value pairs from the metadata table.
planetiler-core/src/main/java/com/onthegomap/planetiler/mbtiles/Mbtiles.java