powered by
Get a summary of all foreign key relations in a dm.
dm
dm_get_all_fks(dm, parent_table = NULL, ...)
A dm object.
One or more table names, as character vector, to return foreign key information for. The default NULL returns information for all tables.
NULL
These dots are for future extensions and must be empty.
A tibble with the following columns:
child_table
child table,
child_fk_cols
foreign key column(s) in child table as list of character vectors,
parent_table
parent table,
parent_key_cols
key column(s) in parent table as list of character vectors.
on_delete
behavior on deletion of rows in the parent table.
Other foreign key functions: dm_add_fk(), dm_enum_fk_candidates(), dm_rm_fk()
dm_add_fk()
dm_enum_fk_candidates()
dm_rm_fk()
# NOT RUN { dm_nycflights13() %>% dm_get_all_fks() # }
Run the code above in your browser using DataLab