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

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

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



19
20
21
22
23
24
25
# File 'lib/event_sourcery/postgres/projector.rb', line 19

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