1. Ludia
  2. Untitled project
  3. dynamodb-mapper


Jean-Tiare Le Bigot  committed 6941442

updated inline doc

  • Participants
  • Parent commits c87369e
  • Branches default

Comments (0)

Files changed (1)

File dynamodb_mapper/transactions.py

View file
  • Ignore whitespace
     This class gracefully handles concurrent modifications and auto-retries but
     embeds no tool to rollback.
+    Transactions may register ``subtransactions``. This field is a list of
+    ``Transaction``. Sub-transactions are played after the main transactors
     Transactions status may be persisted for tracability, further analysis...
     for this purpose, a minimal schema is embedded in this base class. When
     deriving, you MUST keep
                 - modify the target object according to the transaction's parameters.
                 - save the (modified) target to the DB
+            - run sub-transactions (if any)
             - save the transaction to the DB
         Each transation may be retried up to ``MAX_RETRIES`` times automatically.