Constructor
new Insert()
Methods
data(objects) → {this}
The data (rows) to insert
Parameters:
| Name | Type | Description |
|---|---|---|
objects | Array.<Object> | Array containing objects to insert, where the key represents the column-name. All objects must have the same structure! |
Returns:
- Type:
- this
(async) execute() → {Any}
Executes the prepared querry
Returns:
- Type:
- Any
selectDatabase(database) → {this}
Selects a database for this query
Parameters:
| Name | Type | Description |
|---|---|---|
database | String | Name of the database |
Returns:
- Type:
- this