pm_dm_add_keys is a helper function that takes a dm object with tables from the pmird database, adds the primary and foreign keys, and checks whether these are valid, using dm_examine_constraints.

pm_dm_add_keys(x, dm_pmird, progress = NA)

Arguments

x

A dm object with tables from pmird database.

dm_pmird

A dm object representing the pmird database.

progress

A logical value. See dm_examine_constraints.

Value

x with added primary and foreign keys.