dm_get_all_fks {dm} | R Documentation |
Get foreign key constraints
Description
Get a summary of all foreign key relations in a dm
.
Usage
dm_get_all_fks(dm, parent_table = NULL, ...)
Arguments
dm |
A |
parent_table |
One or more table names, unquoted,
to return foreign key information for.
If given, foreign keys are returned in that order.
The default |
... |
These dots are for future extensions and must be empty. |
Value
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.
See Also
Other foreign key functions:
dm_add_fk()
,
dm_enum_fk_candidates()
,
dm_rm_fk()
Examples
dm_nycflights13() %>%
dm_get_all_fks()
[Package dm version 1.0.10 Index]