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

    Type Alias Alias

    Represent an aliased expression (expr AS name).

    Used for column aliases in select-lists, table aliases on subqueries, and column alias lists on table-valued expressions (e.g. AS t(c1, c2)).

    type Alias = {
        alias: Identifier;
        column_aliases: Identifier[];
        pre_alias_comments: string[];
        this: Expression;
        trailing_comments: string[];
    }
    Index

    Properties

    alias: Identifier

    The alias name (required for simple aliases, optional when only column aliases provided)

    column_aliases: Identifier[]

    Optional column aliases for table-valued functions: AS t(col1, col2) or AS (col1, col2)

    pre_alias_comments: string[]

    Comments that appeared between the expression and AS keyword

    The expression being aliased.

    trailing_comments: string[]

    Trailing comments that appeared after the alias