[#CDBWrapper-HasKeyStartingWith]
= xref:CDBWrapper.adoc[CDBWrapper]::HasKeyStartingWith
:relfileprefix: ../
:mrdocs:

Probe an unopened database for a key prefix&period; Return true if a database at path exists and contains at least 1 entry beginning with prefix&semi; missing or empty databases return false, and database errors throw dbwrapper&lowbar;error&period;

== Synopsis

Declared in `&lt;dbwrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
HasKeyStartingWith(
    xref:fs/path.adoc[fs::path] const& path,
    uint8&lowbar;t prefix);
----

== Return Value

True if an entry beginning with prefix exists, false otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *path*
| Filesystem path of the database to probe&period;
| *prefix*
| The single&hyphen;byte key prefix to search for&period;
|===


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