UNPKG

json-sql-isme2n

Version:

node.js json to sql queries mapper

11 lines (9 loc) 240 B
'use strict'; module.exports = function(dialect) { dialect.operators.fetching.add('$json', { fn: function(value, end) { if (end) value = {value: value}; return dialect.buildBlock('term', {term: value, type: 'value'}); } }); };