You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
* ft.alter * support paramas * remove only and skip * merge * fix imports * add Vector field * update version * push attributes * typo * test * version check * remove .only * remove unued import * add support for DIALECT * clean code Co-authored-by: Avital-Fine <avital.fine@redis.com> Co-authored-by: leibale <leibale1998@gmail.com>
27 lines
530 B
TypeScript
27 lines
530 B
TypeScript
import { Params, pushParamsArgs } from ".";
|
|
|
|
export const IS_READ_ONLY = true;
|
|
|
|
interface ExplainOptions {
|
|
PARAMS?: Params;
|
|
DIALECT?: number;
|
|
}
|
|
|
|
export function transformArguments(
|
|
index: string,
|
|
query: string,
|
|
options?: ExplainOptions
|
|
): Array<string> {
|
|
const args = ['FT.EXPLAIN', index, query];
|
|
|
|
pushParamsArgs(args, options?.PARAMS);
|
|
|
|
if (options?.DIALECT) {
|
|
args.push('DIALECT', options.DIALECT.toString());
|
|
}
|
|
|
|
return args;
|
|
}
|
|
|
|
export declare function transformReply(): string;
|