Usage
open_db(path = getwd(), db_name = "sense.db")See also
close_db() for closing a database; copy_db() for copying (part of) a database;
index_db() for indexing a database; get_data() for extracting data from a database.
Examples
# First create a database in a temporary directory
db <- create_db(tempdir(), "mydb.db")
close_db(db)
DBI::dbIsValid(db) # db is closed
#> [1] FALSE
# Then re-open it
db2 <- open_db(tempdir(), "mydb.db")
DBI::dbIsValid(db2) # db is opened
#> [1] TRUE
# Cleanup
close_db(db2)
file.remove(file.path(tempdir(), "mydb.db"))
#> [1] TRUE
