AshArcadic. Replicant. Verifiers. ValidateSingleDbTenancy
(AshArcadic v0.2.0)
Copy Markdown
View Source
Compile-verifier for a replicant CDC mirror target's multitenancy strategy
(build-blocking under --warnings-as-errors).
A replicant enforces effect-once: an upstream Postgres transaction's writes
mirror into the graph exactly once, in the same logical transaction. That holds
only when every tenant a single Postgres transaction can touch lives in ONE
ArcadeDB database. :context multitenancy maps tenants to DIFFERENT ArcadeDB
databases, so a tenant-blind Postgres transaction's cross-tenant writes would
span databases and fail :cross_database_transaction, shattering effect-once.
Only :attribute (single physical database, tenant is a plaintext discriminator)
or absent tenancy is permitted on a replicant resource; :context is rejected.