@eagleoutice/flowr - v2.10.1
    Preparing search index...

    Interface SupportedQuery<QueryType>

    interface SupportedQuery<
        QueryType extends BaseQueryFormat["type"] = BaseQueryFormat["type"],
    > {
        asciiSummarizer: (
            formatter: OutputFormatter,
            analyzer: ReadonlyFlowrAnalysisProvider,
            queryResults: BaseQueryResult,
            resultStrings: string[],
            query: readonly Query[],
        ) => AsyncOrSync<boolean>;
        completer?: (
            splitLine: readonly string[],
            startingNewArg: boolean,
            config: FlowrConfig,
        ) => CommandCompletions;
        executor: QueryExecutor<
            QueryArgumentsWithType<QueryType>,
            Promise<BaseQueryResult>,
        >;
        flattenInvolvedNodes: (
            queryResults: BaseQueryResult,
            query: readonly Query[],
        ) => NodeId[];
        fromLine?: (
            output: ReplOutput,
            splitLine: readonly string[],
            config: FlowrConfig,
        ) => ParsedQueryLine<QueryType>;
        jsonFormatter?: (queryResults: BaseQueryResult) => object;
        schema: ObjectSchema;
    }

    Type Parameters

    Index

    Properties

    asciiSummarizer: (
        formatter: OutputFormatter,
        analyzer: ReadonlyFlowrAnalysisProvider,
        queryResults: BaseQueryResult,
        resultStrings: string[],
        query: readonly Query[],
    ) => AsyncOrSync<boolean>

    Generates an ASCII summary of the query result to be printed in, e.g., the REPL.

    Type Declaration

    completer?: (
        splitLine: readonly string[],
        startingNewArg: boolean,
        config: FlowrConfig,
    ) => CommandCompletions

    optional completion in, e.g., the repl

    executor: QueryExecutor<
        QueryArgumentsWithType<QueryType>,
        Promise<BaseQueryResult>,
    >
    flattenInvolvedNodes: (
        queryResults: BaseQueryResult,
        query: readonly Query[],
    ) => NodeId[]

    Flattens the involved query nodes to be added to a flowR search when the fromQuery function is used based on the given result after this query is executed. If this query does not involve any nodes, an empty array can be returned.

    fromLine?: (
        output: ReplOutput,
        splitLine: readonly string[],
        config: FlowrConfig,
    ) => ParsedQueryLine<QueryType>

    optional query construction from an, e.g., repl line

    jsonFormatter?: (queryResults: BaseQueryResult) => object
    schema: ObjectSchema