Learn R Programming

dm (version 0.0.6.9000)

dm_get_all_fks: Retrieve all foreign key constraints in a dm

Description

Get a summary of all foreign key relations in a dm

Usage

dm_get_all_fks(dm)

Arguments

dm

A dm object.

Value

A tibble with the following columns:

child_table

child table,

child_fk_cols

foreign key column in child table,

parent_table

parent table.

Compound keys

Currently, keys consisting of more than one column are not supported. This feature is planned for dm 0.2.0. Therefore the child_fk_cols column may contain vectors of length greater than one.

See Also

Other foreign key functions: dm_add_fk(), dm_enum_fk_candidates(), dm_get_fk(), dm_has_fk()

Examples

Run this code
# NOT RUN {
dm_get_all_fks(dm_nycflights13())
# }

Run the code above in your browser using DataLab