Member Junction
    Preparing search index...

    Fully describes a query for execution without requiring database persistence. Used as the common execution interface for both saved queries (via RunQuery) and transient test queries (via TestQuerySQL).

    This is the "lower layer" data structure in the two-layer execution architecture:

    • Upper layer (RunQuery): loads QueryInfo from DB, builds a spec, calls lower layer
    • Upper layer (TestQuerySQL): caller provides spec directly, calls lower layer
    • Lower layer: accepts this spec and runs composition → Nunjucks → execute
    Index

    Constructors

    Properties

    Dependencies?: QueryDependencySpec[]

    Inline dependency queries for composition resolution. Recursive — each dependency can itself declare further dependencies. When resolving {{query:"CategoryPath/QueryName"}}, the engine checks this map first, then falls back to Metadata.Provider.Queries.

    MaxRows?: number

    Max rows to return. Default: unlimited for saved queries, 100 for test queries.

    ParameterDefinitions?: QueryParameterInfo[]

    Parameter definitions for validation. For saved queries, populated from QueryInfo.Parameters. For transient queries, optional — if omitted, parameters are passed through without validation.

    Parameters?: Record<string, string>

    Parameter values for Nunjucks template substitution

    SQL: string

    The raw SQL — may contain {{query:"..."}} and {{ param }} tokens

    UsesTemplate?: boolean

    Whether this query uses Nunjucks template syntax

    Methods