Learn R Programming

dm (version 0.0.6)

dm_get_all_pks: Get all primary keys of a dm object

Description

dm_get_all_pks() checks the dm object for set primary keys and returns the tables, the respective primary key columns and their classes.

Usage

dm_get_all_pks(dm)

Arguments

dm

A dm object.

Value

A tibble with columns:

  • "table": table name,

  • "pk_col": column name(s) of primary key.

See Also

Other primary key functions: dm_add_pk(), dm_get_pk(), dm_has_pk(), dm_rm_pk(), enum_pk_candidates()