OptionalContextUser context for permission checks on referenced queries
OptionalDependenciesInline dependency specs for transient query testing
OptionalDialectThe key of the dialect the template's SQL filters and boolean values render for. Defaults to Platform. Every render names its dialect, so two providers on different platforms in one process each render with their own filters.
OptionalMaxMaxRows safety limit. Mutually exclusive with Paging.
OptionalNowThe clock the template's Context reads. Defaults to now.
OptionalOriginalOriginal (pre-composition) SQL — used for template input metadata
OptionalPagingPaging parameters (omit to skip paging). Mutually exclusive with MaxRows.
OptionalParameterFormal parameter definitions (for validation). Null = skip validation.
OptionalParametersParameter values from the caller
Target database platform
OptionalQueryID of the saved query being rendered, so a composition that leads back to it is refused as a cycle.
OptionalQueryFull query metadata object (saved query path). When provided, passed directly to processQueryTemplate for parameter validation. When omitted, a synthetic QueryTemplateInput is built from OriginalSQL + ParameterDefinitions.
OptionalQueryThe saved query's name, for refusals written for its owners.
OptionalRequireEvery rendered statement is held to the read-only check (one statement that starts with
SELECT or WITH, reads in every CTE, does not SELECT … INTO a table, and calls no
forbidden function), saved queries included. Set this where the caller, not a saved query,
supplies the SQL (ad-hoc SQL, transient test queries): SQL with no statement at all is then
refused too.
OptionalServerValues only server code sets (RunQueryParams.ServerParameters). A caller value for a
server-set parameter, here or in a composed query, is refused.
OptionalTimeIANA time zone the template's Context dates are worked out in. UTC when unset.
OptionalUsesWhether the outer query is a template. A template passes the MJ Query interpreter gate
(QueryTemplate.Validate, Refresh mode, refused on errors) before Nunjucks evaluates it.
Context passed to RenderPipeline.Run controlling each pipeline stage.