feat: pass options to buildQueryColumns
Signed-off-by: Muhammad Aaqil <aaqilcs102@gmail.com>
This commit is contained in:
parent
74739f237a
commit
f897655049
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue