private storageType: StorageType;
private orm: MikroORM | null;
- constructor(storageURI: string, logPrefix: string, storageType: StorageType) {
- super(storageURI, logPrefix);
+ constructor(storageUri: string, logPrefix: string, storageType: StorageType) {
+ super(storageUri, logPrefix);
this.storageType = storageType;
this.dbName = this.getDBName();
}
if (this.storageType === StorageType.SQLITE) {
return `${Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME}.db`;
}
- return this.storageURI.pathname.replace(/(?:^\/)|(?:\/$)/g, '') ?? Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME;
+ return this.storageUri.pathname.replace(/(?:^\/)|(?:\/$)/g, '') ?? Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME;
}
private getOptions(): Configuration<IDatabaseDriver<Connection>> | Options<IDatabaseDriver<Connection>> {
case StorageType.SQLITE:
case StorageType.MARIA_DB:
case StorageType.MYSQL:
- return this.storageURI.toString();
+ return this.storageUri.toString();
}
}
}