hydra-node-0.22.0: The Hydra node
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Events.FileBased

Description

A file-based event source and sink using JSON encoding.

This is currently used as the main event source and sink in the hydra-node.

Synopsis

Documentation

mkFileBasedEventStore :: (ToJSON e, FromJSON e, HasEventId e) => FilePath -> PersistenceIncremental e IO -> IO (EventStore e IO) Source #

A basic file based event source and sink defined using a rotated PersistenceIncremental handle.