Class: CreateIndex
Represents a command to create a search index on table columns to improve query performance.
Example
ts
CREATE INDEX idx_lastname ON employees (lastname)Constructors
Constructor
new CreateIndex(
name,table,columns,loc?):CreateIndex
Parameters
| Parameter | Type |
|---|---|
name | string |
table | string |
columns | string[] |
loc? | SourceLocation |
Returns
CreateIndex
Overrides
ASTNode.constructor
Methods
getMetadata()
getMetadata<
T>(key):T
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
T
Inherited from
ASTNode.getMetadata
hasMetadata()
hasMetadata(
key):boolean
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
boolean
Inherited from
ASTNode.hasMetadata
setMetadata()
setMetadata(
key,value):void
Parameters
| Parameter | Type |
|---|---|
key | string |
value | any |
Returns
void
Inherited from
ASTNode.setMetadata