Polyglot SQL API Documentation - v0.13.1
    Preparing search index...

    Type Alias Identifier

    Represent a SQL identifier (table name, column name, alias, keyword-as-name, etc.).

    The quoted flag indicates whether the identifier was originally delimited (double-quoted, backtick-quoted, or bracket-quoted depending on the dialect). The generator uses this flag to decide whether to emit quoting characters.

    type Identifier = {
        name: string;
        quoted: boolean;
        span?: Span | null;
        trailing_comments: string[];
    }
    Index

    Properties

    name: string

    The raw text of the identifier, without any quoting characters.

    quoted: boolean

    Whether the identifier was quoted in the source SQL.

    span?: Span | null

    Original source range, including quoting delimiters. Absent for synthetic or programmatically constructed identifiers. Not part of structural equality.

    trailing_comments: string[]