Skip to content

Simplify Mapper #533

@solnic

Description

@solnic

ROM::Mapper still exposes old DSL that is far worse than what ROM::Transformer provides (via Dry::Transformer). Furthermore, we still use mapper builders with all the mapping options to build transformers, which is extra complexity that we don't need anymore.

This should be done prior #531 because adding Identity Map will be simpler with a simplified mapping layer.

TODO

  • Remove ROM::Mapper and its usage
  • Remove ROM::Header and its usage
  • Rename ROM::Transformer => ROM::Mapper
  • Refactor ROM::MapperCompiler so that it turns relation AST into a dry-transformer function w/o any intermediate objects as we have now

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions