Minimal interface for the query metadata needed by processQueryTemplate. Both QueryInfo (saved queries) and plain objects (transient specs) satisfy this shape. This decouples template processing from requiring a full database-backed QueryInfo.
QueryInfo
Parameter definitions for validation and type conversion
The SQL query text (used as fallback if no sqlOverride is provided)
Whether this query uses Nunjucks template syntax
Minimal interface for the query metadata needed by processQueryTemplate. Both
QueryInfo(saved queries) and plain objects (transient specs) satisfy this shape. This decouples template processing from requiring a full database-backed QueryInfo.