Properties
functionsToInline
functionsToInline: object[]
prepend
prepend: string[]
Static binOpText
binOpText: "let __binopNull = (isCond, opFunc, left, right) => {return !isCond && (left === null || right === null) ? null : opFunc(left, right);};let __binop = (isCond, left, right, opFunc, cb) => {return Callbacks.Reduce([left, right],([left, right]) => __binopNull(isCond, opFunc, left, right),cb);};" = `let __binopNull = (isCond, opFunc, left, right) => {return !isCond && (left === null || right === null) ? null : opFunc(left, right);};let __binop = (isCond, left, right, opFunc, cb) => {return Callbacks.Reduce([left, right],([left, right]) => __binopNull(isCond, opFunc, left, right),cb);};`
Static getValueOrNullText
getValueOrNullText: "let __getValueOrNull = (row, col) => {if (row == null) throw new Error("Cannot SELECT " + col + " from null row. Did you mean to use @" + col + "?")let value = row.getValue(col);return typeof value !== 'undefined' ? value : null;};" = `let __getValueOrNull = (row, col) => {if (row == null) throw new Error("Cannot SELECT " + col + " from null row. Did you mean to use @" + col + "?")let value = row.getValue(col);return typeof value !== 'undefined' ? value : null;};`
Static inExprText
inExprText: "let __inExpr = (row, isNot, needle, haystack, cb) => {Callbacks.All([...haystack.map(i => i.bind(void 0, row)), needle.bind(void 0, row)], (err, res) => {if (err) return cb(err);const needle = res[0];const haystack = res.slice(1);return cb(void 0, !!(+(haystack.indexOf(needle) !== -1) ^ (+isNot)));})};let __inExprFast = (row, isNot, needleFunc, haystack, cb) => {needleFunc(row, (err, needle) => {if (err) return cb(err);return cb(void 0, !!(+(haystack.has(needle)) ^ (+isNot)));});};" = `let __inExpr = (row, isNot, needle, haystack, cb) => {Callbacks.All([...haystack.map(i => i.bind(void 0, row)), needle.bind(void 0, row)], (err, res) => {if (err) return cb(err);const needle = res[0];const haystack = res.slice(1);return cb(void 0, !!(+(haystack.indexOf(needle) !== -1) ^ (+isNot)));})};let __inExprFast = (row, isNot, needleFunc, haystack, cb) => {needleFunc(row, (err, needle) => {if (err) return cb(err);return cb(void 0, !!(+(haystack.has(needle)) ^ (+isNot)));});};`
Static unOpText
unOpText: "let __unOpNull = (opFunc, left) => {return left === null ? null : opFunc(left);};let __unop = (left, opFunc, cb) => {left((err, res) => {if (err) return cb(err);return cb(void 0, __unOpNull(opFunc, res));})};" = `let __unOpNull = (opFunc, left) => {return left === null ? null : opFunc(left);};let __unop = (left, opFunc, cb) => {left((err, res) => {if (err) return cb(err);return cb(void 0, __unOpNull(opFunc, res));})};`