Skip to main content

Class: SQLIdentifier

Defined in: lang-sql/src/ast/expression.ts:34

SQL identifier that preserves the original casing alongside the normalized form and carries optional schema qualifiers.

Extends​

Constructors​

Constructor​

new SQLIdentifier(idOriginal, ...schemasOriginal): SQLIdentifier

Defined in: lang-sql/src/ast/expression.ts:38

Parameters​

ParameterTypeDescription
idOriginalstring | typeof allAttrsThe identifier token as written in SQL source, before normalization; may be allAttrs for *.
...schemasOriginalstring[]from least to most specific

Returns​

SQLIdentifier

Overrides​

ASTIdentifier.constructor

Properties​

aggregate?​

optional aggregate?: AggregateCall

Defined in: core/dist/ast.d.ts:76

Set when this identifier refers to an aggregate call in a GROUP BY context.

Inherited from​

ASTIdentifier.aggregate


idOriginal​

idOriginal: string | typeof allAttrs

Defined in: lang-sql/src/ast/expression.ts:40

The identifier token as written in SQL source, before normalization; may be allAttrs for *.


parts​

parts: (string | number | symbol)[]

Defined in: core/dist/ast.d.ts:78

Ordered sequence of name parts that form the qualified identifier.

Inherited from​

ASTIdentifier.parts


schemasOriginal​

schemasOriginal: string[]

Defined in: lang-sql/src/ast/expression.ts:36

Schema qualifiers as written in SQL source, ordered from least to most specific.

Methods​

[iterator]()​

[iterator](): ArrayIterator<string | number | symbol>

Defined in: core/dist/ast.d.ts:80

Iterates over parts in order.

Returns​

ArrayIterator<string | number | symbol>

Inherited from​

ASTIdentifier.[iterator]


accept()​

accept<Ret, Arg>(visitor, arg?): Ret

Defined in: lang-sql/src/ast/expression.ts:53

ASTNode.accept

Type Parameters​

Type Parameter
Ret
Arg

Parameters​

ParameterType
visitorSQLVisitor<Ret, Arg>
arg?Arg

Returns​

Ret

Overrides​

ASTIdentifier.accept


equals()​

equals(other): boolean

Defined in: core/dist/ast.d.ts:86

Returns true when other has the same parts in the same order.

Parameters​

ParameterType
otherASTIdentifier

Returns​

boolean

Inherited from​

ASTIdentifier.equals


fromParts()​

static fromParts(parts): ASTIdentifier

Defined in: core/dist/ast.d.ts:84

Creates an ASTIdentifier from a pre-built parts array.

Parameters​

ParameterType
parts(string | number | symbol)[]

Returns​

ASTIdentifier

Inherited from​

ASTIdentifier.fromParts