Trait scrypto::prelude::ClientKeyValueStoreApi
source · pub trait ClientKeyValueStoreApi<E> {
// Required methods
fn key_value_store_new(
&mut self,
data_schema: KeyValueStoreDataSchema
) -> Result<NodeId, E>;
fn key_value_store_open_entry(
&mut self,
node_id: &NodeId,
key: &Vec<u8>,
flags: LockFlags
) -> Result<u32, E>;
fn key_value_store_remove_entry(
&mut self,
node_id: &NodeId,
key: &Vec<u8>
) -> Result<Vec<u8>, E>;
}
Required Methods§
sourcefn key_value_store_new(
&mut self,
data_schema: KeyValueStoreDataSchema
) -> Result<NodeId, E>
fn key_value_store_new( &mut self, data_schema: KeyValueStoreDataSchema ) -> Result<NodeId, E>
Creates a new key value store with a given schema
sourcefn key_value_store_open_entry(
&mut self,
node_id: &NodeId,
key: &Vec<u8>,
flags: LockFlags
) -> Result<u32, E>
fn key_value_store_open_entry( &mut self, node_id: &NodeId, key: &Vec<u8>, flags: LockFlags ) -> Result<u32, E>
Lock a key value store entry for reading/writing