Method

PgsqlBatchsend

Declaration

DexFuture*
pgsql_batch_send (
  PgsqlBatch* self,
  const char* sql,
  PgsqlParams* params
)

Description

Sends a query in the batch without waiting for results. The query is queued and will be executed as part of the pipeline.

Parameters

sql

Type: const char*

The sql to send.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
params

Type: PgsqlParams

Params for sql.

The argument can be NULL.
The data is owned by the caller of the method.

Return value

Type: DexFuture

A DexFuture that resolves to self or rejects with error.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.