@Override
    protected void extractMetadata(Connection connection, Metadata metadata) {
        //TODO -- figure out how to get the version of sqlite3 that last modified this file and
        // version-valid-for.
        // version-valid-for is at offset 92, last modified by app version isat offset 96 --
        // not clear how to get this info via sql
        //'file' extracts this info; we should to :\
        //See: https://www.sqlite.org/fileformat.html
        for (Map.Entry<Property, String> e : METADATA_KEYS.entrySet()) {
            try (Statement st = connection.createStatement()) {
                try (ResultSet rs = st.executeQuery(e.getValue())) {
                    if (rs.next()) {
                        int val = rs.getInt(1);
                        if (! rs.wasNull()) {
                            metadata.set(e.getKey(), Integer.toString(val, 16));
                        }
                    }
                }
            } catch (SQLException ex) {
                //swallow
            }
        }
    }
@param context context
@return null (always)
tika-parsers/tika-parsers-extended/tika-parser-sqlite3-module/src/main/java/org/apache/tika/parser/sqlite3/SQLite3DBParser.java