Constructor

PgsqlTransactionnew

Declaration

DexFuture*
pgsql_transaction_new (
  PgsqlConnection* connection
)

Description

Creates a new transaction on connection.

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

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