Expand description
Organization index router.
Routes org-scoped storage operations to the configured backend (SQLite or PostgreSQL).
Provides a unified interface for org memory storage regardless of underlying backend.
§Example
ⓘ
use subcog::config::OrgBackendConfig;
use subcog::storage::index::OrgIndexRouter;
let config = OrgBackendConfig::SqliteShared {
path: PathBuf::from("/shared/org/index.db"),
};
let router = OrgIndexRouter::new(config)?;
let backend = router.backend();Structs§
- OrgIndex
Router - Routes org-scoped storage to the configured backend.
- OrgIndex
Status - Status information about the org index.
Enums§
- OrgBackend
Type - Backend type for status reporting.
Functions§
- sanitize_
connection_ 🔒url - Sanitizes a PostgreSQL connection URL for logging/display.