Sha256: 37be18f5bd537143a3ad403c862176309c64642c8473c2c460e2e847c515cb21

Contents?: true

Size: 424 Bytes

Versions: 8

Compression:

Stored size: 424 Bytes

Contents

module SandthornDriverSequel
  module EventStoreContext
    attr_reader :context
    def events_table_name
      with_context_if_exists :events
    end
    def aggregates_table_name
      with_context_if_exists :aggregates
    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

8 entries across 8 versions & 1 rubygems

Version Path
sandthorn_driver_sequel-3.2.1 lib/sandthorn_driver_sequel/event_store_context.rb
sandthorn_driver_sequel-3.2.0 lib/sandthorn_driver_sequel/event_store_context.rb
sandthorn_driver_sequel-3.1.0 lib/sandthorn_driver_sequel/event_store_context.rb
sandthorn_driver_sequel-3.0.0 lib/sandthorn_driver_sequel/event_store_context.rb
sandthorn_driver_sequel-2.1.1 lib/sandthorn_driver_sequel/event_store_context.rb
sandthorn_driver_sequel-2.1.0 lib/sandthorn_driver_sequel/event_store_context.rb
sandthorn_driver_sequel-2.0.1 lib/sandthorn_driver_sequel/event_store_context.rb
sandthorn_driver_sequel-2.0.0 lib/sandthorn_driver_sequel/event_store_context.rb