Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I want to revisit the subject of sequel ORM support that was started in this issue: #1006
There is a PR that was started quite some time ago with an attempt to do so.
I copied a lot of the code for fixtures setup and models definitionsI cherry picked as many commits as I could from the original PR so kudos for @Aryk for starting this. I didn't want to start from that PR as some of the code is outdated and I wanted to start from database setup only (no core changes yet).I want to start draft PR early for any suggestions that you may have and I want to discuss changes early to avoid pushing a lot of code. I am not sure what is the direction I want to go but I think I would like to change inheritance to composition and just delegate methods from
Resource
to object representing "active relation" or "sequel dataset" instead of inheriting from it. What do you think?