pip_services3_data.IWriter module

pip_services3_data.IWriter

Interface for data writers.

copyright

Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details.

license

MIT, see LICENSE for more details.

class pip_services3_data.IWriter.IWriter

Bases: object

Interface for data processing components that can create, update and delete data items.

create(correlation_id: Optional[str], item: T) → T

Creates a data item.

Parameters
  • correlation_id – (optional) transaction id to trace execution through call chain.

  • item – an item to be created.

Returns

created item

delete_by_id(correlation_id: Optional[str], id: Any) → T

Deleted a data item by it’s unique id.

Parameters
  • correlation_id – (optional) transaction id to trace execution through call chain.

  • id – an id of the item to be deleted

Returns

deleted item.

update(correlation_id: Optional[str], item: T) → T

Updates a data item.

Parameters
  • correlation_id – (optional) transaction id to trace execution through call chain.

  • item – an item to be updated.

Returns

updated item