wallet::MakeBerkeleyRODatabase

Return object giving access to Berkeley Read Only database at specified path.

Synopsis

Declared in <wallet/migrate.h>

std::unique_ptr<BerkeleyRODatabase>
MakeBerkeleyRODatabase(
    fs::path const& path,
    DatabaseOptions const& options,
    DatabaseStatus& status,
    bilingual_str& error);

Return Value

The opened read-only database, or nullptr on failure.

Parameters

NameDescription
pathPath to the BerkeleyDB file to open.
optionsOptions controlling how the database is opened.
statusSet to the status of the open attempt.
errorSet to a descriptive message if opening fails.