Skip to content

Commit

Permalink
feat: query to fetch unique columns
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Aaqil <[email protected]>
  • Loading branch information
aaqilniz committed Apr 14, 2024
1 parent 012c2de commit b7fea3b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -2105,3 +2105,20 @@ SQLConnector.prototype.setNullableProperty = function(property) {
throw new Error(g.f('{{setNullableProperty}} must be implemented by' +
'the connector'));
};

/**
* Discover if database is in strict mode
* @param {Function} [cb] The callback function
*/
SQLConnector.prototype.discoverIsStrict = function(cb) {
const self = this;
const sql = self.buildQueryIsStrict();
this.execute(sql, cb);
};

/**
* Build sql for checking if database is in strict mode
*/
SQLConnector.prototype.buildQueryIsStrict = function() {
throw new Error(g.f('{{isStrict}} must be implemented by the connector'));
};

0 comments on commit b7fea3b

Please sign in to comment.