Internal API

Database transaction related functionality.

class atilla.transaction.DatabaseManager(session, *args, **kwargs)[source]

Database manager and thread-safe settings.

close()[source]

Close all database sessions.

commit()[source]

Commit and close the session.

Note:Rollback the session on error.
Raise:The exception is re-raised.
rollback()[source]

Rollback all database sessions.

atilla.transaction.create_db_manager(app, session)[source]

Create db manager and assign it on app.

Parameters:session – Session object