Sha256: e5e843f9dbe6289b43bd6cd858a11d370fb4b77bec8712eb33610f4ea86d26c8
Contents?: true
Size: 346 Bytes
Versions: 2
Compression:
Stored size: 346 Bytes
Contents
module SandthornDriverSequel2 module EventStoreContext attr_reader :context def events_table_name with_context_if_exists :events end def snapshots_table_name with_context_if_exists :snapshots end def with_context_if_exists name name = "#{context}_#{name}".to_sym if context name end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sandthorn_driver_sequel_2-0.0.2 | lib/sandthorn_driver_sequel_2/event_store_context.rb |
sandthorn_driver_sequel_2-0.0.1 | lib/sandthorn_driver_sequel_2/event_store_context.rb |