wallet::MakeDatabase

Creates or opens a wallet database at the given path.

Synopsis

Declared in <wallet/db.h>

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

Return Value

The database handle, or nullptr on failure.

Parameters

NameDescription
pathThe wallet path.
optionsOptions controlling how the database is opened or created.
statusReceives the outcome of the operation.
errorReceives an error description on failure.