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>
static
bool
HasKeyStartingWith(
fs::path const& path,
uint8_t prefix);
Return Value
True if an entry beginning with prefix exists, false otherwise.
Parameters
Name |
Description |
path |
Filesystem path of the database to probe. |
prefix |
The single‐byte key prefix to search for. |
Created with MrDocs