Learn R Programming

dm (version 0.2.8)

dm_ptype: Prototype for a dm object

Description

[Experimental]

The prototype contains all tables, all primary and foreign keys, but no data. All tables are truncated and converted to zero-row tibbles. Column names retain their type. This is useful for performing creation and population of a database in separate steps.

Usage

dm_ptype(dm)

Arguments

dm

A dm object.

Examples

Run this code
# NOT RUN {
dm_financial() %>%
  dm_ptype()

dm_financial() %>%
  dm_ptype() %>%
  dm_nrow()
# }

Run the code above in your browser using DataLab