#6982 fix: findRoots should get the defined primary key column

Merged Ilyas Foo ilyasfoo
Coverage Reach
driver/postgres/PostgresQueryRunner.ts driver/postgres/PostgresDriver.ts driver/sqlserver/SqlServerQueryRunner.ts driver/sqlserver/SqlServerDriver.ts driver/sqlserver/MssqlParameter.ts driver/sap/SapQueryRunner.ts driver/sap/SapDriver.ts driver/cockroachdb/CockroachQueryRunner.ts driver/cockroachdb/CockroachDriver.ts driver/mysql/MysqlQueryRunner.ts driver/mysql/MysqlDriver.ts driver/aurora-data-api/AuroraDataApiQueryRunner.ts driver/aurora-data-api/AuroraDataApiDriver.ts driver/aurora-data-api/AuroraDataApiConnection.ts driver/oracle/OracleQueryRunner.ts driver/oracle/OracleDriver.ts driver/sqlite-abstract/AbstractSqliteQueryRunner.ts driver/sqlite-abstract/AbstractSqliteDriver.ts driver/mongodb/MongoQueryRunner.ts driver/mongodb/MongoDriver.ts driver/mongodb/typings.ts driver/sqljs/SqljsDriver.ts driver/sqljs/SqljsQueryRunner.ts driver/better-sqlite3/BetterSqlite3QueryRunner.ts driver/better-sqlite3/BetterSqlite3Driver.ts driver/sqlite/SqliteDriver.ts driver/sqlite/SqliteQueryRunner.ts driver/expo/ExpoQueryRunner.ts driver/expo/ExpoDriver.ts driver/aurora-data-api-pg/AuroraDataApiPostgresQueryRunner.ts driver/aurora-data-api-pg/AuroraDataApiPostgresDriver.ts driver/nativescript/NativescriptDriver.ts driver/nativescript/NativescriptQueryRunner.ts driver/react-native/ReactNativeDriver.ts driver/react-native/ReactNativeQueryRunner.ts driver/cordova/CordovaDriver.ts driver/cordova/CordovaQueryRunner.ts driver/DriverFactory.ts driver/DriverUtils.ts driver/SqlInMemory.ts driver/Query.ts query-builder/SelectQueryBuilder.ts query-builder/QueryBuilder.ts query-builder/transformer/RawSqlResultsToEntityTransformer.ts query-builder/transformer/PlainObjectToDatabaseEntityTransformer.ts query-builder/transformer/DocumentToEntityTransformer.ts query-builder/transformer/PlainObjectToNewEntityTransformer.ts query-builder/InsertQueryBuilder.ts query-builder/UpdateQueryBuilder.ts query-builder/SoftDeleteQueryBuilder.ts query-builder/relation-id/RelationIdLoader.ts query-builder/relation-id/RelationIdAttribute.ts query-builder/relation-id/RelationIdMetadataToAttributeTransformer.ts query-builder/RelationIdLoader.ts query-builder/QueryExpressionMap.ts query-builder/relation-count/RelationCountLoader.ts query-builder/relation-count/RelationCountAttribute.ts query-builder/relation-count/RelationCountMetadataToAttributeTransformer.ts query-builder/DeleteQueryBuilder.ts query-builder/RelationLoader.ts query-builder/ReturningResultsEntityUpdator.ts query-builder/JoinAttribute.ts query-builder/RelationQueryBuilder.ts query-builder/RelationUpdater.ts query-builder/RelationRemover.ts query-builder/Alias.ts query-builder/QueryBuilderUtils.ts query-builder/result/InsertResult.ts query-builder/result/UpdateResult.ts query-builder/result/DeleteResult.ts query-builder/Brackets.ts persistence/SubjectExecutor.ts persistence/subject-builder/ManyToManySubjectBuilder.ts persistence/subject-builder/OneToManySubjectBuilder.ts persistence/subject-builder/CascadesSubjectBuilder.ts persistence/subject-builder/OneToOneInverseSideSubjectBuilder.ts persistence/SubjectChangedColumnsComputer.ts persistence/Subject.ts persistence/tree/ClosureSubjectExecutor.ts persistence/tree/NestedSetSubjectExecutor.ts persistence/tree/MaterializedPathSubjectExecutor.ts persistence/SubjectTopoligicalSorter.ts persistence/EntityPersistExecutor.ts persistence/SubjectDatabaseEntityLoader.ts metadata/ColumnMetadata.ts metadata/EntityMetadata.ts metadata/RelationMetadata.ts metadata/EmbeddedMetadata.ts metadata/IndexMetadata.ts metadata/UniqueMetadata.ts metadata/RelationIdMetadata.ts metadata/EntityListenerMetadata.ts metadata/ForeignKeyMetadata.ts metadata/RelationCountMetadata.ts metadata/CheckMetadata.ts metadata/ExclusionMetadata.ts metadata/types/EventListenerTypes.ts schema-builder/RdbmsSchemaBuilder.ts schema-builder/table/Table.ts schema-builder/table/TableColumn.ts schema-builder/table/TableForeignKey.ts schema-builder/table/TableIndex.ts schema-builder/table/TableCheck.ts schema-builder/table/TableUnique.ts schema-builder/table/TableExclusion.ts schema-builder/MongoSchemaBuilder.ts schema-builder/view/View.ts schema-builder/util/TableUtils.ts entity-manager/EntityManager.ts entity-manager/MongoEntityManager.ts entity-manager/EntityManagerFactory.ts entity-manager/SqljsEntityManager.ts commands/InitCommand.ts commands/MigrationGenerateCommand.ts commands/MigrationRunCommand.ts commands/MigrationRevertCommand.ts commands/SchemaLogCommand.ts commands/MigrationCreateCommand.ts commands/QueryCommand.ts commands/EntityCreateCommand.ts commands/VersionCommand.ts commands/SubscriberCreateCommand.ts commands/CacheClearCommand.ts commands/MigrationShowCommand.ts commands/SchemaSyncCommand.ts commands/SchemaDropCommand.ts commands/CommandUtils.ts metadata-builder/EntityMetadataBuilder.ts metadata-builder/JunctionEntityMetadataBuilder.ts metadata-builder/EntityMetadataValidator.ts metadata-builder/RelationJoinColumnBuilder.ts metadata-builder/ClosureJunctionEntityMetadataBuilder.ts metadata-builder/MetadataUtils.ts util/OrmUtils.ts util/DepGraph.ts util/RandomGenerator.ts util/DateUtils.ts util/DirectoryExportedClassesLoader.ts util/StringUtils.ts util/ApplyValueTransformers.ts util/VersionUtils.ts util/ObjectUtils.ts error/EntityNotFoundError.ts error/RepositoryNotTreeError.ts error/RepositoryNotFoundError.ts error/EntityMetadataNotFoundError.ts error/CannotCreateEntityIdMapError.ts error/MissingJoinTableError.ts error/MissingJoinColumnError.ts error/QueryFailedError.ts error/DataTypeNotSupportedError.ts error/FindRelationsNotFoundError.ts error/MetadataAlreadyExistsError.ts error/NamingStrategyNotFoundError.ts error/CannotDetermineEntityError.ts error/CustomRepositoryCannotInheritRepositoryError.ts error/AlreadyHasActiveConnectionError.ts error/UsingJoinTableOnlyOnOneSideAllowedError.ts error/CannotConnectAlreadyConnectedError.ts error/NoConnectionForRepositoryError.ts error/MissingDeleteDateColumnError.ts error/CustomRepositoryNotFoundError.ts error/MissingDriverError.ts error/UsingJoinTableIsNotAllowedError.ts error/UsingJoinColumnIsNotAllowedError.ts error/DriverPackageNotInstalledError.ts error/MustBeEntityError.ts error/UsingJoinColumnOnlyOnOneSideAllowedError.ts error/ColumnTypeUndefinedError.ts error/SubjectWithoutIdentifierError.ts error/OptimisticLockVersionMismatchError.ts error/CannotGetEntityManagerNotConnectedError.ts error/CannotReflectMethodParameterTypeError.ts error/MissingPrimaryColumnError.ts error/PrimaryColumnCannotBeNullableError.ts error/ConnectionIsNotSetError.ts error/MetadataWithSuchNameAlreadyExistsError.ts error/ConnectionNotFoundError.ts error/SubjectRemovedAndUpdatedError.ts error/NoVersionOrUpdateDateColumnError.ts error/TreeRepositoryNotSupportedError.ts error/CannotAttachTreeChildrenEntityError.ts error/DriverOptionNotSetError.ts error/EntityColumnNotFound.ts error/CannotExecuteNotConnectedError.ts error/CircularRelationsError.ts error/CustomRepositoryDoesNotHaveEntityError.ts error/NoConnectionOptionError.ts error/InitializedRelationError.ts error/LimitOnUpdateNotSupportedError.ts error/TransactionNotStartedError.ts error/PessimisticLockTransactionRequiredError.ts error/QueryRunnerAlreadyReleasedError.ts error/UpdateValuesMissingError.ts error/OptimisticLockCanNotBeUsedError.ts error/LockNotSupportedOnGivenDriverError.ts error/OffsetWithoutLimitNotSupportedError.ts error/QueryRunnerProviderAlreadyReleasedError.ts error/InsertValuesMissingError.ts error/NoNeedToReleaseEntityManagerError.ts error/ReturningStatementNotSupportedError.ts error/TransactionAlreadyStartedError.ts error/PersistedEntityNotFoundError.ts connection/Connection.ts connection/ConnectionOptionsReader.ts connection/options-reader/ConnectionOptionsEnvReader.ts connection/options-reader/ConnectionOptionsXmlReader.ts connection/options-reader/ConnectionOptionsYmlReader.ts connection/ConnectionMetadataBuilder.ts connection/ConnectionManager.ts decorator/columns/Column.ts decorator/columns/PrimaryGeneratedColumn.ts decorator/columns/PrimaryColumn.ts decorator/columns/ObjectIdColumn.ts decorator/columns/CreateDateColumn.ts decorator/columns/UpdateDateColumn.ts decorator/columns/DeleteDateColumn.ts decorator/columns/VersionColumn.ts decorator/columns/ViewColumn.ts decorator/relations/ManyToOne.ts decorator/relations/ManyToMany.ts decorator/relations/OneToOne.ts decorator/relations/OneToMany.ts decorator/relations/JoinTable.ts decorator/relations/JoinColumn.ts decorator/relations/RelationId.ts decorator/relations/RelationCount.ts decorator/transaction/Transaction.ts decorator/transaction/TransactionRepository.ts decorator/transaction/TransactionManager.ts decorator/listeners/AfterUpdate.ts decorator/listeners/BeforeRemove.ts decorator/listeners/AfterInsert.ts decorator/listeners/AfterRemove.ts decorator/listeners/BeforeInsert.ts decorator/listeners/BeforeUpdate.ts decorator/listeners/AfterLoad.ts decorator/listeners/EventSubscriber.ts decorator/tree/TreeChildren.ts decorator/tree/TreeParent.ts decorator/tree/Tree.ts decorator/tree/TreeLevelColumn.ts decorator/entity/Entity.ts decorator/entity/TableInheritance.ts decorator/entity/ChildEntity.ts decorator/Index.ts decorator/Unique.ts decorator/Exclusion.ts decorator/entity-view/ViewEntity.ts decorator/Check.ts decorator/Generated.ts decorator/EntityRepository.ts repository/TreeRepository.ts repository/MongoRepository.ts repository/BaseEntity.ts repository/Repository.ts repository/AbstractRepository.ts repository/RepositoryFactory.ts find-options/FindOptionsUtils.ts find-options/operator/Raw.ts find-options/operator/LessThanOrEqual.ts find-options/operator/In.ts find-options/operator/LessThan.ts find-options/operator/IsNull.ts find-options/operator/MoreThanOrEqual.ts find-options/operator/MoreThan.ts find-options/operator/Like.ts find-options/operator/Not.ts find-options/operator/Between.ts find-options/operator/Equal.ts find-options/operator/ILike.ts find-options/operator/Any.ts find-options/FindOperator.ts migration/MigrationExecutor.ts migration/Migration.ts logger/DebugLogger.ts logger/FileLogger.ts logger/AdvancedConsoleLogger.ts logger/SimpleConsoleLogger.ts logger/LoggerFactory.ts cache/RedisQueryResultCache.ts cache/DbQueryResultCache.ts cache/QueryResultCacheFactory.ts index.ts subscriber/Broadcaster.ts subscriber/BroadcasterResult.ts query-runner/BaseQueryRunner.ts metadata-args/MetadataArgsStorage.ts entity-schema/EntitySchemaTransformer.ts entity-schema/EntitySchema.ts entity-schema/EntitySchemaOptions.ts platform/PlatformTools.ts naming-strategy/DefaultNamingStrategy.ts container.ts cli.ts

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 1 of 3 files from the diff.

@@ -33,7 +33,7 @@
Loading
33 33
        const escapeAlias = (alias: string) => this.manager.connection.driver.escape(alias);
34 34
        const escapeColumn = (column: string) => this.manager.connection.driver.escape(column);
35 35
        const parentPropertyName = this.manager.connection.namingStrategy.joinColumnName(
36 -
          this.metadata.treeParentRelation!.propertyName, "id"
36 +
          this.metadata.treeParentRelation!.propertyName, this.metadata.primaryColumns[0].propertyName
37 37
        );
38 38
39 39
        return this.createQueryBuilder("treeEntity")

Learn more Showing 1 files with coverage changes found.

Changes in src/driver/cockroachdb/CockroachQueryRunner.ts
-5
+5
Loading file...
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 0.52% 73.06%
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 88.37%
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 100.00%
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.42%
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.59%
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.75%
Loading