@uttori/storage-provider-json-memory
Version:
Uttori storage provider using JavaScript objects in memory.
13 lines • 802 B
TypeScript
export default parseQueryToRamda;
/**
* Using default SQL tree output, iterate over that to convert to items to be checked group by group (AND, OR), prop by prop to filter functions.
* Both `+` and `-` should be done in a pre-parser step or before the query is constructed, or after results are returned.
* @param {import('../dist/custom.d.ts').SqlWhereParserAst} ast The parsed output of SqlWhereParser to be filtered.
* @returns {Array} The collected set of Ramda filter functions.
* @example <caption>parseQueryToRamda(ast)</caption>
* const filters = parseQueryToRamda(ast);
* return R.filter(filters)(docs);
* ➜ [{ ... }, { ... }, ...]
*/
declare function parseQueryToRamda(ast: import('../dist/custom.d.ts').SqlWhereParserAst): any[];
//# sourceMappingURL=parse-query-to-ramda.d.ts.map