Skip to contents

Delete a specific table from database

Usage

cas_reset_db(
  table,
  db_connection = NULL,
  disconnect_db = FALSE,
  db_folder = NULL,
  ask = TRUE,
  ...
)

Arguments

table

Name of the table. Yuu can use DBI::dbListTables(cas_connect_to_db()) to see currently available tables. See vignette("castarter-database") for more information about the contents and structure of each table.

db_connection

Defaults to NULL. If NULL, uses local SQLite database. If given, must be a connection object or a list with relevant connection settings (see example).

disconnect_db

Defaults to TRUE. If FALSE, leaves the connection to database open.

ask

Logical, defaults to TRUE. If set to FALSE, the relevant table will be deleted without asking for confirmation from the user.

...

Passed to cas_get_db_file().