sql_connect | R Documentation |
An function to help setup connections to SQL databases acting as a wrapper for the odbc and DBI packages. Used by other sql_* tools within epidm. This uses the credential manager within the system and assumes you are using a trusted connection.
sql_connect(server, database)
server |
a string containing the server connection;
note that servers may require the use of double backslash |
database |
a string containing the database name within the data store |
a SQL connection object
sql_clean sql_read sql_write
## Not run:
sql <- list(
dsn = list(ser = 'covid.ukhsa.gov.uk',
dbn = 'infections')
)
sgss_con = sql_connect(server = sql$dsn$ser, database = sql$dsn$dbn)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.