
Check referential integrity (child FK -> parent PK)
Source:R/validation.R
check_referential_integrity.RdCheck referential integrity (child FK -> parent PK)
Examples
child <- data.frame(fk = c(1, 2, 3))
parent <- data.frame(pk = c(1, 2, 3, 4))
res <- check_referential_integrity(child, parent, "fk", "pk")
res$passed
#> [1] TRUE