Skip to content
# Class: SetClauseItem

Defined in: packages/core/src/models/Clause.ts:526

Represents a single SET clause item in an UPDATE statement. Now supports namespaces for fully qualified column names (e.g. schema.table.column). Refactored to use QualifiedName for unified name/namespace handling.

Extends ​

Constructors ​

Constructor ​

new SetClauseItem(column, value): SetClauseItem

Defined in: packages/core/src/models/Clause.ts:530

Parameters ​

column ​

string | IdentifierString | { namespaces: string[] | IdentifierString[] | null; column: string | IdentifierString; }

value ​

ValueComponent

Returns ​

SetClauseItem

Overrides ​

SqlComponent.constructor

Properties ​

kind ​

static kind: symbol

Defined in: packages/core/src/models/Clause.ts:527

Overrides ​

SqlComponent.kind


qualifiedName ​

qualifiedName: QualifiedName

Defined in: packages/core/src/models/Clause.ts:528


value ​

value: ValueComponent

Defined in: packages/core/src/models/Clause.ts:529


comments ​

comments: string[] | null = null

Defined in: packages/core/src/models/SqlComponent.ts:29

Inherited from ​

SqlComponent.comments


positionedComments ​

positionedComments: PositionedComment[] | null = null

Defined in: packages/core/src/models/SqlComponent.ts:32

Inherited from ​

SqlComponent.positionedComments

Accessors ​

namespaces ​

Get Signature ​

get namespaces(): IdentifierString[] | null

Defined in: packages/core/src/models/Clause.ts:549

For backward compatibility: returns the namespaces as IdentifierString[] | null (readonly)

Returns ​

IdentifierString[] | null


column ​

Get Signature ​

get column(): IdentifierString

Defined in: packages/core/src/models/Clause.ts:555

For backward compatibility: returns the column name as IdentifierString (readonly)

Returns ​

IdentifierString

Methods ​

getFullName() ​

getFullName(): string

Defined in: packages/core/src/models/Clause.ts:565

Returns the fully qualified column name as a string.

Returns ​

string


getKind() ​

getKind(): symbol

Defined in: packages/core/src/models/SqlComponent.ts:15

Returns ​

symbol

Inherited from ​

SqlComponent.getKind


accept() ​

accept<T&gt;(visitor): T

Defined in: packages/core/src/models/SqlComponent.ts:19

Type Parameters ​

T ​

T

Parameters ​

visitor ​

SqlComponentVisitor<T&gt;

Returns ​

T

Inherited from ​

SqlComponent.accept


toSqlString() ​

toSqlString(formatter): string

Defined in: packages/core/src/models/SqlComponent.ts:23

Parameters ​

formatter ​

SqlComponentVisitor<string&gt;

Returns ​

string

Inherited from ​

SqlComponent.toSqlString


addPositionedComments() ​

addPositionedComments(position, comments): void

Defined in: packages/core/src/models/SqlComponent.ts:37

Add comments at a specific position

Parameters ​

position ​

"before" | "after"

comments ​

string[]

Returns ​

void

Inherited from ​

SqlComponent.addPositionedComments


getPositionedComments() ​

getPositionedComments(position): string[]

Defined in: packages/core/src/models/SqlComponent.ts:56

Get comments for a specific position

Parameters ​

position ​

"before" | "after"

Returns ​

string[]

Inherited from ​

SqlComponent.getPositionedComments


getAllPositionedComments() ​

getAllPositionedComments(): string[]

Defined in: packages/core/src/models/SqlComponent.ts:66

Get all positioned comments as a flat array in order (before, after)

Returns ​

string[]

Inherited from ​

SqlComponent.getAllPositionedComments

Released under the MIT License.