This function is a wrapper around the DBI::dbConnect function and presumes you have appropriate config and environment variables set up.
1 | connect_to_database(db_name, ...)
|
db_name |
The name of the database connection (must match config.yml) |
... |
Other arguments passed to dbConnect (such as 'DB') |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.