Yeah, this is in the context of rom-sql. I was having trouble getting the
infer: true to load the schema to then coerce data. However, I’ve worked around that issue by explicitly defining the schema in the relation. Furthermore, this is also in the context of getting a test suite working, in terms of getting this to all work together.
I’ve been creating a rom-sql adapter for the RailsEventStore project to use their Event Sourcing model with ROM. This has been my first use of ROM to learn the framework. I have many more questions, but this project will provide some context for how I’ve got things to work: https://github.com/RailsEventStore/rails_event_store/tree/master/ruby_event_store_rom_sql
I just recently was trying to figure out how to specify a default mapper on a repository or a relation. Is that possible? The goal is to use the mapper to map entities to a custom class, but it seems I have to call
map_with in each repository method before returning a result?
Thanks for the help!