Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Param

Parameter value that is optionally bound to an encoder (for example, a column).

class Param<TDataType = unknown, TDriverParamType = TDataType> {
constructor(value: TDataType, encoder?: DriverValueEncoder<TDataType, TDriverParamType>);
protected brand: "BoundParamValue";
readonly encoder: DriverValueEncoder<TDataType, TDriverParamType>;
readonly value: TDataType;
}

§Type Parameters

§
TDataType = unknown
[src]
§
TDriverParamType = TDataType
[src]

§Constructors

§
new Param(value: TDataType, encoder?: DriverValueEncoder<TDataType, TDriverParamType>)
[src]
@param value
  • Parameter value
@param encoder
  • Encoder to convert the value to a driver parameter

§Properties

§
brand: "BoundParamValue"
[src]
§
encoder: DriverValueEncoder<TDataType, TDriverParamType>
[src]
§
value: TDataType
[src]