wallet::SQLiteBatch::WriteKey

Write a value under a key.

Synopsis

Declared in <wallet/sqlite.h>

virtual
bool
WriteKey(
    DataStream&& key,
    DataStream&& value,
    bool overwrite = true) override;

Return Value

True if the write succeeded, false otherwise.

Parameters

NameDescription
keyThe key to write.
valueThe value to store.
overwriteWhether to overwrite an existing value for the key.