Method

PgsqlParamsadd_json

Declaration

void
pgsql_params_add_json (
  PgsqlParams* self,
  const char* value
)

Description

Adds a JSON parameter as PostgreSQL JSON type.

The value should be a valid JSON string that will be stored as-is in PostgreSQL.

Parameters

value

Type: const char*

The JSON string value to add.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.