Delete

Prepares a new Deletion

Constructor

new Delete()

Methods

(async) execute() → {Any}

Executes the prepared querry
Returns:
Type: 
Any

force()

Enables deletion of all rows

selectDatabase(database) → {this}

Selects a database for this query
Parameters:
NameTypeDescription
databaseStringName of the database
Returns:
Type: 
this

where(string, values) → {this}

Adds a where-clause to the query - Values should be set as ? in the string and given in left-to-right order via the 'values'-array to minimize the risk of sql-injection
Parameters:
NameTypeDescription
stringStringThe where-clause as a string with ? representing each values.
valuesArray.<Any>Array containing values replacing the ? in the string (from left to right)
Returns:
Type: 
this