Skip to contents

Checks the size, table names, and validity of a DBI connection object for the PTAXSIM database. Throws an error if the size or table names are not as expected.

Usage

check_db_conn(conn)

Arguments

conn

A valid DBI connection object pointing to a local PTAXSIM SQLite database file.

Value

Returns TRUE if all requirements are met, otherwise returns an error.

See also

Other check: check_db_sync()

Examples

if (FALSE) { # \dontrun{
ptaxsim_db_conn <- DBI::dbConnect(RSQLite::SQLite(), "./ptaxsim.db")
check_db_conn(ptaxsim_db_conn)
} # }