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