We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 012c2de commit ebd9490Copy full SHA for ebd9490
lib/sql.js
@@ -2105,3 +2105,20 @@ SQLConnector.prototype.setNullableProperty = function(property) {
2105
throw new Error(g.f('{{setNullableProperty}} must be implemented by' +
2106
'the connector'));
2107
};
2108
+
2109
+/**
2110
+ * Discover if database is in strict mode
2111
+ * @param {Function} [cb] The callback function
2112
+ */
2113
+SQLConnector.prototype.discoverIsStrict = function(cb) {
2114
+ const self = this;
2115
+ const sql = self.buildQueryIsStrict();
2116
+ this.execute(sql, cb);
2117
+}
2118
2119
2120
+ * Build sql for checking if database is in strict mode
2121
2122
+SQLConnector.prototype.buildQueryIsStrict = function() {
2123
+ throw new Error(g.f('{{isStrict}} must be implemented by the connector'));
2124
+};
0 commit comments