test_dbi_driver: tests a given dbi impelementation

Description Usage Arguments Value Examples

View source: R/test_dbi_driver.R

Description

Given a handler to the database tests capabilities of the DBI driver.

Usage

1

Arguments

conn

connection to the database opend using DBI::dbConnect()

Value

list describing driver capabilities - see test_...() functions description

Examples

 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)

zozlak/useR2015 documentation built on May 5, 2019, 1:37 a.m.