Is a table of a dm
referenced by another table?
dm_is_referenced(dm, table)
dm | A |
---|---|
table | A table in the |
TRUE
if at least one foreign key exists that points to the primary
key of the table
argument, FALSE
otherwise.
Other functions utilizing foreign key relations:
dm_get_referencing_tables()
#> [1] TRUE#> [1] FALSE