postgresIsTransacting: Return whether a transaction is ongoing

View source: R/PqConnection.R

postgresIsTransactingR Documentation

Return whether a transaction is ongoing

Description

Detect whether the transaction is active for the given connection. A transaction might be started with DBI::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.


RPostgres documentation built on Feb. 6, 2026, 9:07 a.m.