Skip to content

utils.TediousUtils.Interface.SqlParamDef

Christian d'Heureuse edited this page Nov 16, 2026 · 1 revision

tedious-plus / utils/TediousUtils / SqlParamDef

Interface: SqlParamDef

Defined in: utils/TediousUtils.ts:334

A complete SQL parameter definition, with name, value and data type.

Extends

Properties

length?

length?: number;

Defined in: utils/TediousUtils.ts:309

The length, for string and binary data types (e.g. NVarChar, VarBinary).

Inherited from

SqlParamValueAndDataType.length


name

name: string;

Defined in: utils/TediousUtils.ts:339

The parameter name, without the @ prefix.


precision?

precision?: number;

Defined in: utils/TediousUtils.ts:314

The precision, for the data types Decimal and Numeric.

Inherited from

SqlParamValueAndDataType.precision


scale?

scale?: number;

Defined in: utils/TediousUtils.ts:319

The scale, for the data types Decimal, Numeric, Time, DateTime2 and DateTimeOffset.

Inherited from

SqlParamValueAndDataType.scale


type

type: DataType;

Defined in: utils/TediousUtils.ts:304

The Tedious data type, e.g. Tedious.TYPES.Int.

Inherited from

SqlParamValueAndDataType.type


value

value: unknown;

Defined in: utils/TediousUtils.ts:329

The parameter value. null or undefined is passed as SQL NULL.

Inherited from

SqlParamValueAndDataType.value

Clone this wiki locally