dm_from_con | R Documentation |
dm_from_con()
creates a dm from some or all tables in a src
(a database or an environment) or which are accessible via a DBI-Connection.
For Postgres and SQL Server databases, primary and foreign keys
are imported from the database.
dm_from_con(
con = NULL,
table_names = NULL,
learn_keys = NULL,
.names = NULL,
...
)
con |
A |
table_names |
A character vector of the names of the tables to include. |
learn_keys |
Set to |
.names |
A glue specification that describes how to name the tables
within the output, currently only for MSSQL, Postgres and MySQL/MariaDB.
This can use |
... |
Additional parameters for the schema learning query.
|
A dm
object.
con <- dm_get_con(dm_financial())
# Avoid DBI::dbDisconnect() here, because we don't own the connection
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.