Image for Data Mapper

Data Mapper

A Data Mapper is a design pattern used in software development that separates the way data is stored from how it’s used in the application. It acts as a translator, mapping data between the application's objects and the database or storage system. This allows developers to work with objects that are more intuitive and aligned with business logic, while the Data Mapper handles the details of saving and retrieving data in the underlying storage. Essentially, it keeps the application clean and independent from the storage structure, making systems easier to maintain and evolve.