X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fperformance%2Fstorage%2FStorageFactory.ts;h=9da6b54e98fa1d181b9a8c982e0b9d365535fa9f;hb=17ba3be0bb5c0bcb7fff2cefa877af975c0d043a;hp=8753bea1159d863f83b6a08cf2f0b102039d3219;hpb=13a6f27c10768faa05acf33fd8e0637511d49e3e;p=e-mobility-charging-stations-simulator.git diff --git a/src/performance/storage/StorageFactory.ts b/src/performance/storage/StorageFactory.ts index 8753bea1..9da6b54e 100644 --- a/src/performance/storage/StorageFactory.ts +++ b/src/performance/storage/StorageFactory.ts @@ -3,6 +3,7 @@ import { JsonFileStorage } from './JsonFileStorage.js' import { MikroOrmStorage } from './MikroOrmStorage.js' import { MongoDBStorage } from './MongoDBStorage.js' +import { None } from './None.js' import type { Storage } from './Storage.js' import { BaseError } from '../../exception/index.js' import { StorageType } from '../../types/index.js' @@ -31,6 +32,9 @@ export class StorageFactory { case StorageType.MYSQL: storageInstance = new MikroOrmStorage(connectionUri, logPrefix, type) break + case StorageType.NONE: + storageInstance = new None() + break default: // eslint-disable-next-line @typescript-eslint/restrict-template-expressions throw new BaseError(`${logPrefix} Unknown storage type: ${type}`)