isIdCurrent: Check if a database object is valid.

Description Usage Arguments Details Value Examples

View source: R/is-valid.R

Description

Support function that verifies that an object holding a reference to a foreign object is still valid for communicating with the RDBMS. isIdCurrent will be deprecated in the near future; please use the dbIsValid() generic instead.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
isIdCurrent(obj)

## S4 method for signature 'MySQLDriver'
dbIsValid(dbObj)

## S4 method for signature 'MySQLConnection'
dbIsValid(dbObj)

## S4 method for signature 'MySQLResult'
dbIsValid(dbObj)

Arguments

dbObj,obj

A MysqlDriver, MysqlConnection, MysqlResult.

Details

dbObjects are R/S-Plus remote references to foreign objects. This introduces differences to the object's semantics such as persistence (e.g., connections may be closed unexpectedly), thus this function provides a minimal verification to ensure that the foreign object being referenced can be contacted.

Value

a logical scalar.

Examples

1
dbIsValid(MySQL())

rstats-db/rmysql documentation built on May 19, 2018, 10:21 p.m.