Description Usage Arguments Value Examples
Establishes a connection to the database
1 2 3 4 5 6 7 8 |
database |
target db |
host |
db host: typically "localhost" |
port |
db port number |
username |
db username |
password |
db password |
sqlite_file |
filename as character vector if using an sqlite db (in which case this is the only argument that needs to be supplied) |
a database object connection
1 2 3 4 | db_pth <- system.file("testdata/synthetic_db.sqlite3", package = "inspectEHR")
ctn <- connect(sqlite_file = db_pth)
class(ctn)
DBI::dbDisconnect(ctn)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.