From 100a53019b2078cddf62f7654fa57f64c797b85d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 6 Dec 2021 23:55:44 +0100 Subject: [PATCH] Use camel case in more place MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/performance/storage/JSONFileStorage.ts | 2 +- src/performance/storage/MikroORMStorage.ts | 2 +- src/performance/storage/StorageFactory.ts | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) 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}`); -- 2.34.1