Added values to the QueryOptions.

This commit is contained in:
James Munro
2018-03-16 17:21:45 +00:00
parent 17c3e0a996
commit 93c4653398
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -240,6 +240,11 @@ export interface QueryOptions {
*/
sql: string;
/**
* Values for template query
*/
values: any;
/**
* Every operation takes an optional inactivity timeout option. This allows you to specify appropriate timeouts for
* operations. It is important to note that these timeouts are not part of the MySQL protocol, and rather timeout
+3
View File
@@ -423,6 +423,9 @@ connection.query({
}
});
connection.query({sql: '...', values: ['test']}, (err: Error, results: any) => {
});
connection = mysql.createConnection("mysql://localhost/test?flags=-FOUND_ROWS");
connection = mysql.createConnection({debug: true});
connection = mysql.createConnection({debug: ['ComQueryPacket', 'RowDataPacket']});