[#wallet-MakeBerkeleyRODatabase] = xref:wallet.adoc[wallet]::MakeBerkeleyRODatabase :relfileprefix: ../ :mrdocs: Return object giving access to Berkeley Read Only database at specified path. == Synopsis Declared in `<wallet/migrate.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::unique_ptr<BerkeleyRODatabase> MakeBerkeleyRODatabase( xref:fs/path.adoc[fs::path] const& path, xref:wallet/DatabaseOptions.adoc[DatabaseOptions] const& options, xref:wallet/DatabaseStatus.adoc[DatabaseStatus]& status, xref:bilingual_str.adoc[bilingual_str]& error); ---- == Return Value The opened read‐only database, or nullptr on failure. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#