TSconnect {TSdbi}R Documentation

Connect to a Time Series Database

Description

Return a connection to a time series database

Usage

    TSconnect(drv, dbname, ...)
    ## S4 method for signature 'character, character':
    TSconnect(drv, dbname, ...)
    ## S4 method for signature 'logicalId':
    show(object)
    ## S4 method for signature 'TSdb':
    show(object)
    ## S4 method for signature 'TSdb':
    print(x, ...)

Arguments

drv A database connection driver or character string.
dbname The name of the database to which the connection should be established
x A database connection as returned by TSconnect.
object an object to display.
... Additional arguments passed to other print methods.

Details

This function establishes a connection using a driver from one of the driver packages (e.g. TSMySQL or TSSQLite). If drv is a character string (e.g. "MySQL") then the method attempts to get a driver using the character string.

"TSconnect" uses dbConnect but checks the database has expected tables and also establishes information about additional features that may be available (vintiges and/or panels).

Options can be set to simplify access to a commonly used database (see TSput).

Value

A database connection.

See Also

TSdbi-package, dbConnect, TSget, TSput, TSdates


[Package TSdbi version 2009.1-1 Index]