public ResultBearing queryMetadata(MetaData.MetaDataResultSetProvider metadataFunction) {
        return new MetaData(this, metadataFunction);
    }
Access database metadata that returns a {@link java.sql.ResultSet}. All methods of {@link org.jdbi.v3.core.result.ResultBearing} can be used to format
and map the returned results.

<pre>
    List&lt;String&gt; catalogs = h.queryMetadata(DatabaseMetaData::getCatalogs)
                                     .mapTo(String.class)
                                     .list();
</pre>
<p>
returns the list of catalogs from the current database.

@param metadataFunction Maps the provided {@link java.sql.DatabaseMetaData} object onto a {@link java.sql.ResultSet} object.
@return The metadata builder.
core/src/main/java/org/jdbi/v3/core/Handle.java