H2Driver-methods | R Documentation |
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.
signature(drv = "H2Driver", ...)
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.