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.

isIdCurrent(obj)

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

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

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

Arguments

dbObj, obj

A MysqlDriver, MysqlConnection, MysqlResult.

Value

a logical scalar.

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.

Examples

dbIsValid(MySQL())
#> [1] TRUE