dm_get_referencing_tables {dm}R Documentation

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


dm_nycflights13() %>%
  dm_get_referencing_tables(airports)
dm_nycflights13() %>%
  dm_get_referencing_tables(flights)


[Package dm version 0.2.8 Index]