lmdb-go icon indicating copy to clipboard operation
lmdb-go copied to clipboard

Allow empty database name in OpenDBI method

Open jtaczanowski opened this issue 4 years ago • 1 comments

Allow to the name value OpenDBI method as an empty string. From lmdb documentation doc name can be empty "If only a single database is needed in the environment, this value may be NULL."

jtaczanowski avatar Jan 14 '21 00:01 jtaczanowski

The author provides opening the unnamed db as txn.OpenRoot function, but I agree the naming is not quite intuitive while we are reading the official LMDB documentation as main reference.

hirokiht avatar Apr 07 '21 02:04 hirokiht