⌚ OpenOpeningstijden main server application
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

event_sourcery.rb 496B

123456789101112131415
  1. # frozen_string_literal: true
  2. ##
  3. # Configure the event sourcery databases.
  4. # This assumes they already exist!
  5. EventSourcery::Postgres.configure do |config|
  6. database = Sequel.connect(Hours.config.database_url)
  7. # NOTE: Often we choose to split our events and projections into separate
  8. # databases. For the purposes of this example we'll use one.
  9. config.event_store_database = database
  10. config.projections_database = database
  11. config.projections_database.extension :postgis_georuby
  12. end