-
Notifications
You must be signed in to change notification settings - Fork 124
Closed
Description
I need to open an environment and discover all of the databases. From what I understand, the database names are stored in the default, nameless db. But what encoding? Creating a db ends in a native method stub passing a String... UTF-8?
Txn<ByteBuffer> txn = env.txn(null);
env.openDbi(null).iterate(txn).forEachRemaining(kv -> {
ByteBuffer keybytes = kv.key();
String key = ???
});It would probably be useful to add both the ability to retrieve all dbi names to Env, as well as the ability to return all Dbis in an Env as a Map<String, Dbi>. The LMDB docs suggest that it is good practice to retrieve and re-use these anyway.
So I suppose this is mostly a question, but also a minor feature request.
jbarotin
Metadata
Metadata
Assignees
Labels
No labels