Skip to contents

Creates a lightweight operative object for specialized data validation intelligence gathering. Operatives are streamlined versions of pointblank agents designed for efficient failure detection without the overhead of full reporting capabilities.

Usage

create_operative(tbl, tbl_name = NULL, label = NULL)

Arguments

tbl

A data.frame, tibble, or database table (tbl_sql) to validate

tbl_name

Optional name for the table (if not provided, inferred from object)

label

Optional label for the operative

Value

A pointblank agent object configured as an operative with class ptblank_operative

Examples

if (FALSE) { # \dontrun{
# Create operative from data frame
data <- data.frame(id = 1:5, value = c(1, 2, NA, 4, 5))
operative <- create_operative(data) |>
  col_vals_not_null(columns = vars(value))

# Create operative from database table
con <- DBI::dbConnect(duckdb::duckdb(), ":memory:")
operative <- create_operative(tbl(con, "my_table")) |>
  col_vals_between(columns = vars(amount), left = 0, right = 1000)
} # }