dm_get_con: Get connection

View source: R/dm_get_con.R

dm_get_conR Documentation

Get connection

Description

dm_get_con() returns the DBI connection for a dm object. This works only if the tables are stored on a database, otherwise an error is thrown.

Usage

dm_get_con(dm)

Arguments

dm

A dm object.

Details

All lazy tables in a dm object must be stored on the same database server and accessed through the same connection, because a large part of the package's functionality relies on efficient joins.

Value

The DBI::DBIConnection object for a dm object.

Examples


dm_financial() %>%
  dm_get_con()


dm documentation built on Nov. 2, 2023, 6:07 p.m.