Module: EventSourcery::Postgres::Projector::InstanceMethods

Defined in:
lib/event_sourcery/postgres/projector.rb

Overview

Instance methods for projector event processing and tracking.

Instance Method Summary collapse

Instance Method Details

#initialize(tracker: EventSourcery::Postgres.config.event_tracker, db_connection: EventSourcery::Postgres.config.projections_database, transaction_size: EventSourcery::Postgres.config.projector_transaction_size) ⇒ Object



23
24
25
26
27
28
29
# File 'lib/event_sourcery/postgres/projector.rb', line 23

def initialize(tracker: EventSourcery::Postgres.config.event_tracker,
               db_connection: EventSourcery::Postgres.config.projections_database,
               transaction_size: EventSourcery::Postgres.config.projector_transaction_size)
  @tracker = tracker
  @db_connection = db_connection
  @transaction_size = transaction_size
end