Return object giving access to Berkeley Read Only database at specified path.
Declared in <wallet/migrate.h>
std::unique_ptr<BerkeleyRODatabase>
MakeBerkeleyRODatabase(
fs::path const& path,
DatabaseOptions const& options,
DatabaseStatus& status,
bilingual_str& error);
The opened read-only database, or nullptr on failure.
| Name | Description |
|---|---|
| path | Path to the BerkeleyDB file to open. |
| 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. |