| 1 |
export { parseExpression } from './parser.js'; |
| 2 |
export { evaluate } from './evaluate.js'; |
| 3 |
export { parseQuery, executeQuery, query } from './query.js'; |
| 4 |
export { SqlSyntaxError, SqlEvaluationError } from './errors.js'; |
| 5 |
|
| 6 |
import { parseExpression } from './parser.js'; |
| 7 |
import { evaluate } from './evaluate.js'; |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
export function evaluateExpression(source, context, options) { |
| 17 |
const ast = typeof source === 'string' ? parseExpression(source) : source; |
| 18 |
return evaluate(ast, context, options); |
| 19 |
} |