Method

PgsqlTransactionquery

Declaration

DexFuture*
pgsql_transaction_query (
  PgsqlTransaction* self,
  const char* sql,
  PgsqlParams* params
)

Description

Runs sql using params within the transaction.

Parameters

sql

Type: const char*

The sql to run.

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 a PgsqlResult or rejects with error.

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