dbReconnect {Rdbi}R Documentation

Reopens a connection to a database

Description

dbReconnect a generic function that, when called with a valid connection object, reopens the connection to the database backend.

Usage

dbReconnect(conn)

Arguments

conn A database connection object.

Details

A database connection object contains the necessary information to re-establish a connection. Thus, a database connection object can be saved across R sessions and reconnected later. If I can convince the R developers to add a generic function that is always called when objects are restored, then it will be possible to have connections persist across R sessions.

Note that packages that implement the Rdbi interface do not need to provide a dbReconnect function as long as the connection object returned by dbConnect inherits from "Rdbi.conn" and has attributes described in the documentation for dbConnect. dbReconnect.Rdbi.conn can reconnect the object. If dbReconnect.Rdbi.conn is not general enough, the package can provide its own method.

Value

A database connection object.

Author(s)

Timothy H. Keitt

References

http://rdbi.sourceforge.net/

See Also

dbConnect, dbDisconnect, methods, class


[Package Rdbi version 1.0.4 Index]