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.

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"))
#> The database connection is: 
#> src:  sqlite 3.38.5 [/tmp/RtmptPxKJr/temp_libpath72cc939d74f39/magutils/extdata/AcademicGraph.sqlite]
#> tbls: AuthorAffiliation, FieldsOfStudy, FirstNamesGender, author_coauthor,
#>   author_output, current_links, current_links_advisors, pq_advisors,
#>   pq_authors, pq_fields_mag, pq_unis