diff --git a/docs/adapter.js.html b/docs/adapter.js.html index 031d971..cd0cfef 100644 --- a/docs/adapter.js.html +++ b/docs/adapter.js.html @@ -51,6 +51,10 @@ query-parser +
Close the connection that is open on the current adapter
+void
+void
+Closes the database connection for the current adapter
+Check if the string contains an operator, and if so, return the operator(s). +If there are no matches, return null
+Name | + + +Type | + + + + + +Description | +
---|---|---|
string |
+
+
+ + + +String + + + + | + + + + + +the string to check |
+
Parse a where clause to separate functions from values
+Name | + + +Type | + + + + + +Description | +
---|---|---|
driver |
+
+
+ + + +Object + + + + | + + + + + ++ |
state |
+
+
+ + + +State + + + + | + + + + + ++ |
'use strict'; + +/** @module State */ +module.exports = function State() { + return { + // Arrays/Maps + queryMap: [], + values: [], + whereValues: [], + setArrayKeys: [], + orderArray: [], + groupArray: [], + havingMap: [], + whereMap: {}, + rawWhereValues: [], + + // Partials + selectString: '', + fromString: '', + setString: '', + orderString: '', + groupString: '', + + // Other various values + limit: null, + offset: null + }; +}; +// End of module State+