Skip to main content
Version: 0.3.0

convertToPostgresValue

age-schema-client v0.3.0


age-schema-client / convertToPostgresValue

Function: convertToPostgresValue()

function convertToPostgresValue(value, type): SQLParameter;

Defined in: src/sql/utils.ts:65

Convert a JavaScript value to a PostgreSQL value based on property type

Parameters

ParameterTypeDescription
valueanyValue to convert
typePropertyTypeProperty type

Returns

SQLParameter

Converted value