-first commit
This commit is contained in:
27
node_modules/@redis/search/dist/lib/commands/CURSOR_READ.js
generated
vendored
Normal file
27
node_modules/@redis/search/dist/lib/commands/CURSOR_READ.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const AGGREGATE_WITHCURSOR_1 = __importDefault(require("./AGGREGATE_WITHCURSOR"));
|
||||
exports.default = {
|
||||
NOT_KEYED_COMMAND: true,
|
||||
IS_READ_ONLY: true,
|
||||
/**
|
||||
* Reads from an existing cursor to get more results from an index.
|
||||
* @param parser - The command parser
|
||||
* @param index - The index name that contains the cursor
|
||||
* @param cursor - The cursor ID to read from
|
||||
* @param options - Optional parameters:
|
||||
* - COUNT: Maximum number of results to return
|
||||
*/
|
||||
parseCommand(parser, index, cursor, options) {
|
||||
parser.push('FT.CURSOR', 'READ', index, cursor.toString());
|
||||
if (options?.COUNT !== undefined) {
|
||||
parser.push('COUNT', options.COUNT.toString());
|
||||
}
|
||||
},
|
||||
transformReply: AGGREGATE_WITHCURSOR_1.default.transformReply,
|
||||
unstableResp3: true
|
||||
};
|
||||
//# sourceMappingURL=CURSOR_READ.js.map
|
||||
Reference in New Issue
Block a user