Skip to contents

Detect whether the transaction is active for the given connection. A transaction might be started with dbBegin() or wrapped within DBI::dbWithTransaction().

Usage

postgresIsTransacting(conn)

Arguments

conn

a PqConnection object, produced by DBI::dbConnect()

Value

A boolean, indicating if a transaction is ongoing.