API Reference

Persistent Types

Storages

Single File

Client/Server Model

In-Memory for Testing

Connection Pool

Connections

Transactions

transaction.begin()

Begin a new transaction in the default manager.

transaction.commit()

Commit the current transaction in the default manager.

transaction.abort()

Abort the current transaction in the default manager.

transaction.doom()

Doom the current transaction in the default manager.

transaction.isDoomed()

Check if the current transaction in the default manager is doomed.

transaction.savepoint(optimistic=False)

Create a savepoint from the current transaction in the default manager.

If the optimistic argument is true, then data managers that don’t support savepoints can be used, but an error will be raised if the savepoint is rolled back.

An ISavepoint object is returned.

transaction.get()

Get the current transaction from the default manager.

transaction.manager

Default transaction manager.

Type :ThreadTransactionManager

Errors

Interfaces

blog comments powered by Disqus

Table Of Contents

Previous topic

Transactions

This Page