Learn R Programming

taskqueue (version 0.2.0)

db_clean: Clean All Tables and Definitions from Database

Description

Removes all taskqueue-related tables, types, and data from the PostgreSQL database. This is a destructive operation that cannot be undone.

Usage

db_clean()

Arguments

Value

Invisibly returns NULL. Called for side effects (dropping database objects).

Details

This function drops:

  • All project task tables

  • The project_resource table

  • The project table

  • The resource table

  • All custom types (e.g., task_status)

Warning: This permanently deletes all projects, tasks, and configurations. Use with extreme caution, typically only for testing or complete resets.

After cleaning, you must call db_init to recreate the schema before using taskqueue again.

See Also

db_init

Examples

Run this code
if (FALSE) {
# Not run:
# Clean entire database (destructive!)
db_clean()

# Reinitialize after cleaning
db_init()
}

Run the code above in your browser using DataLab