| dbReconnect {Rdbi} | R Documentation |
dbReconnect a generic function that, when called with a valid
connection object, reopens the connection to the database backend.
dbReconnect(conn)
conn |
A database connection object. |
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.
A database connection object.
Timothy H. Keitt
dbConnect, dbDisconnect,
methods, class