Skip to content

Allow empty database name in OpenDBI method#136

Open
jtaczanowski wants to merge 1 commit intobmatsuo:masterfrom
jtaczanowski:allow_opendbi_without_name
Open

Allow empty database name in OpenDBI method#136
jtaczanowski wants to merge 1 commit intobmatsuo:masterfrom
jtaczanowski:allow_opendbi_without_name

Conversation

@jtaczanowski
Copy link

@jtaczanowski jtaczanowski commented Jan 14, 2021

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
Copy link

hirokiht commented Apr 7, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants