Constructor

PgsqlBatchnew

Declaration

DexFuture*
pgsql_batch_new (
  PgsqlConnection* connection
)

Description

Creates a new batch operation on connection. This enters pipeline mode and allows sending multiple queries without waiting for each to complete.

Parameters

connection

Type: PgsqlConnection

A PgsqlConnection.

The data is owned by the caller of the function.

Return value

Type: DexFuture

A DexFuture that resolves to a PgsqlBatch or rejects with error.

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