Member Junction
    Preparing search index...

    Variable SqlDocumentDiagnosticCodesConst

    SqlDocumentDiagnosticCodes: {
        EmptyClause: "SQL_EMPTY_CLAUSE";
        NestingTooDeep: "SQL_NESTING_TOO_DEEP";
        NotAQuery: "SQL_NOT_A_QUERY";
        NotInDialect: "SQL_NOT_IN_DIALECT";
        TemplateToken: "SQL_TEMPLATE_TOKEN";
        TransformNotApplicable: "SQL_TRANSFORM_NOT_APPLICABLE";
        UnbalancedParenthesis: "SQL_UNBALANCED_PARENTHESIS";
        UnexpectedToken: "SQL_UNEXPECTED_TOKEN";
        UnknownSyntax: "SQL_UNKNOWN_SYNTAX";
    } = ...

    The diagnostic codes a SqlDocument and its edits report. Codes are stable: a code is never renamed or reused for another finding.

    Type Declaration

    • ReadonlyEmptyClause: "SQL_EMPTY_CLAUSE"

      A clause or list with nothing where something must be: WHERE with no condition, FROM with no source, a trailing comma.

    • ReadonlyNestingTooDeep: "SQL_NESTING_TOO_DEEP"

      Queries nested deeper than the parser follows; the inner part is kept as an Unknown node.

    • ReadonlyNotAQuery: "SQL_NOT_A_QUERY"

      A statement or nested body that is not a query (INSERT, EXEC, DELETE … RETURNING); it is kept whole.

    • ReadonlyNotInDialect: "SQL_NOT_IN_DIALECT"

      A construct the dialect does not have, such as TOP in PostgreSQL.

    • ReadonlyTemplateToken: "SQL_TEMPLATE_TOKEN"

      A template tag in text read as SQL; it is read as an opaque value.

    • ReadonlyTransformNotApplicable: "SQL_TRANSFORM_NOT_APPLICABLE"

      A transform that does not apply to this statement; the text is returned unchanged.

    • ReadonlyUnbalancedParenthesis: "SQL_UNBALANCED_PARENTHESIS"

      A ( with no matching ), or a ) with no matching (.

    • ReadonlyUnexpectedToken: "SQL_UNEXPECTED_TOKEN"

      Text after a complete query that belongs to no clause.

    • ReadonlyUnknownSyntax: "SQL_UNKNOWN_SYNTAX"

      A clause, source or statement the parser does not recognise; it is kept as an Unknown node.