You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: API.md
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -165,6 +165,7 @@ const sql = '(name = "Shaun Persad" AND age >= 27';
165
165
```
166
166
167
167
168
+
168
169
#### #parse(sql:String, evaluator:Function):*
169
170
170
171
Uses the supplied `evaluator(operatorValue:String|Symbol, operands:Array)` function to convert an operator and its operands into its evaluation. The default evaluator actually does no "evaluation" in the mathematical sense. Instead it creates an object whose key is the operator, and the value is an array of the operands.
@@ -209,6 +210,7 @@ equals(parsed, [
209
210
```
210
211
211
212
213
+
212
214
#### #toArray(sql:String):Array
213
215
214
216
Parses the SQL string into a nested array, where each expression is its own array.
The default config object used when no config is supplied. For the tokenizer config options, see [here](https://github.com/shaunpersad/tokenize-this#defaultconfigobject).
0 commit comments