Hanami components are decoupled from each other.
This level of separation allows you to use the ORM (data layer) of your choice.
Here's how to do it:
Edit your Gemfile:
Add the gem(s) for your ORM.
Run bundle install.
Remove folders that are no longer needed:
Remove lib/project_name/entities/ and lib/projectname/repositories/
Remove spec/project_name/entities/ and spec/project_name/repositories/.
Remove require 'hanami/model'
Remove require_relative '../lib/projectname'
Remove model block in Hanami.configure
Remove require 'hanami/rake_tasks'.
In general, lib/project_name/ is a good place to put code that's used across
apps, so we don't recommend getting rid of it entirely. That's also where
Hanami's mailers live. We recommend that you put your new ORM code into that
folder, but you're free to put it elsewhere, and get rid of lib/ entirely, if