darkfi_sdk::wasm::db

Function db_set

Source
pub fn db_set(
    db_handle: DbHandle,
    key: &[u8],
    value: &[u8],
) -> GenericResult<()>
Expand description

Only update() can call this. Set a value within the transaction.

db_set(tx_handle, key, value);