sphinxql
Version:
SphinxQL query builder for Node.JS. Supports Sphinx search(2.x and 3.x) and Manticore search
15 lines (10 loc) • 347 B
text/typescript
import StatementBuilderBase from '../StatementBuilderBase';
export default class SelectExprStatement implements StatementBuilderBase {
protected fieldsExpr: string[];
constructor(...fields: string[]) {
this.fieldsExpr = fields;
}
public build(): string {
return this.fieldsExpr.length ? this.fieldsExpr.join(', ') : '*';
}
}