connect_to_db: Connect to the database

View source: R/utils.R

connect_to_dbR Documentation

Connect to the database

Description

A wrapper around dbConnect for Sqlite. Create an object of class SQLiteConnection to a sqlite database stored in db_file. Prints the output from src_dbi and returns the connection object.

Usage

connect_to_db(db_file)

Arguments

db_file

full name (including path) of the file.

Value

An object of class SQLiteConnection to a sqlite database.

Examples

conn <- connect_to_db(db_example("AcademicGraph.sqlite"))

f-hafner/magutils documentation built on Sept. 20, 2023, 5:05 a.m.