UNPKG

sphinxql

Version:

SphinxQL query builder for Node.JS. Supports Sphinx search(2.x and 3.x) and Manticore search

18 lines (13 loc) 328 B
import { raw } from 'sqlstring'; export default class Expression { protected expr: string; private constructor(expr: string) { this.expr = expr; } public static raw(expr: string): Expression { return new Expression(expr); } public getExpression(): string { return raw(this.expr).toSqlString(); } }