Transaction

../../_images/ERD_transaction.drawio.png

Abstract classes

pydantic model crudcreator.transaction.AbstractTransactionManager.AbstractTransactionManager[source]

Initiates and terminates CRUD transactions.

begin() AbstractTransaction[source]

Context manager that yields a new CRUD transaction.

Return type:

AbstractTransaction



pydantic model crudcreator.transaction.AbstractTransaction.AbstractTransaction[source]

Represents a CRUD transaction in progress.

Concrete classes

pydantic model crudcreator.transaction.sql.SQLTransactionManager.SQLTransactionManager[source]

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

field engine_wrapper: AbstractSQLEngineWrapper [Required][source]

The object through which to interact with the SQL database.

begin() SQLTransaction[source]

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

Return type:

SQLTransaction



pydantic model crudcreator.transaction.sql.SQLTransaction.SQLTransaction[source]

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

field sqlalchemy_connection_wrapper: AbstractSQLConnectionWrapper [Required][source]

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.