bmatsuo / lmdb-go

Bindings for the LMDB C library
BSD 3-Clause "New" or "Revised" License
158 stars 59 forks source link

Allow empty database name in OpenDBI method #136

Open jtaczanowski opened 3 years ago

jtaczanowski commented 3 years ago

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."

hirokiht commented 3 years ago

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.