dbxConnect | R Documentation |
Create a database connection
dbxConnect(
url = NULL,
adapter = NULL,
storage_tz = NULL,
variables = list(),
...
)
url |
A database URL |
adapter |
The database adapter to use |
storage_tz |
The time zone timestamps are stored in |
variables |
Session variables |
... |
Arguments to pass to dbConnect |
# SQLite
db <- dbxConnect(adapter="sqlite", dbname=":memory:")
## Not run:
# Postgres
db <- dbxConnect(adapter="postgres", dbname="mydb")
# MySQL
db <- dbxConnect(adapter="mysql", dbname="mydb")
# Others
db <- dbxConnect(adapter=odbc(), database="mydb")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.