From: Jérôme Benoit Date: Mon, 6 Dec 2021 22:55:44 +0000 (+0100) Subject: Use camel case in more place X-Git-Tag: v1.1.38~6 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=100a53019b2078cddf62f7654fa57f64c797b85d;p=e-mobility-charging-stations-simulator.git Use camel case in more place Signed-off-by: Jérôme Benoit --- diff --git a/src/performance/storage/JSONFileStorage.ts b/src/performance/storage/JSONFileStorage.ts index 9df7662a..9b016f06 100644 --- a/src/performance/storage/JSONFileStorage.ts +++ b/src/performance/storage/JSONFileStorage.ts @@ -7,7 +7,7 @@ import { Storage } from './Storage'; import fs from 'fs'; import lockfile from 'proper-lockfile'; -export class JSONFileStorage extends Storage { +export class JsonFileStorage extends Storage { private fd: number | null = null; constructor(storageUri: string, logPrefix: string) { diff --git a/src/performance/storage/MikroORMStorage.ts b/src/performance/storage/MikroORMStorage.ts index 0221a378..82bdd234 100644 --- a/src/performance/storage/MikroORMStorage.ts +++ b/src/performance/storage/MikroORMStorage.ts @@ -10,7 +10,7 @@ import Statistics from '../../types/Statistics'; import { Storage } from './Storage'; import { TsMorphMetadataProvider } from '@mikro-orm/reflection'; -export class MikroORMStorage extends Storage { +export class MikroOrmStorage extends Storage { private storageType: StorageType; private orm: MikroORM | null; diff --git a/src/performance/storage/StorageFactory.ts b/src/performance/storage/StorageFactory.ts index 619e7f5c..61fce12b 100644 --- a/src/performance/storage/StorageFactory.ts +++ b/src/performance/storage/StorageFactory.ts @@ -1,7 +1,7 @@ // Copyright Jerome Benoit. 2021. All Rights Reserved. -import { JSONFileStorage } from './JSONFileStorage'; -import { MikroORMStorage } from './MikroORMStorage'; +import { JsonFileStorage } from './JsonFileStorage'; +import { MikroOrmStorage } from './MikroOrmStorage'; import { MongoDBStorage } from './MongoDBStorage'; import { Storage } from './Storage'; import { StorageType } from '../../types/Storage'; @@ -15,7 +15,7 @@ export class StorageFactory { let storageInstance: Storage = null; switch (type) { case StorageType.JSON_FILE: - storageInstance = new JSONFileStorage(connectionUri, logPrefix); + storageInstance = new JsonFileStorage(connectionUri, logPrefix); break; case StorageType.MONGO_DB: storageInstance = new MongoDBStorage(connectionUri, logPrefix); @@ -23,7 +23,7 @@ export class StorageFactory { // case StorageType.MYSQL: // case StorageType.MARIA_DB: // case StorageType.SQLITE: - // storageInstance = new MikroORMStorage(connectionURI, logPrefix, type); + // storageInstance = new MikroOrmStorage(connectionURI, logPrefix, type); // break; default: throw new Error(`${logPrefix} Unknown storage type: ${type}`);