ROM::Environment.setup

Parsed documentation:
View on GitHub
Setup ROM environment

@example

  env = ROM::Environment.setup(test: 'memory://test') do
    schema do
      base_relation(:users) do
        repository :test

        attribute :id, Integer
        attribute :name, String

        key :id
      end
    end

    mapping do
      relation(:users) do
        model User

        map :id, :name
      end
    end

  end

@param [Environment, Hash<#to_sym, String>] config
  an environment or a hash of adapter uri strings,
  keyed by repository name

@return [Environment::Builder]

@api public
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.