connectDB {editbl}R Documentation

Connect to a database.

Description

Connect to a database.

Usage

connectDB(
  dbname = system.file("extdata", "chinook.sqlite", package = utils::packageName()),
  drv = RSQLite::SQLite(),
  ...
)

Arguments

dbname

character(0)

drv

database driver

...

arguments passed to DBI::dbConnect

Details

Connects by default to a test SQLite database originally obtained here: chinook_git

Value

database connection

Examples


conn <- connectDB()
DBI::dbDisconnect(conn)


[Package editbl version 1.0.5 Index]