Flockingbird/roost

View on GitHub
config/database.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# 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