Expand description
Storage subsystem managing database access, tenancy, and data persistence.
Re-exports§
pub use models::graph;pub use models::node;pub use models::sync;pub use models::user;pub use models::graph::get_global_graph;
Modules§
- cli
- CLI execution helpers for storage operations.
- db
- Database connection pooling, SQL execution, and schema migrations runner.
- global_
graph_ layout - Structure of identifier allocations within the global graph database.
- migrations
- Database migration registry and version tracking for relational schemas.
- models
- Models can be called by other crates, not just storage crate. They abstract away the process of querying the database. The actual query building all happens in the storage singleton service. The storage service holds any active session tokens to access the tenant databases. So, keeping the SQL isolated within the storage service prevents a different compromised process (for instance a runtime process) running arbitrary queries or accessing users’ data other than its own.
- packaged_
node - Packaged node archive serialization, bundle export, and import tools.
Functions§
- append_
file - create_
store - find_
assets - Find assets in the runtime resource bundle.
- get
- get_
asset - get_
asset_ utf8 - get_
help_ for_ tty - get_
help_ html - get_
help_ troff - guarantee_
dir - init_
ipc_ context - Initialize the runtime service’s IPC context.
- ipc
- overwrite_
file - put
- put_
file - register_
views - validate_
resource_ bundle