sphinxql
Version:
SphinxQL query builder for Node.JS. Supports Sphinx search(2.x and 3.x) and Manticore search
18 lines • 573 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var Expression_1 = require("./Statements/Expression");
var sqlstring = require("sqlstring");
function getExpressionCompare(value) {
if (value instanceof Expression_1.default) {
return value.getExpression();
}
if (typeof value === 'string') {
return sqlstring.escape(value);
}
if (typeof value === 'number') {
return value;
}
return value;
}
exports.getExpressionCompare = getExpressionCompare;
//# sourceMappingURL=utils.js.map