On 6/19/17 10:31 AM, Muhammed Muneer wrote:
Sorry for the late reply, I was on vacation.
"I am still unsure what you are trying to achieve. If you are in a read
transaction and discover that your database does not exist, what can you do
anyway? You cannot create the database at this point, since it is a write
When I discover a dbi does not exist in a read transaction, I can assume it to
be the same as a dbi which is empty and create it when and only when there is a
write-request into that dbi later.
To my understanding, the API does not prevent you from doing so. As long as you
do not specify the MDB_CREATE flag, you can call mdb_dbi_open and will get
informed whether the database exists or not (MDB_NOTFOUND).