Own the process: install the instrumented cache as FIRST caller, then set up the
data provider for the configured backend (SQL Server by default, PostgreSQL when
DB_PLATFORM=postgresql) and resolve the context user. Idempotent within a process.
THROWS if the cache is already initialized by a different component (see assertOwnsProcess).
The instrumented-cache-first ordering is identical on both backends — the cache
singleton is platform-agnostic. Only the provider setup differs, behind db.Platform.
Own the process: install the instrumented cache as FIRST caller, then set up the data provider for the configured backend (SQL Server by default, PostgreSQL when DB_PLATFORM=postgresql) and resolve the context user. Idempotent within a process. THROWS if the cache is already initialized by a different component (see assertOwnsProcess).
The instrumented-cache-first ordering is identical on both backends — the cache singleton is platform-agnostic. Only the provider setup differs, behind db.Platform.