pybotters.StoreChange

class pybotters.StoreChange(store: DataStore, operation: Literal['insert', 'update', 'delete'], source: Dict[str, Any] | None, data: Dict[str, Any])

DataStore の変更データクラス

store

変更対象の DataStore

Type:

pybotters.store.DataStore

operation

変更オペレーション

Type:

Literal['insert', 'update', 'delete']

source

変更に影響したデータ。 なければ None が格納されます

Type:

Dict[str, Any] | None

data

変更されたデータ

Type:

Dict[str, Any]

Usage example: watch

Methods

__init__(store, operation, source, data)

Attributes