Learn R Programming

datamodelr (version 0.2.1.9001)

dm_create_references: Create reference info

Description

Creates references (foreign keys) based on reference table names in column info table.

Usage

dm_create_references(col_table)

Arguments

col_table

A data frame with table columns

Details

The function is used when creating data model object. col_table must have at least table, column and ref elements. When referencing to tables with compound primary keys additional ref_col with primary key columns must be provided.