Skip to content

Commit

Permalink
feat: rename poolId to resourcePool and deprecate
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Polyakov <[email protected]>
  • Loading branch information
polRk committed Oct 30, 2024
1 parent 96baa25 commit 74de142
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/query/query-session-execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,19 @@ export type IExecuteArgs = {
rowMode?: RowType,
idempotent?: boolean,

/**
* Resource Pool
*
* @deprecated Use resourcePool.
*/
poolId?: string,

/**
* Resource Pool
*
* CREATE RESOURCE POOL pool_name WITH (...)
*/
resourcePool?: string,
};

export type IExecuteResult = {
Expand Down Expand Up @@ -109,7 +121,7 @@ export function execute(this: QuerySession, args: IExecuteArgs): Promise<IExecut
syntax: args.syntax ?? Ydb.Query.Syntax.SYNTAX_YQL_V1,
},
execMode: args.execMode ?? Ydb.Query.ExecMode.EXEC_MODE_EXECUTE,
poolId: args.poolId,
poolId: args.poolId ?? args.resourcePool,
};
if (args.statsMode) executeQueryRequest.statsMode = args.statsMode;
if (args.parameters) executeQueryRequest.parameters = args.parameters;
Expand Down

0 comments on commit 74de142

Please sign in to comment.