Connect temporarily to a database.
Usage
db_temp_connect(db_path, code, drv = RSQLite::SQLite())
Examples
library(DBI)
db_temp_connect(tempfile(), DBI::dbWriteTable(con, "test_table", mtcars))
Connect temporarily to a database.
db_temp_connect(db_path, code, drv = RSQLite::SQLite())
library(DBI)
db_temp_connect(tempfile(), DBI::dbWriteTable(con, "test_table", mtcars))