connect_to_db: Connect to an SQLite database

View source: R/connect_to_db.R

connect_to_dbR 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

# When connecting to a specific file, like the downloaded ACDC-Database
# just use the path to the database
# If the specified database file does not exist, an error will be thrown.
# Consider downloading the database using `download_acdc()` or `download_ted()`.
## Not run: conn <- connect_to_db("path/to/database.db")


acdcquery documentation built on Feb. 19, 2026, 5:07 p.m.