Simple persistence support for Hanami applications
Add this line to
group :cli do
gem "cerise-persistence"
end
## Usage
### Entity
Inherit entity classes like:
```rb
module Bookshelf
module Entities
class Book < Bookshelf::Entity
end
end
end
It is a subclass of ROM::Struct
.
Inherit repository classes like:
module Bookshelf
module Repositories
class BookRepo < Cerise::Repository[:books]
end
end
end
- provider
- generator
The gem is available as open source under the terms of the MIT License.