Skip to content

Commit

Permalink
Merge b4c8dad into f1042a0
Browse files Browse the repository at this point in the history
  • Loading branch information
memowe committed Nov 21, 2018
2 parents f1042a0 + b4c8dad commit b9a6b32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ WriteMakefile(
'Data::Compare' => '1.25',
'Data::Dump' => '1.23',
'UUID::Tiny' => '1.04',
'YAML::XS' => '0.75',
},
TEST_REQUIRES => {
'Test::Pod' => '1.52',
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ $store->store_event(UserAdded => {id => 17, name => 'Bob'});
say 'His name is ' . $store->snapshot->state->{users}{17}{name}; # Bob
```

**ATTENTION**: From version 0.6 on the serialization format is changed from [Storable][] to [YAML][]. Use [convert_storable_to_yaml.pl][script] to use your old event store with newer versions.

[Storable]: https://metacpan.org/pod/Storable
[YAML]: https://metacpan.org/pod/YAML::XS
[script]: convert_storable_to_yaml.pl

## Intro

In Event Sourcing, the state of a system is calculated as the application of a stream of events representing each change of the system. This framework is a minimal approach to use these mechanics in simple perl systems.
Expand Down

0 comments on commit b9a6b32

Please sign in to comment.