sidnt / lmdz

0 stars 0 forks source link

lmdb database handle #50

Open sidnt opened 4 years ago

sidnt commented 4 years ago

The database handle will be private to the current transaction until the transaction is successfully committed.

After a successful commit the handle will reside in the shared environment, and may be used by other transactions.

If the transaction is aborted the handle will be closed automatically.

does ^ mean that if we abort a txn, we'll have to open the dbi-handles that were closed automatically?

test what happens when we use a crud operation anyway, using a dbi-handle whose associated database was closed by a transaction that aborted?

A database handle denotes the name and parameters of a database, independently of whether such a database exists. ref

Databases must always be opened with the same flags once created. ref