Repository pattern என்பது data access-ஐ collection-போன்ற interface-ஆக மாற்றிப் பழங்குவது — business logic-ஐ data எவ்வாறு stored மற்றும் retrieved பண்ணப்படுகிறது என்பதிலிருந்து பிரிக்கின்றது. இது application-ஐ data sources (databases, APIs)-இலிருந்து decouple செய்கிறது, testability மற்றும் maintainability-ஐ மேம்படுத்துகிறது.
Repository pattern என்ன செய்கிறது
REPOSITORY → an abstraction layer between business logic and DATA ACCESS:
→ provides a clean interface (like a collection: findById, save, delete, findAll)
→ HIDES how/where data is actually stored (database, API, cache, files)
→ business logic uses the repository, NOT the database directly
→ separate WHAT data operations from HOW they're implemented
