Rindle docs and package mapSkip to main content

Module budget

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.