Open the index database at the given path.

Synopsis

Declared in <index/base.h>

DB(
    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

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.

Created with MrDocs