rom-rb / rom

Data mapping and persistence toolkit for Ruby
https://rom-rb.org
MIT License
2.08k stars 161 forks source link

Dynamic mapper registry #405

Closed solnic closed 7 years ago

solnic commented 7 years ago

This cleans up registries and turn mapper registry into a dynamic registry that can compile and cache mappers on the fly. The second step after this is merged is to remove global mapper/struct caches and use a per-rom-container cache that we pass into compilers. The third step is to do the exact same thing with CommandRegistry, so that it can build commands on the fly and relations won't have to deal with command compilers.