X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fperformance%2Fstorage%2FMikroOrmStorage.ts;h=e5b09b588b2a373ea14aa76854f9a3e5fc1df7f5;hb=03e9d27705d90abb583fddcd0cc94b585110c633;hp=47823c8052d94800f779f85bfe2e182c12f62396;hpb=60a743910478b70e39dcefa5e1b752ec8a93880e;p=e-mobility-charging-stations-simulator.git diff --git a/src/performance/storage/MikroOrmStorage.ts b/src/performance/storage/MikroOrmStorage.ts index 47823c80..e5b09b58 100644 --- a/src/performance/storage/MikroOrmStorage.ts +++ b/src/performance/storage/MikroOrmStorage.ts @@ -1,17 +1,23 @@ // Copyright Jerome Benoit. 2021-2023. All Rights Reserved. -import { Configuration, Connection, IDatabaseDriver, MikroORM, Options } from '@mikro-orm/core'; +import { + Configuration, + Connection, + type IDatabaseDriver, + MikroORM, + type Options, +} from '@mikro-orm/core'; import { TsMorphMetadataProvider } from '@mikro-orm/reflection'; +import { Storage } from './Storage'; import { - type MikroORMDBType, + type MikroOrmDbType, PerformanceData, PerformanceRecord, type Statistics, StorageType, } from '../../types'; import { Constants } from '../../utils'; -import { Storage } from '../internal'; export class MikroOrmStorage extends Storage { private storageType: StorageType; @@ -69,7 +75,7 @@ export class MikroOrmStorage extends Storage { return { metadataProvider: TsMorphMetadataProvider, entities: [PerformanceRecord, PerformanceData], - type: this.storageType as MikroORMDBType, + type: this.storageType as MikroOrmDbType, clientUrl: this.getClientUrl(), }; }