Disable QueryFile warnings via driverConfig
I'm using 2 massive connections at once, and it throws this error for me:
WARNING: Creating a duplicate QueryFile object for the same file
I added noWarnings: true as a third option to massive, and it disables the warning for multiple connections, but it still throws this one, since internal query files doesn't pass down driver config (here https://gitlab.com/dmfay/massive-js/-/blob/master/lib/database.js#L240).
I think this should be either passed down or there should be an option to pass something down the QueryFile constructor.
These are the exact errors that I get:
WARNING: Creating a duplicate QueryFile object for the same file -
/src/node_modules/massive/lib/scripts/document-table.sql
WARNING: Creating a duplicate QueryFile object for the same file -
/src/node_modules/massive/lib/scripts/drop_table.sql
WARNING: Creating a duplicate QueryFile object for the same file -
/src/node_modules/massive/lib/scripts/enums.sql
WARNING: Creating a duplicate QueryFile object for the same file -
/src/node_modules/massive/lib/scripts/functions-legacy.sql
WARNING: Creating a duplicate QueryFile object for the same file -
/src/node_modules/massive/lib/scripts/functions.sql
WARNING: Creating a duplicate QueryFile object for the same file -
/src/node_modules/massive/lib/scripts/sequences.sql
WARNING: Creating a duplicate QueryFile object for the same file -
/src/node_modules/massive/lib/scripts/tables.sql
WARNING: Creating a duplicate QueryFile object for the same file -
/src/node_modules/massive/lib/scripts/views-legacy.sql
WARNING: Creating a duplicate QueryFile object for the same file -
/src/node_modules/massive/lib/scripts/views.sql