Module budget
Expand description
Shared limits for one public statement holding a write connection.
Both layers are required: an out-of-band watchdog calls sqlite3_interrupt, while SQLite’s
progress callback enforces a VM-instruction ceiling and the same wall-clock deadline in-band.
Every hook is stood down before return so an interrupt cannot bleed into the next statement on
a pinned connection.
Constants§
- WRITE_
DDL_ TIME_ BUDGET - DDL’s longer wall-clock fence while every other writer is quiesced.
- WRITE_
STATEMENT_ TIME_ BUDGET - Default public writer-statement wall-clock fence.
Functions§
- with_
writer_ statement_ budget - Run one public writer statement under the standard DML or DDL limits.
- with_
writer_ statement_ limits - Run one public writer statement under caller-supplied limits. Exposed for deterministic
boundary tests; production hosts normally use
with_writer_statement_budget.