RH2 (version 0.2.4)

H2Driver-methods: 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.

Arguments

Methods

dbConnect

signature(drv = "H2Driver", ...)

Examples

Run this code
# 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")
# }

Run the code above in your browser using DataLab