Closed davidcurrie2001 closed 2 years ago
Created filterRDBESRawObject() function and tests. Now need to remove any orphan records that are created due to the filtering.
The function findAndKillOrphans() removes any orphan records. The function removeBrokenVesselLinks() removes any records not correctly linked to a row in the VD table.
removeBrokenSpeciesListLinks() function and tests added
Make function to filter rdbesRawObject by arbitrary fields. After filtering any orphan rows should also be removed e.g. if you remove some SA rows, then any child SA rows, FM rows, or BV rows connected to the removed rows should also be removed.