class documentation

class _PutLedger:

Constructor: _PutLedger(entities)

View In Hierarchy

Accounts for each entity of one Client.put in its PutResult exactly once.

It also notes which entities have been accounted for, so that if the put stops part-way the rest can be reported as unsent.

Method __init__ Undocumented
Method record Account for every entity in batch according to outcome.
Method record_rest_unsent Report every entity not yet accounted for as unsent.
Instance Variable result Undocumented
Instance Variable _accounted Undocumented
Instance Variable _entities Undocumented
def __init__(self, entities: list[dict[str, Any]]):

Undocumented

def record(self, batch: list[dict[str, Any]], start: int, outcome: _BatchOutcome, error: Exception | None):

Account for every entity in batch according to outcome.

start is the position of the batch's first entity in the data passed to put.

def record_rest_unsent(self):

Report every entity not yet accounted for as unsent.

result =

Undocumented

_accounted =

Undocumented

_entities =

Undocumented