dbConnect,DatabaseConnectorDriver-method | R Documentation |
Connect to a database. This function is synonymous with the connect()
function. except
a dummy driver needs to be specified
## S4 method for signature 'DatabaseConnectorDriver'
dbConnect(drv, ...)
drv |
The result of the |
... |
Other parameters. These are the same as expected by the |
Returns a DatabaseConnectorConnection object that can be used with most of the other functions in this package.
## Not run:
conn <- dbConnect(DatabaseConnectorDriver(),
dbms = "postgresql",
server = "localhost/ohdsi",
user = "joe",
password = "secret"
)
querySql(conn, "SELECT * FROM cdm_synpuf.person;")
dbDisconnect(conn)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.