[#wallet-BerkeleyROCursor-2constructor]
= xref:wallet.adoc[wallet]::xref:wallet/BerkeleyROCursor.adoc[BerkeleyROCursor]::BerkeleyROCursor
:relfileprefix: ../../
:mrdocs:

Construct a cursor over a database, optionally limited to keys with a given prefix&period;

== Synopsis

Declared in `&lt;wallet&sol;migrate&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
BerkeleyROCursor(
    xref:wallet/BerkeleyRODatabase.adoc[BerkeleyRODatabase] const& database,
    std::span&lt;std::byte const&gt; prefix = &lcub;&rcub;);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *database*
| The database to iterate over&period;
| *prefix*
| Only iterate over records whose key starts with this prefix&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
