connect_database {rcprd} | R Documentation |
Open connection to SQLite database
Description
Open connection to SQLite database
Usage
connect_database(dbname)
Arguments
dbname |
Name of SQLite database on hard disk (including full file path relative to working directory) |
Value
No return value, called to open a database connection.
Examples
## Connect to a database
aurum_extract <- connect_database(file.path(tempdir(), "temp.sqlite"))
## Check connection is open
inherits(aurum_extract, "DBIConnection")
## clean up
RSQLite::dbDisconnect(aurum_extract)
unlink(file.path(tempdir(), "temp.sqlite"))
[Package rcprd version 0.0.1 Index]