Open or create a SQLite wallet database at the given path.

Synopsis

Declared in <wallet/sqlite.h>

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

Return Value

The opened database, or nullptr on failure.

Parameters

Name

Description

path

Path to the database file.

options

Options controlling how the database is opened.

status

Set to the status of the open attempt.

error

Set to a descriptive message if opening fails.

Created with MrDocs