sphinxql
Version:
SphinxQL query builder for Node.JS. Supports Sphinx search(2.x and 3.x) and Manticore search
19 lines (16 loc) • 430 B
text/typescript
import ClientInterface from '../ClientInterface';
import BaseStatement from './BaseStatement';
/**
* FLUSH RTINDEX rtindex
*/
export default class FlushRTIndexStatement extends BaseStatement {
public constructor(connection: ClientInterface, protected readonly index: string) {
super(connection);
}
/**
* Generates the string statement.
*/
generate(): string {
return `FLUSH RTINDEX ${this.index}`;
}
}