isInTransaction

val isInTransaction: StateFlow<Boolean>

True if a transaction is active on the geodatabase, false otherwise. A transaction manages a series of geodatabase edits as a single unit of work. You can start a transaction by calling Geodatabase.beginTransaction(). All edits made after this call are part of the transaction.

A geodatabase transaction stays active until you end it by calling Geodatabase.commitTransaction() or Geodatabase.rollbackTransaction(). Geodatabase.commitTransaction() saves all edits in the transaction to the geodatabase and ends the transaction. Geodatabase.rollbackTransaction() discards all edits in the transaction and ends the transaction.

If the app unexpectedly disconnects from the database, any active transaction will be rolled back. If the app crashes, or the user closes the app without saving edits, the transaction will be rolled back and the edits discarded.

Since

200.1.0

See also