Defined in: packages/core/src/models/DDLStatements.ts:158
CREATE INDEX statement representation.
Extends ​
Constructors ​
Constructor ​
new CreateIndexStatement(
params):CreateIndexStatement
Defined in: packages/core/src/models/DDLStatements.ts:172
Parameters ​
params ​
unique? ​
boolean
concurrently? ​
boolean
ifNotExists? ​
boolean
indexName ​
tableName ​
usingMethod? ​
RawString | IdentifierString | null
columns ​
include? ​
IdentifierString[] | null
where? ​
withOptions? ​
RawString | null
tablespace? ​
IdentifierString | null
Returns ​
CreateIndexStatement
Overrides ​
Properties ​
kind ​
statickind:symbol
Defined in: packages/core/src/models/DDLStatements.ts:159
Overrides ​
unique ​
unique:
boolean
Defined in: packages/core/src/models/DDLStatements.ts:160
concurrently ​
concurrently:
boolean
Defined in: packages/core/src/models/DDLStatements.ts:161
ifNotExists ​
ifNotExists:
boolean
Defined in: packages/core/src/models/DDLStatements.ts:162
indexName ​
indexName:
QualifiedName
Defined in: packages/core/src/models/DDLStatements.ts:163
tableName ​
tableName:
QualifiedName
Defined in: packages/core/src/models/DDLStatements.ts:164
usingMethod? ​
optionalusingMethod:RawString|IdentifierString|null
Defined in: packages/core/src/models/DDLStatements.ts:165
columns ​
columns:
IndexColumnDefinition[]
Defined in: packages/core/src/models/DDLStatements.ts:166
include? ​
optionalinclude:IdentifierString[] |null
Defined in: packages/core/src/models/DDLStatements.ts:167
where? ​
optionalwhere:ValueComponent
Defined in: packages/core/src/models/DDLStatements.ts:168
withOptions? ​
optionalwithOptions:RawString|null
Defined in: packages/core/src/models/DDLStatements.ts:169
tablespace? ​
optionaltablespace:IdentifierString|null
Defined in: packages/core/src/models/DDLStatements.ts:170
comments ​
comments:
string[] |null=null
Defined in: packages/core/src/models/SqlComponent.ts:29
Inherited from ​
positionedComments ​
positionedComments:
PositionedComment[] |null=null
Defined in: packages/core/src/models/SqlComponent.ts:32
Inherited from ​
SqlComponent.positionedComments
Methods ​
getKind() ​
getKind():
symbol
Defined in: packages/core/src/models/SqlComponent.ts:15
Returns ​
symbol
Inherited from ​
accept() ​
accept<
T>(visitor):T
Defined in: packages/core/src/models/SqlComponent.ts:19
Type Parameters ​
T ​
T
Parameters ​
visitor ​
SqlComponentVisitor<T>
Returns ​
T
Inherited from ​
toSqlString() ​
toSqlString(
formatter):string
Defined in: packages/core/src/models/SqlComponent.ts:23
Parameters ​
formatter ​
SqlComponentVisitor<string>
Returns ​
string
Inherited from ​
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[]