Learn R Programming

dm (version 0.0.5.9000)

cdm_learn_from_db: Learn a dm object from a database (DB)

Description

If there are any permament tables on a DB, a new dm object can be created that contains those tables, along with their primary and foreign key constraints.

Currently this only works with MSSQL and Postgres databases.

The default database schema will be used; it is currently not possible to parametrize the funcion with a specific database schema.

Usage

cdm_learn_from_db(dest)

Arguments

dest

A src-object on a DB or a connection to a DB.

Value

A dm object with the tables from the DB and the respective key relations.

See Also

Other DB interaction functions: cdm_copy_to()