refactor: consistent arguments name in type utils
[e-mobility-charging-stations-simulator.git] / mikro-orm.config-template.ts
CommitLineData
66a7748d
JB
1import { dirname, join } from 'node:path'
2import { fileURLToPath } from 'node:url'
f412fe24 3
66a7748d 4import { TsMorphMetadataProvider } from '@mikro-orm/reflection'
f412fe24 5
66a7748d
JB
6import { PerformanceData, PerformanceRecord } from './src/types/index.js'
7import { Constants } from './src/utils/index.js'
ae8ee665
JB
8
9export 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}