Test connection to database

db.exists(params, write = TRUE, table = NA)

Arguments

params

database connection information

write

logical: test whether we have write access?

table

name of database table to check

Value

TRUE if database connection works; else FALSE

Details

Useful to only run tests that depend on database when a connection exists