connect_to_db {acdcquery} | R Documentation |
Connect to an SQLite database
Description
This function establishes a connection to an SQLite database file located at the specified path using the DBI and RSQLite packages.
Usage
connect_to_db(path_to_db)
Arguments
path_to_db |
The path to the SQLite database file. |
Value
A database connection object.
Examples
# Connect to a SQLite database file in memory
conn <- connect_to_db(":memory:")
# When connecting to a specific file, like the downloaded ACDC-Database
# just use the path to the database
## Not run: conn <- connect_to_db("path/to/database.db")
# Want the most recent version of the database?
# Download it at https://github.com/jstbcs/acdc-database/blob/main/acdc.db
[Package acdcquery version 1.0.1 Index]