Connect to an existing ODM2 sqlite database

connect_sqlite(filename = "odm2.sqlite", dir = ".")

Arguments

filename

Filename for sqlite database file. Defaults to "odm2"

dir

Name of existing directory where database file is stored. Defaults to current working directory

Value

A database connection object

Details

This function returns a database connection object to be used in subsequent inserts and queries.

Examples

create_sqlite(dir = tempdir()) db <- connect_sqlite(filename = "odm2.sqlite")