mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Added values to the QueryOptions.
This commit is contained in:
Vendored
+5
@@ -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
|
||||
|
||||
@@ -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']});
|
||||
|
||||
Reference in New Issue
Block a user