Expand description
Exposes the database runtime module.
§Examples
ⓘ
use pharos_native::runtime::database;§Related
crate::runtimefor sibling modules in the same crate.
Modules§
- operations
- Native runtime entry point for the shared configured adapter registry.
Structs§
- Logical
AppStore - One request-scoped handle to an app’s configured logical database.
Functions§
- app_
local_ database_ artifact_ path - Returns an app’s external file only when its configured adapter owns a local artifact. Remote databases and file-backed apps do not claim an unused inherited database path.
- app_
operations_ store - Opens the same manifest-selected logical store used by declared features.
- checked_
backend_ config - Resolves configuration without confusing invalid settings with absent records.
- dynamic_
migration_ drift_ report - Performs dynamic migration drift report.
- dynamic_
relational_ actor_ manages_ business - Executes configured authority admission while retaining storage failures.
- dynamic_
relational_ actor_ owns_ appointment - Checks appointment ownership in the configured primary backend. Executes configured authority admission while retaining storage failures.
- dynamic_
relational_ actor_ tenant_ roles - Executes configured authority admission while retaining storage failures.
- dynamic_
relational_ admit_ rate_ limited_ request - Admits one request through the configured relational rate-limit backend when available.
- dynamic_
relational_ append_ rate_ limit_ event - Appends one rate-limit audit event through the configured relational backend.
- dynamic_
relational_ authenticate_ user - Checks stored credentials without treating failed storage as an invalid password.
- dynamic_
relational_ backend - Performs dynamic relational backend.
- dynamic_
relational_ issue_ session - Persists a browser session through the selected adapter and retains storage errors.
- dynamic_
relational_ managed_ businesses - Loads a bounded management list and preserves configuration or storage failures.
- dynamic_
relational_ runtime_ audit_ count - Performs dynamic relational runtime audit count.
- dynamic_
relational_ runtime_ export_ json - Performs dynamic relational runtime export JSON.
- dynamic_
relational_ runtime_ import_ state - Performs dynamic relational runtime import state.
- dynamic_
relational_ update_ user_ password - Updates an account credential through the configured database adapter.
- dynamic_
runtime_ migrations_ verified - Verifies logical migration checksums for operator diagnostics. The ordinary runtime summary uses the cheaper readiness check above.
- dynamic_
runtime_ prepare - Applies one manifest-selected logical contract through the configured adapter.
- dynamic_
runtime_ ready - Requires the declared logical schema on the configured adapter before readiness.
- load_
cli_ backend_ config - Loads cli backend config.
- logical_
app_ store - Resolves the selected app contract and backend once for a logical operation.
- logical_
app_ 🔒store_ at - Opens one logical store with separate configuration and compiled-contract roots.
- logical_
store_ 🔒for_ schema - Resolves one configured adapter for a schema already validated through the JSON loader.
- manifest_
database_ 🔒app_ id - Applies one manifest-selected logical contract through the configured adapter.
- relational_
runtime_ 🔒authority_ enabled - Treats a declared database contract as durable authority, even if its file is missing or invalid. Contract validation must fail closed rather than silently switching the app to a stale JSON state file.
- runtime_
database_ ready - Checks a loaded app’s compiled schema without parsing or compiling source YAML on requests.
- runtime_
logical_ app_ store - Reads runtime schema from the compiled artifact while resolving configuration from source.
- selected_
logical_ contract - Loads the declared logical database contract; unsupported documents fail closed.
- source_
app_ operations_ store - Compiles only the selected source contract before opening an explicit operator store.
- source_
selected_ logical_ contract - Materializes manifest-selected source through the compiler, then uses the JSON-only loader. Database operators need a validated contract artifact, not unrelated UI build inputs.