public static void logDatabaseContents(final LmdbEnv env,
                                           final Dbi<ByteBuffer> dbi,
                                           final Function<ByteBuffer, String> keyToStringFunc,
                                           final Function<ByteBuffer, String> valueToStringFunc,
                                           final Consumer<String> logEntryConsumer) {

        env.doWithReadTxn(txn ->
                logDatabaseContents(env, dbi, txn, keyToStringFunc, valueToStringFunc, logEntryConsumer));
    }
Dumps all entries in the database to a single logger entry with one line per database entry.
This could potentially return thousands of rows so is only intended for small scale use in
testing. Entries are returned in the order they are held in the DB, e.g. a-z (unless the DB
is configured with reverse keys). The keyToStringFunc and valueToStringFunc functions are
used to convert the keys/values into string form for output to the logger.
stroom-lmdb/src/main/java/stroom/lmdb/LmdbUtils.java