connect_database {rcprd} | R Documentation |
Open connection to SQLite database
connect_database(dbname)
dbname |
Name of SQLite database on hard disk (including full file path relative to working directory) |
No return value, called to open a database connection.
## 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"))