Files Coverage
src/cache/DbQueryResultCache.ts 88.70%
src/cache/QueryResultCacheFactory.ts 85.71%
src/cache/RedisQueryResultCache.ts 18.30%
src/cli.ts 0.00%
src/commands/CacheClearCommand.ts 0.00%
src/commands/CommandUtils.ts 50.00%
src/commands/EntityCreateCommand.ts 0.00%
src/commands/InitCommand.ts 0.00%
src/commands/MigrationCreateCommand.ts 0.00%
src/commands/MigrationGenerateCommand.ts 82.60%
src/commands/MigrationRevertCommand.ts 0.00%
src/commands/MigrationRunCommand.ts 0.00%
src/commands/MigrationShowCommand.ts 0.00%
src/commands/QueryCommand.ts 0.00%
src/commands/SchemaDropCommand.ts 0.00%
src/commands/SchemaLogCommand.ts 0.00%
src/commands/SchemaSyncCommand.ts 0.00%
src/commands/SubscriberCreateCommand.ts 0.00%
src/commands/VersionCommand.ts 0.00%
src/connection/Connection.ts 90.67%
src/connection/ConnectionManager.ts 90.90%
src/connection/ConnectionMetadataBuilder.ts 93.75%
src/connection/ConnectionOptionsReader.ts 76.84%
src/connection/options-reader/ConnectionOptionsEnvReader.ts 75.00%
src/connection/options-reader/ConnectionOptionsXmlReader.ts 25.00%
src/connection/options-reader/ConnectionOptionsYmlReader.ts 41.66%
src/container.ts 56.52%
src/decorator/Check.ts 88.88%
src/decorator/EntityRepository.ts 100.00%
src/decorator/Exclusion.ts 88.88%
src/decorator/Generated.ts 100.00%
src/decorator/Index.ts 100.00%
src/decorator/Unique.ts 61.11%
src/decorator/columns/Column.ts 96.55%
src/decorator/columns/CreateDateColumn.ts 100.00%
src/decorator/columns/DeleteDateColumn.ts 100.00%
src/decorator/columns/ObjectIdColumn.ts 100.00%
src/decorator/columns/PrimaryColumn.ts 91.30%
src/decorator/columns/PrimaryGeneratedColumn.ts 100.00%
src/decorator/columns/UpdateDateColumn.ts 100.00%
src/decorator/columns/VersionColumn.ts 100.00%
src/decorator/columns/ViewColumn.ts 100.00%
src/decorator/entity-view/ViewEntity.ts 100.00%
src/decorator/entity/ChildEntity.ts 100.00%
src/decorator/entity/Entity.ts 100.00%
src/decorator/entity/TableInheritance.ts 100.00%
src/decorator/listeners/AfterInsert.ts 60.00%
src/decorator/listeners/AfterLoad.ts 100.00%
src/decorator/listeners/AfterRemove.ts 100.00%
src/decorator/listeners/AfterUpdate.ts 100.00%
src/decorator/listeners/BeforeInsert.ts 100.00%
src/decorator/listeners/BeforeRemove.ts 60.00%
src/decorator/listeners/BeforeUpdate.ts 100.00%
src/decorator/listeners/EventSubscriber.ts 100.00%
src/decorator/relations/JoinColumn.ts 100.00%
src/decorator/relations/JoinTable.ts 100.00%
src/decorator/relations/ManyToMany.ts 100.00%
src/decorator/relations/ManyToOne.ts 100.00%
src/decorator/relations/OneToMany.ts 100.00%
src/decorator/relations/OneToOne.ts 100.00%
src/decorator/relations/RelationCount.ts 100.00%
src/decorator/relations/RelationId.ts 100.00%
src/decorator/transaction/Transaction.ts 83.33%
src/decorator/transaction/TransactionManager.ts 100.00%
src/decorator/transaction/TransactionRepository.ts 87.50%
src/decorator/tree/Tree.ts 100.00%
src/decorator/tree/TreeChildren.ts 100.00%
src/decorator/tree/TreeLevelColumn.ts 100.00%
src/decorator/tree/TreeParent.ts 100.00%
src/driver/DriverFactory.ts 72.41%
src/driver/DriverUtils.ts 97.50%
src/driver/Query.ts 100.00%
src/driver/SqlInMemory.ts 100.00%
src/driver/aurora-data-api-pg/AuroraDataApiPostgresDriver.ts 44.82%
src/driver/aurora-data-api-pg/AuroraDataApiPostgresQueryRunner.ts 25.49%
src/driver/aurora-data-api/AuroraDataApiConnection.ts 0.00%
src/driver/aurora-data-api/AuroraDataApiDriver.ts 15.04%
src/driver/aurora-data-api/AuroraDataApiQueryRunner.ts 10.37%
src/driver/better-sqlite3/BetterSqlite3Driver.ts 92.00%
src/driver/better-sqlite3/BetterSqlite3QueryRunner.ts 90.74%
src/driver/cockroachdb/CockroachDriver.ts 92.30%
src/driver/cockroachdb/CockroachQueryRunner.ts 72.54%
src/driver/cordova/CordovaDriver.ts 26.31%
src/driver/cordova/CordovaQueryRunner.ts 22.85%
src/driver/expo/ExpoDriver.ts 21.62%
src/driver/expo/ExpoQueryRunner.ts 20.68%
src/driver/mongodb/MongoDriver.ts 79.80%
src/driver/mongodb/MongoQueryRunner.ts 59.02%
src/driver/mongodb/typings.ts 100.00%
src/driver/mysql/MysqlDriver.ts 93.10%
src/driver/mysql/MysqlQueryRunner.ts 88.02%
src/driver/nativescript/NativescriptDriver.ts 26.82%
src/driver/nativescript/NativescriptQueryRunner.ts 22.85%
src/driver/oracle/OracleDriver.ts 88.60%
src/driver/oracle/OracleQueryRunner.ts 90.03%
src/driver/postgres/PostgresDriver.ts 92.92%
src/driver/postgres/PostgresQueryRunner.ts 91.29%
src/driver/react-native/ReactNativeDriver.ts 26.31%
src/driver/react-native/ReactNativeQueryRunner.ts 22.85%
src/driver/sap/SapDriver.ts 14.34%
src/driver/sap/SapQueryRunner.ts 9.43%
src/driver/sqlite-abstract/AbstractSqliteDriver.ts 94.50%
src/driver/sqlite-abstract/AbstractSqliteQueryRunner.ts 92.04%
src/driver/sqlite/SqliteDriver.ts 94.23%
src/driver/sqlite/SqliteQueryRunner.ts 87.50%
src/driver/sqljs/SqljsDriver.ts 74.28%
src/driver/sqljs/SqljsQueryRunner.ts 95.00%
src/driver/sqlserver/MssqlParameter.ts 100.00%
src/driver/sqlserver/SqlServerDriver.ts 91.00%
src/driver/sqlserver/SqlServerQueryRunner.ts 88.36%
src/entity-manager/EntityManager.ts 92.81%
src/entity-manager/EntityManagerFactory.ts 100.00%
src/entity-manager/MongoEntityManager.ts 68.45%
src/entity-manager/SqljsEntityManager.ts 100.00%
src/entity-schema/EntitySchema.ts 100.00%
src/entity-schema/EntitySchemaOptions.ts 0.00%
src/entity-schema/EntitySchemaTransformer.ts 83.69%
src/error/AlreadyHasActiveConnectionError.ts 28.57%
src/error/CannotAttachTreeChildrenEntityError.ts 28.57%
src/error/CannotConnectAlreadyConnectedError.ts 100.00%
src/error/CannotCreateEntityIdMapError.ts 20.00%
src/error/CannotDetermineEntityError.ts 100.00%
src/error/CannotExecuteNotConnectedError.ts 100.00%
src/error/CannotGetEntityManagerNotConnectedError.ts 28.57%
src/error/CannotReflectMethodParameterTypeError.ts 28.57%
src/error/CircularRelationsError.ts 100.00%
src/error/ColumnTypeUndefinedError.ts 28.57%
src/error/ConnectionIsNotSetError.ts 28.57%
src/error/ConnectionNotFoundError.ts 100.00%
src/error/CustomRepositoryCannotInheritRepositoryError.ts 28.57%
src/error/CustomRepositoryDoesNotHaveEntityError.ts 28.57%
src/error/CustomRepositoryNotFoundError.ts 28.57%
src/error/DataTypeNotSupportedError.ts 25.00%
src/error/DriverOptionNotSetError.ts 28.57%
src/error/DriverPackageNotInstalledError.ts 28.57%
src/error/EntityColumnNotFound.ts 100.00%
src/error/EntityMetadataNotFoundError.ts 20.00%
src/error/EntityNotFoundError.ts 90.00%
src/error/FindRelationsNotFoundError.ts 87.50%
src/error/InitializedRelationError.ts 100.00%
src/error/InsertValuesMissingError.ts 0.00%
src/error/LimitOnUpdateNotSupportedError.ts 0.00%
src/error/LockNotSupportedOnGivenDriverError.ts 0.00%
src/error/MetadataAlreadyExistsError.ts 0.00%
src/error/MetadataWithSuchNameAlreadyExistsError.ts 0.00%
src/error/MissingDeleteDateColumnError.ts 100.00%
src/error/MissingDriverError.ts 28.57%
src/error/MissingJoinColumnError.ts 0.00%
src/error/MissingJoinTableError.ts 0.00%
src/error/MissingPrimaryColumnError.ts 28.57%
src/error/MustBeEntityError.ts 100.00%
src/error/NamingStrategyNotFoundError.ts 0.00%
src/error/NoConnectionForRepositoryError.ts 28.57%
src/error/NoConnectionOptionError.ts 33.33%
src/error/NoNeedToReleaseEntityManagerError.ts 0.00%
src/error/NoVersionOrUpdateDateColumnError.ts 100.00%
src/error/OffsetWithoutLimitNotSupportedError.ts 0.00%
src/error/OptimisticLockCanNotBeUsedError.ts 0.00%
src/error/OptimisticLockVersionMismatchError.ts 100.00%
src/error/PersistedEntityNotFoundError.ts 0.00%
src/error/PessimisticLockTransactionRequiredError.ts 0.00%
src/error/PrimaryColumnCannotBeNullableError.ts 28.57%
src/error/QueryFailedError.ts 100.00%
src/error/QueryRunnerAlreadyReleasedError.ts 0.00%
src/error/QueryRunnerProviderAlreadyReleasedError.ts 0.00%
src/error/RepositoryNotFoundError.ts 80.00%
src/error/RepositoryNotTreeError.ts 73.33%
src/error/ReturningStatementNotSupportedError.ts 0.00%
src/error/SubjectRemovedAndUpdatedError.ts 28.57%
src/error/SubjectWithoutIdentifierError.ts 28.57%
src/error/TransactionAlreadyStartedError.ts 0.00%
src/error/TransactionNotStartedError.ts 0.00%
src/error/TreeRepositoryNotSupportedError.ts 28.57%
src/error/UpdateValuesMissingError.ts 0.00%
src/error/UsingJoinColumnIsNotAllowedError.ts 0.00%
src/error/UsingJoinColumnOnlyOnOneSideAllowedError.ts 0.00%
src/error/UsingJoinTableIsNotAllowedError.ts 0.00%
src/error/UsingJoinTableOnlyOnOneSideAllowedError.ts 0.00%
src/find-options/FindOperator.ts 97.29%
src/find-options/FindOptionsUtils.ts 89.70%
src/find-options/operator/Any.ts 100.00%
src/find-options/operator/Between.ts 100.00%
src/find-options/operator/Equal.ts 100.00%
src/find-options/operator/ILike.ts 100.00%
src/find-options/operator/In.ts 100.00%
src/find-options/operator/IsNull.ts 100.00%
src/find-options/operator/LessThan.ts 100.00%
src/find-options/operator/LessThanOrEqual.ts 100.00%
src/find-options/operator/Like.ts 100.00%
src/find-options/operator/MoreThan.ts 100.00%
src/find-options/operator/MoreThanOrEqual.ts 100.00%
src/find-options/operator/Not.ts 100.00%
src/find-options/operator/Raw.ts 100.00%
src/index.ts 92.85%
src/logger/AdvancedConsoleLogger.ts 45.00%
src/logger/DebugLogger.ts 20.40%
src/logger/FileLogger.ts 54.16%
src/logger/LoggerFactory.ts 55.00%
src/logger/SimpleConsoleLogger.ts 30.76%
src/metadata-args/MetadataArgsStorage.ts 99.03%
src/metadata-builder/ClosureJunctionEntityMetadataBuilder.ts 100.00%
src/metadata-builder/EntityMetadataBuilder.ts 98.41%
src/metadata-builder/EntityMetadataValidator.ts 88.09%
src/metadata-builder/JunctionEntityMetadataBuilder.ts 97.64%
src/metadata-builder/MetadataUtils.ts 100.00%
src/metadata-builder/RelationJoinColumnBuilder.ts 98.14%
src/metadata/CheckMetadata.ts 100.00%
src/metadata/ColumnMetadata.ts 96.98%
src/metadata/EmbeddedMetadata.ts 98.76%
src/metadata/EntityListenerMetadata.ts 95.65%
src/metadata/EntityMetadata.ts 98.69%
src/metadata/ExclusionMetadata.ts 100.00%
src/metadata/ForeignKeyMetadata.ts 100.00%
src/metadata/IndexMetadata.ts 95.31%
src/metadata/RelationCountMetadata.ts 93.33%
src/metadata/RelationIdMetadata.ts 95.83%
src/metadata/RelationMetadata.ts 91.77%
src/metadata/UniqueMetadata.ts 82.97%
src/metadata/types/EventListenerTypes.ts 100.00%
src/migration/Migration.ts 100.00%
src/migration/MigrationExecutor.ts 78.01%
src/naming-strategy/DefaultNamingStrategy.ts 96.55%
src/persistence/EntityPersistExecutor.ts 98.41%
src/persistence/Subject.ts 98.82%
src/persistence/SubjectChangedColumnsComputer.ts 80.20%
src/persistence/SubjectDatabaseEntityLoader.ts 94.11%
src/persistence/SubjectExecutor.ts 89.18%
src/persistence/SubjectTopoligicalSorter.ts 97.64%
src/persistence/subject-builder/CascadesSubjectBuilder.ts 97.36%
src/persistence/subject-builder/ManyToManySubjectBuilder.ts 94.80%
src/persistence/subject-builder/OneToManySubjectBuilder.ts 95.55%
src/persistence/subject-builder/OneToOneInverseSideSubjectBuilder.ts 84.21%
src/persistence/tree/ClosureSubjectExecutor.ts 95.12%
src/persistence/tree/MaterializedPathSubjectExecutor.ts 100.00%
src/persistence/tree/NestedSetSubjectExecutor.ts 96.55%
src/platform/PlatformTools.ts 70.45%
src/query-builder/Alias.ts 93.33%
src/query-builder/Brackets.ts 100.00%
src/query-builder/DeleteQueryBuilder.ts 90.47%
src/query-builder/InsertQueryBuilder.ts 96.47%
src/query-builder/JoinAttribute.ts 86.30%
src/query-builder/QueryBuilder.ts 89.24%
src/query-builder/QueryBuilderUtils.ts 90.90%
src/query-builder/QueryExpressionMap.ts 93.12%
src/query-builder/RelationIdLoader.ts 6.81%
src/query-builder/RelationLoader.ts 85.14%
src/query-builder/RelationQueryBuilder.ts 79.66%
src/query-builder/RelationRemover.ts 100.00%
src/query-builder/RelationUpdater.ts 98.30%
src/query-builder/ReturningResultsEntityUpdator.ts 97.40%
src/query-builder/SelectQueryBuilder.ts 90.42%
src/query-builder/SoftDeleteQueryBuilder.ts 77.59%
src/query-builder/UpdateQueryBuilder.ts 85.15%
src/query-builder/relation-count/RelationCountAttribute.ts 70.27%
src/query-builder/relation-count/RelationCountLoader.ts 96.61%
...query-builder/relation-count/RelationCountMetadataToAttributeTransformer.ts 100.00%
src/query-builder/relation-id/RelationIdAttribute.ts 82.85%
src/query-builder/relation-id/RelationIdLoader.ts 96.51%
src/query-builder/relation-id/RelationIdMetadataToAttributeTransformer.ts 100.00%
src/query-builder/result/DeleteResult.ts 100.00%
src/query-builder/result/InsertResult.ts 100.00%
src/query-builder/result/UpdateResult.ts 100.00%
src/query-builder/transformer/DocumentToEntityTransformer.ts 89.36%
src/query-builder/transformer/PlainObjectToDatabaseEntityTransformer.ts 98.43%
src/query-builder/transformer/PlainObjectToNewEntityTransformer.ts 97.29%
src/query-builder/transformer/RawSqlResultsToEntityTransformer.ts 97.87%
src/query-runner/BaseQueryRunner.ts 91.47%
src/repository/AbstractRepository.ts 37.50%
src/repository/BaseEntity.ts 69.23%
src/repository/MongoRepository.ts 62.06%
src/repository/Repository.ts 100.00%
src/repository/RepositoryFactory.ts 100.00%
src/repository/TreeRepository.ts 83.03%
src/schema-builder/MongoSchemaBuilder.ts 84.21%
src/schema-builder/RdbmsSchemaBuilder.ts 93.87%
src/schema-builder/table/Table.ts 99.16%
src/schema-builder/table/TableCheck.ts 100.00%
src/schema-builder/table/TableColumn.ts 100.00%
src/schema-builder/table/TableExclusion.ts 100.00%
src/schema-builder/table/TableForeignKey.ts 100.00%
src/schema-builder/table/TableIndex.ts 100.00%
src/schema-builder/table/TableUnique.ts 100.00%
src/schema-builder/util/TableUtils.ts 100.00%
src/schema-builder/view/View.ts 91.66%
src/subscriber/Broadcaster.ts 69.53%
src/subscriber/BroadcasterResult.ts 100.00%
src/util/ApplyValueTransformers.ts 100.00%
src/util/DateUtils.ts 85.39%
src/util/DepGraph.ts 56.43%
src/util/DirectoryExportedClassesLoader.ts 84.84%
src/util/ObjectUtils.ts 100.00%
src/util/OrmUtils.ts 78.67%
src/util/RandomGenerator.ts 100.00%
src/util/StringUtils.ts 84.37%
src/util/VersionUtils.ts 100.00%
Project Totals (295 files) 74.69%
Loading