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.
Value
The DBI::DBIConnection
object for 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.
Examples
if (FALSE) { # dm:::dm_has_financial()
dm_financial() %>%
dm_get_con()
}