Module sqlite

Source
Expand description

Interact with the sqlite module

Your process must have the [Capability] to message and receive messages from sqlite:distro:sys` to use this module.

Structs§

Sqlite
Sqlite helper struct for a db. Opening or creating a db will give you a Result<Sqlite>. You can call it’s impl functions to interact with it.
SqliteCapabilityParams
The JSON parameters contained in all capabilities issued by sqlite:distro:sys.
SqliteRequest
Actions are sent to a specific SQLite 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§

SqlValue
Used in blobs to represent array row values in SQLite.
SqliteAction
IPC Action format representing operations that can be performed on the SQLite runtime module. These actions are included in a SqliteRequest sent to the sqlite:distro:sys runtime module.
SqliteCapabilityKind
SqliteError
SqliteResponse

Functions§

open
Open or create sqlite database.
remove_db
Remove and delete sqlite database.