Learn R Programming

dm (version 0.0.5.9000)

cdm_has_fk: Does there exist a reference from one table of a dm to another?

Description

Does there exist a reference from one table of a dm to another?

Usage

cdm_has_fk(dm, table, ref_table)

Arguments

dm

A dm object.

table

A table in the dm.

ref_table

The table that table is potentially referencing.

Value

A boolean value: TRUE if a reference from table to ref_table exists, FALSE otherwise.

See Also

Other foreign key functions: cdm_add_fk(), cdm_enum_fk_candidates(), cdm_get_all_fks(), cdm_get_fk(), cdm_rm_fk()