This function returns the names of all tables that point to the primary key of a table.

dm_get_referencing_tables(dm, table)

Arguments

dm

A dm object.

table

A table in the dm.

Value

A character vector of the names of the tables that point to the primary key of table.

See also

Other functions utilizing foreign key relations: dm_is_referenced()

Examples

dm_nycflights13() %>% dm_get_referencing_tables(airports)
#> [1] "flights"
dm_nycflights13() %>% dm_get_referencing_tables(flights)
#> character(0)