Files
rxminder/services/database/index.ts
William Valentin 8541877290 refactor: implement database service with strategy pattern
- Add DatabaseService with MockDatabaseStrategy and ProductionDatabaseStrategy
- Use strategy pattern to switch between test and production database implementations
- Improve type safety and testability of database operations
- Update database seeder to use new database service architecture

This is the foundation for modernizing the database layer.
2025-09-08 11:30:58 -07:00

13 lines
489 B
TypeScript

// Database Service - Consolidated database access layer
// This module provides a unified interface for database operations
// using the strategy pattern to switch between mock and production implementations
export {
DatabaseService,
databaseService,
DatabaseError,
} from './DatabaseService';
export type { DatabaseStrategy } from './types';
export { MockDatabaseStrategy } from './MockDatabaseStrategy';
export { ProductionDatabaseStrategy } from './ProductionDatabaseStrategy';