Description Usage Arguments Examples
Create a database connection
1 2 3 4 5 6 7 |
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 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # 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.