Learn R Programming

TSdbi (version 2017.4-1)

TSfinddb: Find a Time Series Database Connection

Description

Find a connection to a specified time series database.

Usage

TSfinddb(dbname=NULL, driverOrder=c("MySQL", "SQLite", "PostgreSQL"))

Arguments

dbname
Character string indicating the name of a database.
driverOrder
A vector of character string indicating TSdbi drivers in the order they should be tried.

Value

A connection

Details

TSfinddb tries to establish a connection to the indicated database using the drivers in the order specified. This attempt also requires the corresponding TSdbi driver package (e.g., "TSMySQL", "TSSQLite", or "TSPostgreSQL"). If the package cannot be loaded then the driver is skipped. The first valid connection is returned. If no valid connection is found then NULL is returned.

See Also

TSdbi-package, dbConnect, TSput, TSget, TSdates