Module org_router

Module org_router 

Source
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§

OrgIndexRouter
Routes org-scoped storage to the configured backend.
OrgIndexStatus
Status information about the org index.

Enums§

OrgBackendType
Backend type for status reporting.

Functions§

sanitize_connection_url 🔒
Sanitizes a PostgreSQL connection URL for logging/display.