[#CDBWrapper-HasKeyStartingWith] = xref:CDBWrapper.adoc[CDBWrapper]::HasKeyStartingWith :relfileprefix: ../ :mrdocs: Probe an unopened database for a key prefix. Return true if a database at path exists and contains at least 1 entry beginning with prefix; missing or empty databases return false, and database errors throw dbwrapper_error. == Synopsis Declared in `<dbwrapper.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool HasKeyStartingWith( xref:fs/path.adoc[fs::path] const& path, uint8_t prefix); ---- == Return Value True if an entry beginning with prefix exists, false otherwise. == Parameters [cols="1,4"] |=== | Name| Description | *path* | Filesystem path of the database to probe. | *prefix* | The single‐byte key prefix to search for. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#