Commit | Line | Data |
---|---|---|
ae8ee665 JB |
1 | import Constants from './src/utils/Constants'; |
2 | import { PerformanceData } from './src/types/orm/entities/PerformanceData'; | |
3 | import { PerformanceRecord } from './src/types/orm/entities/PerformanceRecord'; | |
4 | import { TsMorphMetadataProvider } from '@mikro-orm/reflection'; | |
0d8140bd | 5 | import { fileURLToPath } from 'url'; |
ae8ee665 JB |
6 | import path from 'path'; |
7 | ||
8 | export default { | |
9 | metadataProvider: TsMorphMetadataProvider, | |
10 | entities: [PerformanceRecord, PerformanceData], | |
11 | type: 'sqlite', | |
e7aeea18 | 12 | clientUrl: `file://${path.join( |
0d8140bd | 13 | path.resolve(path.dirname(fileURLToPath(import.meta.url))), |
e7aeea18 JB |
14 | `${Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME}.db` |
15 | )}`, | |
ae8ee665 | 16 | }; |