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