Remove database schema relations not linked to the given relations
Source:R/reduce.r
reduce.database_schema.Rd
Filters a database schema's relations, keeping only the given relations, and those considered ancestors via foreign key references. Foreign key references involving removed relations are also removed.
Usage
# S3 method for class 'database_schema'
reduce(x, main, ...)
Details
This method takes a given set of main relations, rather than inferring them.
Using rejoin
on the database resulting from decomposing a data
frame with the reduced schema is likely to fail or return incomplete results.