write_query
Run one SQL INSERT, UPDATE, upsert, REPLACE, or CREATE statement on SQLite and return the affected row count; oversized UPDATEs are rolled back to prevent accidental full-table rewrites.
Instructions
Run one data or additive-schema statement and return the affected row count. Refuses DELETE, DROP, ALTER and triggers: those need destructive_query. An UPDATE that touches more rows than the configured cap is rolled back, so a forgotten WHERE clause cannot rewrite a whole table by accident. RETURNING clauses come back as CSV.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | One INSERT, UPDATE, upsert, REPLACE, CREATE TABLE, CREATE INDEX or CREATE VIRTUAL TABLE (fts5, rtree) statement. |