getEunomiaConnectionDetails: Get Eunomia Connection Details

Description Usage Arguments Value Examples

View source: R/Connection.R

Description

Creates a copy of the Eunomia database, and provides details for connecting to that copy.

Usage

1
getEunomiaConnectionDetails(databaseFile = tempfile(fileext = ".sqlite"))

Arguments

databaseFile

The path where the database file will be copied to. By default, the database will be copied to a temporary folder, and will be deleted at the end of the R session.

Value

A ConnectionDetails object, to be used with the DatabaseConnector package.

Examples

1
2
3
4
connectionDetails <- getEunomiaConnectionDetails()
connection <- connect(connectionDetails)
querySql(connection, "SELECT COUNT(*) FROM person;")
disconnect(connection)

Eunomia documentation built on Nov. 8, 2020, 4:39 p.m.