mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
mysql: ConnectionConfig.flags can be a string (#37722)
mysqljs/mysql documents connection flags to be a comma-separated string, although it also accepted an array of strings sidorares/node-mysql2 only accepts a comma-separated string
This commit is contained in:
parent
f25108e59f
commit
692bc8ab38
2
types/mysql/index.d.ts
vendored
2
types/mysql/index.d.ts
vendored
@ -557,7 +557,7 @@ export interface ConnectionConfig extends ConnectionOptions {
|
||||
/**
|
||||
* List of connection flags to use other than the default ones. It is also possible to blacklist default ones
|
||||
*/
|
||||
flags?: string[];
|
||||
flags?: string | string[];
|
||||
|
||||
/**
|
||||
* object with ssl parameters or a string containing name of ssl profile
|
||||
|
||||
@ -431,3 +431,5 @@ connection = mysql.createConnection({debug: true});
|
||||
connection = mysql.createConnection({debug: ['ComQueryPacket', 'RowDataPacket']});
|
||||
connection = mysql.createConnection({dateStrings: ['DATE']});
|
||||
connection = mysql.createConnection({dateStrings: true});
|
||||
connection = mysql.createConnection({flags: '-FOUND_ROWS'});
|
||||
connection = mysql.createConnection({flags: ['-FOUND_ROWS']});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user