UNPKG

sphinxql

Version:

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

26 lines 973 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var BaseStatement_1 = require("./BaseStatement"); var ReloadIndexStatement = (function (_super) { tslib_1.__extends(ReloadIndexStatement, _super); function ReloadIndexStatement(connection, index) { var _this = _super.call(this, connection) || this; _this.index = index; return _this; } ReloadIndexStatement.prototype.from = function (path) { this.path = path; return this; }; ReloadIndexStatement.prototype.generate = function () { var expression = "RELOAD INDEX " + this.index; if (this.path !== undefined) { expression += " FROM '" + this.path + "'"; } return expression; }; return ReloadIndexStatement; }(BaseStatement_1.default)); exports.default = ReloadIndexStatement; //# sourceMappingURL=ReloadIndexStatement.js.map