public Metadata setMetadata(String name, String value) {
      if (value != null) {
        LOGGER.debug("Set mbtiles metadata: {}={}", name,
          value.length() > 1_000 ?
            (value.substring(0, 1_000) + "... " + (value.length() - 1_000) + " more characters") :
            value);
        try (
          PreparedStatement statement = connection.prepareStatement(
            "INSERT INTO " + METADATA_TABLE + " (" + METADATA_COL_NAME + "," + METADATA_COL_VALUE + ") VALUES(?, ?);")
        ) {
          statement.setString(1, name);
          statement.setString(2, value);
          statement.execute();
        } catch (SQLException throwables) {
          LOGGER.error("Error setting metadata " + name + "=" + value, throwables);
        }
      }
      return this;
    }
Inserts a row into the metadata table that sets {@code name=value}.
planetiler-core/src/main/java/com/onthegomap/planetiler/mbtiles/Mbtiles.java