blueprinter icon indicating copy to clipboard operation
blueprinter copied to clipboard

Decoupled Abstraction Layer For ORMs/ODMs

Open mcclayton opened this issue 5 years ago • 1 comments

In general, I'd like to come up with a way to decouple Blueprinter from frameworks, ORMs/ODMs, etc. that would be nice for Blueprinter to support, but don't really make sense for Blueprinter to directly support out of the box.

i.e. Mongoid: https://github.com/procore/blueprinter/pull/150

An example of this would be that Blueprinter currently directly supports Active Record. I'd like to think through an architecture, specifically for the ORMs/ODMs where we can decouple ourselves and make Active Record a configurable default, similar to how we support https://github.com/procore/blueprinter#oj.

mcclayton avatar May 17 '19 17:05 mcclayton

Would love the ability to use this with Sequel also. I like the model of sister gems for compatibility. In the meantime I'm just monkey patching array_like?. Very suboptimal but it beats forking just to override a single line in the gem.

Having native support for this would be huge

jacquescrocker avatar Jun 16 '19 15:06 jacquescrocker

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Nov 11 '23 01:11 github-actions[bot]