Insert

Prepares a new insertion

Constructor

new Insert()

Methods

data(objects) → {this}

The data (rows) to insert
Parameters:
NameTypeDescription
objectsArray.<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:
NameTypeDescription
databaseStringName of the database
Returns:
Type: 
this