Member Junction
    Preparing search index...

    Symbol table for managing CTE names during composition.

    Guarantees uniqueness at CTE creation time — name collisions become impossible by construction.

    All name comparisons are case-insensitive (SQL Server and PostgreSQL both treat unquoted identifiers case-insensitively for CTEs).

    Index

    Constructors

    Accessors

    Methods

    • Registers a name. If the name is already taken, generates a unique suffix (Name__2, Name__3, ...) and returns the suffixed version.

      Parameters

      • desiredName: string

        The preferred name (unquoted)

      Returns string

      The actual allocated name (may be suffixed if collision)

    • Generates a composition CTE name from a query name + hash, registers it, and returns the quoted form.

      Parameters

      • queryName: string
      • hashInput: string

      Returns string