kriszyp / lmdb-js

Simple, efficient, ultra-fast, scalable data store wrapper for LMDB
Other
505 stars 41 forks source link

Vague documentation db.openDB(database: string|{name:string,...}) #217

Open anywhichway opened 1 year ago

anywhichway commented 1 year ago

When an object is passed to openDB as options, do the options default to the values of the root database? Or, must they be re-specified?

For example, if useVersions is set for the root, will child databases also useVersions?

kriszyp commented 1 year ago

The only options that are inherited are compression and encoding. It is a good suggestion to make sure this is documented.