- 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.
13 lines
489 B
TypeScript
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';
|