Crate ctb_storage

Crate ctb_storage 

Source
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