powered by
dm
Retrieve the name of the column marked as a foreign key, pointing from one table of a dm to another table.
dm_get_fk(dm, table, ref_table)
A dm object.
A table in the dm.
The table that is referenced from table.
table
A character vector with the column name(s) of table, pointing to the primary key of ref_table.
ref_table
Other foreign key functions: dm_add_fk(), dm_enum_fk_candidates(), dm_get_all_fks(), dm_has_fk(), dm_rm_fk()
dm_add_fk()
dm_enum_fk_candidates()
dm_get_all_fks()
dm_has_fk()
dm_rm_fk()
# NOT RUN { dm_get_fk(dm_nycflights13(), flights, airports) # }
Run the code above in your browser using DataLab