Module xdynamo.resources

Classes

class DynBatch

Allows one to batch bulk updates/deletes (via dynamo put/delete-item) with a context manager. You can bulk-delete/update currently via:

  • DynClient.delete_objs
  • DynClient.update_objs

But if you want to combine a number of separate update/delete object calls (including with other calls to DynClient.delete_objs / DynClient.update_objs) into the same request(s), this class allows you to do that.

For example code, see Batch Updating Deleting.

Expand source code
class DynBatch(_DynBatcher):
    """
    Allows one to batch bulk updates/deletes (via dynamo put/delete-item) with a context manager.
    You can bulk-delete/update currently via:

    - `DynClient.delete_objs`
    - `DynClient.update_objs`

    But if you want to combine a number of separate update/delete object calls
    (including with other calls to `DynClient.delete_objs` / `DynClient.update_objs`)
    into the same request(s), this class allows you to do that.

    For example code, see [Batch Updating Deleting](#batch-updating-deleting).
    """
    pass

Ancestors

  • xdynamo.resources._DynBatcher
class DynTransaction

TODO

In the future, there will be a class called DynTransaction that you can use to batch transactions together. It would also allow bulk-partial updating/patching objects instead of using 'puts' to replace entire object. And to tie a set of objects together that must all be written or rolled back in one go.

Expand source code
class DynTransaction(_DynBatcher):
    """
    .. todo:: In the future, there will be a class called `DynTransaction` that you can use to
        batch transactions together. It would also allow bulk-partial updating/patching objects
        instead of using 'puts' to replace entire object. And to tie a set of objects together
        that must all be written or rolled back in one go.
    """
    pass

Ancestors

  • xdynamo.resources._DynBatcher