config/database.rb
# frozen_string_literal: true
EventSourcery::Postgres.configure do |config|
database = Sequel.connect(Roost.config.database_url)
# NOTE: Often we choose to split our events and projections into separate
# databases. For the purposes of this example we'll use one.
config.event_store_database = database
config.projections_database = database
end