Transaction

../_images/ERD_transaction.drawio.png

Abstract classes

pydantic model crudcreator.transaction.AbstractTransactionManager.AbstractTransactionManager

Initiates and terminates CRUD transactions.

begin() AbstractTransaction

Context manager that yields a new CRUD transaction.

Return type:

AbstractTransaction



pydantic model crudcreator.transaction.AbstractTransaction.AbstractTransaction

Represents a CRUD transaction in progress.

Concrete classes

pydantic model crudcreator.transaction.sql.SQLTransactionManager.SQLTransactionManager

Used to initiate and terminate CRUD transactions whose source is an SQL database.

field engine_wrapper: AbstractSQLEngineWrapper [Required]

The object through which to interact with the SQL database.

begin() SQLTransaction

Context manager that yields a new CRUD transaction whose source is an SQL database.

Return type:

SQLTransaction



pydantic model crudcreator.transaction.sql.SQLTransaction.SQLTransaction

Represents a CRUD transaction in progress, whose source is an SQL database.

field sqlalchemy_connection_wrapper: AbstractSQLConnectionWrapper [Required]

The object used to interact with the SQL connection associated with the transaction. Is used by the SQLRequestExecutor module to execute the SQL query resulting from the CRUD request.