dm_rm_fk {dm} | R Documentation |
Remove foreign keys
Description
dm_rm_fk()
can remove either one reference between two tables, or multiple references at once (with a message).
An error is thrown if no matching foreign key is found.
Usage
dm_rm_fk(
dm,
table = NULL,
columns = NULL,
ref_table = NULL,
ref_columns = NULL,
...
)
Arguments
dm |
A |
table |
A table in the |
columns |
Table columns, unquoted.
To refer to a compound key, use |
ref_table |
The table referenced by the |
ref_columns |
The columns of |
... |
These dots are for future extensions and must be empty. |
Value
An updated dm
without the matching foreign key relation(s).
See Also
Other foreign key functions:
dm_add_fk()
,
dm_enum_fk_candidates()
,
dm_get_all_fks()
Examples
dm_nycflights13(cycle = TRUE) %>%
dm_rm_fk(flights, dest, airports) %>%
dm_draw()