Learn R Programming

dm (version 0.2.8)

dm_get_referencing_tables: Get the names of referencing tables

Description

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

Usage

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

Run this code
# NOT RUN {
dm_nycflights13() %>%
  dm_get_referencing_tables(airports)
dm_nycflights13() %>%
  dm_get_referencing_tables(flights)
# }

Run the code above in your browser using DataLab