Class: Exwiw::ReverseScope
- Inherits:
-
Object
- Object
- Exwiw::ReverseScope
- Includes:
- Serdes
- Defined in:
- lib/exwiw/reverse_scope.rb
Overview
Opt-in configuration for multi-referencer reverse scoping (see QueryAstBuilder#build_referenced_by_clause).
A global-identity table such as users carries no scope/tenant column and
has no belongs_to path of its own to the dump target; many tenant-owned
tables instead point at it. The automatic single-referencer reverse
extraction only narrows a table referenced by exactly one constrained child
— with two or more referencers it falls back to a full dump. reverse_scope
lets the schema author enumerate the referencers whose own (already-scoped)
extraction queries should be UNION'd into the id set this table is
constrained to: