dbConnect-JDBCDriver-method: Connect to a database

Description Usage Arguments See Also Examples

Description

Connect to a database using a JDBC URL.

Usage

1
2
3
## S4 method for signature 'JDBCDriver'
dbConnect(drv, url, user = "", password = "",
  sql_dialect = dialect_for_url(url), ...)

Arguments

drv

An object of class JDBCDriver

url

the URL of the form jdbc:subprotocol:subname

user

the user to log in

password

the user's password

sql_dialect

an sql_dialect

...

additional connection arguments

See Also

Other connection functions: JDBCDriver-class, dbConnect,JDBCConnection-method, dbDisconnect,JDBCConnection-method

Examples

1
2
3
4
## Not run: 
con <- dbConnect(dbj::driver(), 'jdbc:h2:mem:', 'sa', 'sa')

## End(Not run)

hoesler/dbj documentation built on May 17, 2019, 4:36 p.m.