Skip to content

TediousUtils.Function.genParamNameList

Christian d'Heureuse edited this page Oct 28, 2026 · 1 revision

tedious-plus / TediousUtils / genParamNameList

Function: genParamNameList()

function genParamNameList(n): string;

Defined in: TediousUtils.ts:424

Returns a string with automatically generated parameter names in the form "@a,@b,@c,...".

Usage, together with the paramValues option:

const values = [123, "abc", true];
await conn.execSql(`insert into t1 values (${genParamNameList(values.length)})`, {paramValues: values});

Parameters

n

number

The number of parameter names.

Returns

string

Clone this wiki locally