Class: EventSourcery::Postgres::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/event_sourcery/postgres/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



18
19
20
21
22
23
24
25
26
27
# File 'lib/event_sourcery/postgres/config.rb', line 18

def initialize
  @lock_table_to_guarantee_linear_sequence_id_growth = true
  @write_events_function_name = 'writeEvents'
  @events_table_name = :events
  @aggregates_table_name = :aggregates
  @tracker_table_name = :projector_tracker
  @callback_interval_if_no_new_events = 10
  @event_store_database = nil
  @auto_create_projector_tracker = true
end

Instance Attribute Details

#aggregates_table_nameObject

Returns the value of attribute aggregates_table_name.



4
5
6
# File 'lib/event_sourcery/postgres/config.rb', line 4

def aggregates_table_name
  @aggregates_table_name
end

#auto_create_projector_trackerObject

Returns the value of attribute auto_create_projector_tracker.



4
5
6
# File 'lib/event_sourcery/postgres/config.rb', line 4

def auto_create_projector_tracker
  @auto_create_projector_tracker
end

#callback_interval_if_no_new_eventsObject

Returns the value of attribute callback_interval_if_no_new_events.



4
5
6
# File 'lib/event_sourcery/postgres/config.rb', line 4

def callback_interval_if_no_new_events
  @callback_interval_if_no_new_events
end

#event_sinkObject

Returns the value of attribute event_sink.



4
5
6
# File 'lib/event_sourcery/postgres/config.rb', line 4

def event_sink
  @event_sink
end

#event_sourceObject

Returns the value of attribute event_source.



4
5
6
# File 'lib/event_sourcery/postgres/config.rb', line 4

def event_source
  @event_source
end

#event_storeObject

Returns the value of attribute event_store.



4
5
6
# File 'lib/event_sourcery/postgres/config.rb', line 4

def event_store
  @event_store
end

#event_store_databaseObject

Returns the value of attribute event_store_database.



4
5
6
# File 'lib/event_sourcery/postgres/config.rb', line 4

def event_store_database
  @event_store_database
end

#event_trackerObject

Returns the value of attribute event_tracker.



4
5
6
# File 'lib/event_sourcery/postgres/config.rb', line 4

def event_tracker
  @event_tracker
end

#events_table_nameObject

Returns the value of attribute events_table_name.



4
5
6
# File 'lib/event_sourcery/postgres/config.rb', line 4

def events_table_name
  @events_table_name
end

#lock_table_to_guarantee_linear_sequence_id_growthObject

Returns the value of attribute lock_table_to_guarantee_linear_sequence_id_growth.



4
5
6
# File 'lib/event_sourcery/postgres/config.rb', line 4

def lock_table_to_guarantee_linear_sequence_id_growth
  @lock_table_to_guarantee_linear_sequence_id_growth
end

#projections_databaseObject

Returns the value of attribute projections_database.



4
5
6
# File 'lib/event_sourcery/postgres/config.rb', line 4

def projections_database
  @projections_database
end

#tracker_table_nameObject

Returns the value of attribute tracker_table_name.



4
5
6
# File 'lib/event_sourcery/postgres/config.rb', line 4

def tracker_table_name
  @tracker_table_name
end

#write_events_function_nameObject

Returns the value of attribute write_events_function_name.



4
5
6
# File 'lib/event_sourcery/postgres/config.rb', line 4

def write_events_function_name
  @write_events_function_name
end