Skip to content
RAGRAF

ragraf_write_check

Edition: community Capability: schema Operation page: write_check

What it does

Checking the write plan against the schema BEFORE execution (U1)

What problem it solves

Catches a missing column before a write runs, not after it fails.

How to call it

ragraf_write_check(table=…)
ragraf -p config/ragraf.yaml query write_check <table>

The ellipsis stands for a value the agent supplies; optional parameters can be omitted.

Parameters

Name Type Default
tablestrrequired
columnslist[str] | NoneNone
operationstr'insert'
valuesint | NoneNone

What it returns

all_required_columns, checked_columns, column_count, columns_marks, default_expression_columns, generated_columns, generated_from_live, generated_from_migrations, generated_kinds, generated_requested, insert_required, keys_live, live_only_columns, note, operation, primary_key, source, table, table_found, unknown_columns, values_count, values_mismatch