H2Driver-methods {RH2} | R Documentation |
Methods for the class JDBCDriver in Package ‘RJDBC’
Description
Methods for the class ‘H2Driver’ in Package ‘H2’. In addition to methods
listed here there are methods inherited from JDBCDriver
.
dbConnect
creates a new H2 connection.
Methods
- dbConnect
signature(drv = "H2Driver", ...)
Examples
## Not run:
# in memory database
con <- dbConnect(H2(), "jdbc:h2:mem:")
dbDisconnect(con)
# external database
con <- dbConnect(H2(), "jdbc:h2:~/test")
dbDisconnect(con)
# same but run in MySQL compatibility mode
con <- dbConnect(H2(), "jdbc:h2:~/test;MODE=MYSQL")
## End(Not run)
[Package RH2 version 0.2.4 Index]