Mountain/IPC/WindServiceHandlers/Storage.rs
1
2//! # Persistent Storage handlers
3//!
4//! Wind invokes these via the WindServiceHandlers dispatcher; each
5//! delegates to `Environment::Require<dyn StorageProvider>`. Two
6//! scopes: workspace (`false`) for `StorageGet`/`StorageSet`,
7//! global (`true`) for the rest - VS Code's storage service
8//! distinguishes the two; we follow.
9//!
10//! Layout (one export per file, file name = identity):
11//! - `StorageGet::StorageGet` - single key read (workspace).
12//! - `StorageSet::StorageSet` - single key write (workspace).
13//! - `StorageDelete::StorageDelete` - single key delete (global).
14//! - `StorageKeys::StorageKeys` - list every key (global).
15//! - `StorageGetItems::StorageGetItems` - bulk read as `[key,value]` tuples;
16//! called by VS Code's `NativeWorkbenchStorageService` at boot.
17//! - `StorageUpdateItems::StorageUpdateItems` - bulk insert + delete; matches
18//! `IndexedDBStorageDatabase`'s wire shape.
19
20pub mod StorageDelete;
21
22pub mod StorageGet;
23
24pub mod StorageGetItems;
25
26pub mod StorageKeys;
27
28pub mod StorageSet;
29
30pub mod StorageUpdateItems;