baroque.persistence package¶
Submodules¶
baroque.persistence.backend module¶
-
class
baroque.persistence.backend.PersistenceBackend¶ Bases:
object-
create(event)¶ Persists an event.
Parameters: event ( baroque.entities.event.Event) – the event to be persisted
-
delete(event_id)¶ Deletes an event.
Parameters: event_id (str) – the identifier of the event to be deleted
-
read(event_id)¶ Loads an event.
Parameters: event_id (str) – the identifier of the event to be loaded Returns: baroque.entities.event.Event
-
update(event)¶ Updates the event.
Parameters: event ( baroque.entities.event.Event) – the event to be updated
-
baroque.persistence.inmemory module¶
-
class
baroque.persistence.inmemory.DictBackend¶ Bases:
baroque.persistence.backend.PersistenceBackendAn in-memory
baroque.persistence.backend.ConfigurationBackend: implementation backed by Python dict-
clear()¶ Clears all the key-value pairs of this collection-like object.
-
create(event)¶
-
delete(event_id)¶
-
keys()¶ Gives the key set of this collection-like object.
Returns: set
-
read(event_id)¶
-
update(event)¶
-
values()¶ Gives the value set of this collection-like object.
Returns: set
-