[#wallet-BerkeleyROBatch-GetNewPrefixCursor]
= xref:wallet.adoc[wallet]::xref:wallet/BerkeleyROBatch.adoc[BerkeleyROBatch]::GetNewPrefixCursor
:relfileprefix: ../../
:mrdocs:

Get a cursor iterating over records whose key starts with a prefix&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
std::unique&lowbar;ptr&lt;DatabaseCursor&gt;
GetNewPrefixCursor(std::span&lt;std::byte const&gt; prefix) override;
----

== Return Value

A new cursor over the matching records&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *prefix*
| The key prefix to filter records by&period;
|===


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