dm_has_fk()
checks if a foreign key reference exists between two tables in a dm
.
dm_has_fk(dm, table, ref_table)
dm | A |
---|---|
table | A table in the |
ref_table | The table to be checked if it is referred to. |
A boolean value: TRUE
if a reference from table
to ref_table
exists, FALSE
otherwise.
Other foreign key functions:
dm_add_fk()
,
dm_enum_fk_candidates()
,
dm_get_all_fks()
,
dm_get_fk()
#> [1] TRUE#> [1] FALSE