class Aquamarine::InMemoryRepository

Defined in:

aquamarine/in_memory_repository.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add_to_stream(event, stream, include_global) #

[View source]
def append(event, stream, include_global) #

[View source]
def append(event, include_global) #

[View source]
def append_to_stream(events : Array(Aquamarine::SerializedRecord), stream) #

[View source]
def append_to_stream(event, stream) #

[View source]
def delete_stream(stream) #

[View source]
def global : Array(Aquamarine::SerializedRecord) #

[View source]
def link_to_stream(event_ids : Array(UUID), stream) #

[View source]
def normalize_to_array(event) #

[View source]
def read(query) #

[View source]
def read_event(event_id : UUID) #

[View source]
def stream_of(name) #

[View source]
def streams : Hash(String | Symbol | UUID, Array(Aquamarine::Event | Aquamarine::SerializedRecord)) #

[View source]