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