anymodel.mapper¶
Data mapper implementation for entity persistence.
This module provides the Mapper class which handles the persistence of entities to various storage backends while maintaining separation between domain logic and storage concerns.
Classes¶
- class anymodel.mapper.Mapper(entity_type=None, *, relations=None, storage, cache=None)[source]¶
Bases:
GenericMaps entities to storage backends.
The Mapper class handles all persistence operations for a specific entity type, including CRUD operations, identity mapping, and relation management.
- property fields¶
- property primary_key¶