Skip to main content

Module database

Module database 

Source
Expand description

Exposes the database runtime module.

§Examples

ⓘ
use pharos_native::runtime::database;

Modules§

operations
Native runtime entry point for the shared configured adapter registry.

Structs§

LogicalAppStore
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.