Overview
TheRepository class is the heart of FluxCRUD’s data layer. It wraps SQLAlchemy operations into a clean, type-safe API that handles:
- Type Validation: Using Pydantic schemas.
- Caching: Automatic read-through and write-through caching.
- Batching: Optimized database writes.
- N+1 Prevention: Integrated DataLoader support.
Basic Usage
Advanced Features
Caching
WhenCacheManager is provided, get() calls check the cache first.
Batching
Use thebatch_writer context manager for high-performance inserts.

