TYPES: {
BigInt: DataType;
Binary: { maximumLength: number } & DataType;
Bit: DataType;
Char: { maximumLength: number } & DataType;
Date: DataType;
DateTime: DataType;
DateTime2: DataType & { resolveScale: (parameter: Parameter) => number };
DateTimeOffset: DataType & {
resolveScale: (parameter: Parameter) => number;
};
Decimal: DataType & {
resolvePrecision: (parameter: Parameter) => number;
resolveScale: (parameter: Parameter) => number;
};
Float: DataType;
Image: DataType;
Int: DataType;
Money: DataType;
NChar: DataType & { maximumLength: number };
NText: DataType;
Numeric: DataType & {
resolvePrecision: (parameter: Parameter) => number;
resolveScale: (parameter: Parameter) => number;
};
NVarChar: { maximumLength: number } & DataType;
Real: DataType;
SmallDateTime: DataType;
SmallInt: DataType;
SmallMoney: DataType;
Text: DataType;
Time: DataType;
TinyInt: DataType;
TVP: DataType;
UDT: DataType;
UniqueIdentifier: DataType;
VarBinary: { maximumLength: number } & DataType;
VarChar: { maximumLength: number } & DataType;
Variant: DataType;
Xml: DataType;
} = ...
Type Declaration
BigInt: DataType
Binary: { maximumLength: number } & DataType
Bit: DataType
Char: { maximumLength: number } & DataType
Date: DataType
DateTime: DataType
DateTime2: DataType & { resolveScale: (parameter: Parameter) => number }
DateTimeOffset: DataType & { resolveScale: (parameter: Parameter) => number }
Decimal: DataType & {
resolvePrecision: (parameter: Parameter) => number;
resolveScale: (parameter: Parameter) => number;
}
Float: DataType
Image: DataType
Int: DataType
Money: DataType
NChar: DataType & { maximumLength: number }
NText: DataType
Numeric: DataType & {
resolvePrecision: (parameter: Parameter) => number;
resolveScale: (parameter: Parameter) => number;
}
NVarChar: { maximumLength: number } & DataType
Real: DataType
SmallDateTime: DataType
SmallInt: DataType
SmallMoney: DataType
Text: DataType
Time: DataType
TinyInt: DataType
TVP: DataType
UDT: DataType
UniqueIdentifier: DataType
VarBinary: { maximumLength: number } & DataType
VarChar: { maximumLength: number } & DataType
Variant: DataType
Xml: DataType
bitTYPES.BitbooleantinyintTYPES.TinyIntnumbersmallintTYPES.SmallIntnumberintTYPES.Intnumberbigint1TYPES.BigIntstringnumeric2TYPES.Numericnumberdecimal2TYPES.DecimalnumbersmallmoneyTYPES.SmallMoneynumbermoneyTYPES.MoneynumberfloatTYPES.FloatnumberrealTYPES.RealnumbersmalldatetimeTYPES.SmallDateTimeDatedatetimeTYPES.DateTimeDatedatetime2TYPES.DateTime2DatedatetimeoffsetTYPES.DateTimeOffsetDatetimeTYPES.TimeDatedateTYPES.DateDatecharTYPES.Charstringvarchar3TYPES.VarCharstringtextTYPES.TextstringncharTYPES.NCharstringnvarchar3TYPES.NVarCharstringntextTYPES.NTextstringbinaryTYPES.BinaryBuffervarbinaryTYPES.VarBinaryBufferimageTYPES.ImageBufferTVPTYPES.TVPObjectUDTTYPES.UDTBufferuniqueidentifier4TYPES.UniqueIdentifierstringvariantTYPES.VariantanyxmlTYPES.XmlstringBigInt
Values are returned as a string. This is because values can exceed 53 bits of significant data, which is greater than a Javascript
numbertype can represent as an integer.Numerical, Decimal
For input parameters, default precision is 18 and default scale is 0. Maximum supported precision is 19.
VarChar, NVarChar
varchar(max)andnvarchar(max)are also supported.UniqueIdentifier
Values are returned as a 16 byte hexadecimal string.
Note that the order of bytes is not the same as the character representation. See Using uniqueidentifier Data for an example of the different ordering of bytes.