Module kv

Source
Expand description

Interact with the key_value module

Your process must have the Capability to message and receive messages from kv:distro:sys to use this module.

Structs§

Kv
Kv helper struct for a db. Opening or creating a kv will give you a Result<Kv>. You can call it’s impl functions to interact with it.
KvCapabilityParams
The JSON parameters contained in all capabilities issued by kv:distro:sys.
KvRequest
Actions are sent to a specific key value database. db is the name, package_id is the PackageId that created the database. Capabilities are checked: you can access another process’s database if it has given you the read and/or write capability to do so.

Enums§

KvAction
IPC Action format representing operations that can be performed on the key-value runtime module. These actions are included in a KvRequest sent to the kv:distro:sys runtime module.
KvCapabilityKind
KvError
KvResponse

Functions§

open
Opens or creates a kv db.
open_raw
Helper function to open a raw bytes key-value store
remove_db
Removes and deletes a kv db.