feat: pass options to buildQueryColumns

Signed-off-by: Muhammad Aaqil <aaqilcs102@gmail.com>
This commit is contained in:
Muhammad Aaqil 2023-11-27 20:08:57 +05:00 committed by Samarpan Bhattacharya
parent 74739f237a
commit f897655049
1 changed files with 2 additions and 2 deletions

View File

@ -1951,7 +1951,7 @@ SQLConnector.prototype.discoverModelDefinitions = function(options, cb) {
*/
// Due to the different implementation structure of information_schema across
// connectors, each connector will have to generate its own query
SQLConnector.prototype.buildQueryColumns = function(schema, table) {
SQLConnector.prototype.buildQueryColumns = function(schema, table, options) {
throw new Error(g.f('{{buildQueryColumns}} must be implemented by the connector'));
};
@ -1995,7 +1995,7 @@ SQLConnector.prototype.discoverModelProperties = function(table, options, cb) {
self.setDefaultOptions(options);
cb = args.cb;
const sql = self.buildQueryColumns(schema, table);
const sql = self.buildQueryColumns(schema, table, options);
const callback = function(err, results) {
if (err) {
cb(err, results);