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