Skip to content

incendium.db.TransactionManager

César Román edited this page Aug 25, 2026 · 3 revisions

Class TransactionManager

Description

Context manager for handling database transactions in a safe and convenient way.

This class manages the lifecycle of a database transaction, ensuring that transactions are properly committed or rolled back depending on whether an exception occurs within the context. It also handles transaction isolation level and timeout settings.

Syntax

TransactionManager([database], [isolation_level], [timeout])

Args:

  • database (str): The name of the database connection to use. If not specified, the project's default database is used. Optional.
  • isolation_level (int): The isolation level for the transaction. If not specified, the default isolation level is used. Optional.
  • timeout (int): The timeout for the transaction in seconds. If not specified, the default timeout is used. Optional.

Code Examples

See incendium.db.execute_non_query.

Wiki

Database & Data

Tag

Time & Date

Vision

UI

Communication

Core

Clone this wiki locally