ODBC: Generate an object of ODBCDriver class

Description Usage Examples

View source: R/ODBCDriver.R

Description

This driver is for implementing the R database (DBI) API. This class should always be initialized with the ODBC() function. ODBC driver does nothing for ODBC connection. It just exists for S4 class compatibility with DBI package.

Usage

1
ODBC()

Examples

1
2
3
4
5
6
7
8
## Not run: 
driver <- RODBCDBI::ODBC()
# Connect to a ODBC data source
con <- dbConnect(driver, dsn="test")
# Always cleanup by disconnecting the database
#' dbDisconnect(con)

## End(Not run)

RODBCDBI documentation built on May 2, 2019, 5:56 a.m.