chk_sqlite_conn
checks if a SQLite connection.
Usage
chk_sqlite_conn(x, connected = NA, x_name = NULL)
check_sqlite_connection(
x,
connected = NA,
x_name = substitute(x),
error = TRUE
)
Examples
conn <- rws_connect()
chk_sqlite_conn(conn)
rws_disconnect(conn)
try(chk_sqlite_conn(conn, connected = TRUE))
#> Error in eval(expr, envir) : `conn` must be connected.