Method

PgsqlParamsadd_jsonb

Declaration

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

Description

Adds a JSON parameter as PostgreSQL JSONB type.

The value should be a valid JSON string that will be stored in binary format in PostgreSQL. JSONB is more efficient for querying and indexing compared to JSON.

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.