Class: AlterTable
Represents a command to modify an existing table structure (e.g., adding columns).
Example
ts
ALTER TABLE employees ADD COLUMN email VARCHAR(255)Constructors
Constructor
new AlterTable(
name,action,loc?):AlterTable
Parameters
| Parameter | Type |
|---|---|
name | string |
action | Expression |
loc? | SourceLocation |
Returns
AlterTable
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