Skip to content

feat(example-doc-vault): implement dual-backend routing with automatic ObjectUri deduction聽#38

Description

@crapougnax

Part of parent story #36.

馃幆 Goal

Configure a dual-database architecture demonstrating seamless multi-backend query resolution via ObjectUri.

馃搵 Specification

  1. Register primary backend:
    • Backend.addBackend(postgresAdapter, 'postgres', true) (for active operational documents).
  2. Register secondary archive backend:
    • Backend.addBackend(sqliteAdapter, 'archive', false) (for immutable audit logs and compliance records).
  3. Demonstrate automatic ObjectUri routing without manual repository wiring:
    • Document.repository().read('doc-101') routes to postgres.
    • AuditLog.repository().read('archive:audit_logs/log-505') automatically routes to archive (SQLite).
  4. Demonstrate cross-backend Active Record lifecycle (auditLog.save() writing automatically to archive).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions