Class: InsertInto
Represents a command to insert new records into a database table.
Example
ts
INSERT INTO users (name, email) VALUES ('Alice', 'alice@example.com')Constructors
Constructor
new InsertInto(
table,columns,values,loc?):InsertInto
Parameters
| Parameter | Type |
|---|---|
table | string |
columns | string[] |
values | Expression[][] |
loc? | SourceLocation |
Returns
InsertInto
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