event_store 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -3
- data/lib/event_store/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -41,6 +41,9 @@ EventStore.connect_db(redis_config, database_config) #The redis and database con
|
|
41
41
|
```ruby
|
42
42
|
client = EventStore::Client.new(aggregate_id)
|
43
43
|
|
44
|
+
# transactionally append an array events to an aggregate's event stream
|
45
|
+
client.append(events)
|
46
|
+
|
44
47
|
# Get a list of events representing a snapshot of the aggregate's current state (fast)
|
45
48
|
client.snapshot
|
46
49
|
|
@@ -56,9 +59,6 @@ client.event_stream_from(347, 1000)
|
|
56
59
|
# Get the last event for an aggregate
|
57
60
|
client.peek
|
58
61
|
|
59
|
-
# Append events to an aggregate's event stream
|
60
|
-
client.append(events, expected_version)
|
61
|
-
|
62
62
|
# Get the current version of an aggregate
|
63
63
|
client.version
|
64
64
|
|
data/lib/event_store/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED