budosystems.storage.dict_repository.DictRepository

class DictRepository

Bases: Repository

Dictionary-based Repository

__init__() None

Abstract initializer that accepts arbitrary keyword arguments.

Implementations should specify more precisely those it needs.

Parameters:

kwargs – Keyword arguments used for initializing the repository.

load(entity_type: type[ET], entity_id: UUID) ET

See Repository.load

save(entity: Entity, save_option: SaveOption = SaveOption.create_or_update) None

See Repository.save

delete(entity_type: type[ET], entity_id: UUID, must_exist: bool = False) None

See Repository.delete

match(entity_type: type[ET], data: dict[str, Any]) list[ET]

See Repository.match

find_entities(query: Query) list[Entity]

See Repository.find_entities

find_data(query: Query) list[dict[str, Any]]

See Repository.find_data