Description Usage Arguments Value Examples
View source: R/test_dbi_driver.R
Given a handler to the database tests capabilities of the DBI driver.
1 | test_dbi_driver(conn)
|
conn |
connection to the database opend using DBI::dbConnect() |
list describing driver capabilities - see test_...() functions description
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
system('monetdbd start monetdb')
handlers = list(
SQLite = dbConnect(RSQLite::SQLite(), ":memory:"),
MySQL = dbConnect(RMySQL::MySQL(), dbname = 'myDb'),
PostgreSQL = dbConnect(RPostgreSQL::PostgreSQL(), dbname = 'myDb'),
MonetDB = dbConnect(MonetDB.R::MonetDB.R(), 'pathToMyMonetDb')
)
sapply(handlers, test_dbi_driver)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.