What problem does it solve?
This skill provides a structured framework for managing the complex lifecycle of database queries, ensuring consistent behavior for execution, cancellation, and result handling across different database engines.
Core Features & Use Cases
- Lifecycle Management: Standardizes how queries are started, polled, cancelled, and reaped to prevent memory leaks and stale data.
- Engine-Specific Handling: Provides clear rules for managing concurrency and server-side cancellation support across diverse engines like Postgres, SQLite, and DuckDB.
- Use Case: Use this skill when implementing a new database driver or modifying the query execution path to ensure that cancellation signals are correctly propagated and that result state is properly isolated between tabs.
Quick Start
Consult the query pipeline documentation to verify the statement state machine and engine-specific cancellation requirements before modifying the query execution logic.