Bitcoin Core 31.99.0
P2P Digital Currency
Public Attributes | List of all members
DBParams Struct Reference

Application-specific storage settings. More...

#include <dbwrapper.h>

Collaboration diagram for DBParams:
[legend]

Public Attributes

fs::path path
 Location in the filesystem where leveldb data will be stored. More...
 
size_t cache_bytes
 Configures various leveldb cache settings. More...
 
bool memory_only = false
 If true, use leveldb's memory environment. More...
 
bool wipe_data = false
 If true, remove all existing data. More...
 
bool obfuscate = false
 If true, store data obfuscated via simple XOR. More...
 
DBOptions options {}
 Passed-through options. More...
 
leveldb::Env * testing_env = nullptr
 If non-null, use this as the leveldb::Env instead of the default. More...
 
size_t max_file_size = DBWRAPPER_MAX_FILE_SIZE
 Maximum LevelDB SST file size. More...
 

Detailed Description

Application-specific storage settings.

Definition at line 38 of file dbwrapper.h.

Member Data Documentation

◆ cache_bytes

size_t DBParams::cache_bytes

Configures various leveldb cache settings.

Definition at line 42 of file dbwrapper.h.

◆ max_file_size

size_t DBParams::max_file_size = DBWRAPPER_MAX_FILE_SIZE

Maximum LevelDB SST file size.

Larger values reduce the frequency of compactions but increase their duration.

Definition at line 57 of file dbwrapper.h.

◆ memory_only

bool DBParams::memory_only = false

If true, use leveldb's memory environment.

Definition at line 44 of file dbwrapper.h.

◆ obfuscate

bool DBParams::obfuscate = false

If true, store data obfuscated via simple XOR.

If false, XOR with a zero'd byte array.

Definition at line 49 of file dbwrapper.h.

◆ options

DBOptions DBParams::options {}

Passed-through options.

Definition at line 51 of file dbwrapper.h.

◆ path

fs::path DBParams::path

Location in the filesystem where leveldb data will be stored.

Definition at line 40 of file dbwrapper.h.

◆ testing_env

leveldb::Env* DBParams::testing_env = nullptr

If non-null, use this as the leveldb::Env instead of the default.

Caller retains ownership.

Definition at line 54 of file dbwrapper.h.

◆ wipe_data

bool DBParams::wipe_data = false

If true, remove all existing data.

Definition at line 46 of file dbwrapper.h.


The documentation for this struct was generated from the following file: