Module: SandthornDriverSequel::EventStoreContext
- Included in:
- EventStore, Migration, Storage
- Defined in:
- lib/sandthorn_driver_sequel/event_store_context.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
- #aggregates_table_name ⇒ Object
- #events_table_name ⇒ Object
- #snapshots_table_name ⇒ Object
- #with_context_if_exists(name) ⇒ Object
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
3 4 5 |
# File 'lib/sandthorn_driver_sequel/event_store_context.rb', line 3 def context @context end |
Instance Method Details
#aggregates_table_name ⇒ Object
7 8 9 |
# File 'lib/sandthorn_driver_sequel/event_store_context.rb', line 7 def aggregates_table_name with_context_if_exists :aggregates end |
#events_table_name ⇒ Object
4 5 6 |
# File 'lib/sandthorn_driver_sequel/event_store_context.rb', line 4 def events_table_name with_context_if_exists :events end |
#snapshots_table_name ⇒ Object
10 11 12 |
# File 'lib/sandthorn_driver_sequel/event_store_context.rb', line 10 def snapshots_table_name with_context_if_exists :snapshots end |
#with_context_if_exists(name) ⇒ Object
13 14 15 16 |
# File 'lib/sandthorn_driver_sequel/event_store_context.rb', line 13 def with_context_if_exists name name = "#{context}_#{name}".to_sym if context name end |