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