[#BaseIndex-DB-2constructor] = xref:BaseIndex.adoc[BaseIndex]::xref:BaseIndex/DB.adoc[DB]::DB :relfileprefix: ../../ :mrdocs: Open the index database at the given path. == Synopsis Declared in `<index/base.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- DB( xref:fs/path.adoc[fs::path] const& path, size_t n_cache_size, bool f_memory = false, bool f_wipe = false, bool f_obfuscate = false, bool f_bloom = true); ---- == Parameters [cols="1,4"] |=== | Name| Description | *path* | Directory where the database is stored. | *n_cache_size* | Size of the LevelDB in‐memory cache, in bytes. | *f_memory* | Keep the database in memory instead of on disk. | *f_wipe* | Erase any existing database before opening. | *f_obfuscate* | Obfuscate the on‐disk data with a random key. | *f_bloom* | Enable the LevelDB bloom filter. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#