From f897655049dda3270dce90fb2168f0e98b28808f Mon Sep 17 00:00:00 2001 From: Muhammad Aaqil Date: Mon, 27 Nov 2023 20:08:57 +0500 Subject: [PATCH] feat: pass options to buildQueryColumns Signed-off-by: Muhammad Aaqil --- lib/sql.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sql.js b/lib/sql.js index a07b4e6..a1bd6d5 100644 --- a/lib/sql.js +++ b/lib/sql.js @@ -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);