initDb: Iinitialize SQL Database

View source: R/compound_db.R

initDbR Documentation

Iinitialize SQL Database

Description

This will ensure that the database connection given is ready for use. If it does not find the tables it needs, it will try to create them.

Usage

initDb(handle)

Arguments

handle

This can be either a filename, in which case we assume it is the name of an SQLite database and use RSQLite to connect to it, or else any DBI Connection.

Value

Returns a connection object that can be used with other database oriented functions.

Author(s)

Kevin Horan

See Also

RSQLite

Examples

   #create and initialize a new SQLite database
   conn = initDb("test.db")

girke-lab/ChemmineR documentation built on July 28, 2023, 10:36 a.m.