Member Junction
    Preparing search index...

    Interface StrictValidationResult

    What the strict parser found in a fragment or statement.

    interface StrictValidationResult {
        ColumnReferences: string[] | null;
        ContainsNestedWrite: boolean;
        HasWriteStatement: boolean;
        IsSingleTypedStatement: boolean;
        IsValid: boolean;
        Parsed: boolean;
        ParsedSQL: string;
        Reads: StrictStatementReads | null;
        Reason: string | null;
        Refusal: StrictRefusal | null;
        StatementKind: SQLStatementKind;
    }
    Index

    Properties

    ColumnReferences: string[] | null

    The column references in the WHERE clause of each parsed statement, in the order first met, each once: table.column when qualified, the column alone otherwise. Set when StrictParseOptions.CollectColumnReferences was set and the text parsed; otherwise null.

    ContainsNestedWrite: boolean

    Whether a write, DDL or DCL statement appears anywhere in the parse tree.

    HasWriteStatement: boolean

    Whether a top-level statement writes, changes the schema or changes permissions.

    IsSingleTypedStatement: boolean

    Whether the parse is exactly one statement of a recognised kind.

    IsValid: boolean

    True when the text parsed as exactly one plain read: no top-level write, a plain SELECT, and no write or DDL statement at any depth.

    Parsed: boolean

    Whether the grammar read the text (directly, or after the fallbacks when they are allowed).

    ParsedSQL: string

    The text the parser read: a fragment inside its parse wrapper (SELECT 1 FROM __mj_clause_screen WHERE (…)), or a statement as given.

    Reads: StrictStatementReads | null

    The FROM items the text reads, when StrictParseOptions.CollectReads was set and the text is valid; otherwise null. A fragment's own parse wrapper is not among them.

    Reason: string | null

    A sentence saying why the text is not valid; null when it is.

    Refusal: StrictRefusal | null

    Why the text is not valid; null when it is.

    StatementKind: SQLStatementKind

    The kind of the top-level statement; 'other' when the text did not parse.