taon-typeorm 19.0.19 → 19.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/package.json +1 -1
- package/client/package.json +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/env/env.angular-node-app.d.ts +13 -0
- package/lib/env/env.angular-node-app.js +19 -0
- package/lib/env/env.angular-node-app.js.map +1 -0
- package/lib/env/env.electron-app.d.ts +13 -0
- package/lib/env/env.electron-app.js +19 -0
- package/lib/env/env.electron-app.js.map +1 -0
- package/lib/env/env.mobile-app.d.ts +13 -0
- package/lib/env/env.mobile-app.js +19 -0
- package/lib/env/env.mobile-app.js.map +1 -0
- package/lib/env/env.npm-lib-and-cli-tool.d.ts +13 -0
- package/lib/env/env.npm-lib-and-cli-tool.js +19 -0
- package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -0
- package/lib/env/env.vscode-plugin.d.ts +13 -0
- package/lib/env/env.vscode-plugin.js +19 -0
- package/lib/env/env.vscode-plugin.js.map +1 -0
- package/lib/env/index.d.ts +5 -0
- package/lib/env/index.js +22 -0
- package/lib/env/index.js.map +1 -0
- package/package.json +1 -1
- package/tmp-environment.json +4 -8
- package/websql/package.json +1 -1
- package/client/README.md +0 -24
- package/client/fesm2022/taon-typeorm.mjs +0 -30436
- package/client/fesm2022/taon-typeorm.mjs.map +0 -1
- package/client/index.d.ts +0 -6
- package/client/lib/index.d.ts +0 -2
- package/client/lib/typeorm/cache/DbQueryResultCache.d.ts +0 -53
- package/client/lib/typeorm/cache/QueryResultCache.d.ts +0 -40
- package/client/lib/typeorm/cache/QueryResultCacheFactory.d.ts +0 -14
- package/client/lib/typeorm/cache/QueryResultCacheOptions.d.ts +0 -27
- package/client/lib/typeorm/cache/RedisQueryResultCache.d.ts +0 -66
- package/client/lib/typeorm/common/DeepPartial.d.ts +0 -7
- package/client/lib/typeorm/common/EntityTarget.d.ts +0 -10
- package/client/lib/typeorm/common/MixedList.d.ts +0 -9
- package/client/lib/typeorm/common/ObjectLiteral.d.ts +0 -7
- package/client/lib/typeorm/common/ObjectType.d.ts +0 -7
- package/client/lib/typeorm/common/RelationType.d.ts +0 -15
- package/client/lib/typeorm/connection/Connection.d.ts +0 -11
- package/client/lib/typeorm/connection/ConnectionManager.d.ts +0 -34
- package/client/lib/typeorm/connection/ConnectionMetadataBuilder.d.ts +0 -25
- package/client/lib/typeorm/connection/ConnectionOptions.d.ts +0 -10
- package/client/lib/typeorm/connection/ConnectionOptionsReader.d.ts +0 -65
- package/client/lib/typeorm/constants.d.ts +0 -2
- package/client/lib/typeorm/container.d.ts +0 -40
- package/client/lib/typeorm/data-source/BaseDataSourceOptions.d.ts +0 -172
- package/client/lib/typeorm/data-source/DataSource.d.ts +0 -247
- package/client/lib/typeorm/data-source/DataSourceOptions.d.ts +0 -9
- package/client/lib/typeorm/data-source/index.d.ts +0 -3
- package/client/lib/typeorm/decorator/Check.d.ts +0 -13
- package/client/lib/typeorm/decorator/EntityRepository.d.ts +0 -10
- package/client/lib/typeorm/decorator/Exclusion.d.ts +0 -13
- package/client/lib/typeorm/decorator/Generated.d.ts +0 -11
- package/client/lib/typeorm/decorator/Index.d.ts +0 -50
- package/client/lib/typeorm/decorator/Unique.d.ts +0 -22
- package/client/lib/typeorm/decorator/columns/Column.d.ts +0 -75
- package/client/lib/typeorm/decorator/columns/CreateDateColumn.d.ts +0 -8
- package/client/lib/typeorm/decorator/columns/DeleteDateColumn.d.ts +0 -7
- package/client/lib/typeorm/decorator/columns/ObjectIdColumn.d.ts +0 -7
- package/client/lib/typeorm/decorator/columns/PrimaryColumn.d.ts +0 -22
- package/client/lib/typeorm/decorator/columns/PrimaryGeneratedColumn.d.ts +0 -25
- package/client/lib/typeorm/decorator/columns/UpdateDateColumn.d.ts +0 -7
- package/client/lib/typeorm/decorator/columns/VersionColumn.d.ts +0 -8
- package/client/lib/typeorm/decorator/columns/ViewColumn.d.ts +0 -6
- package/client/lib/typeorm/decorator/columns/VirtualColumn.d.ts +0 -11
- package/client/lib/typeorm/decorator/entity/ChildEntity.d.ts +0 -5
- package/client/lib/typeorm/decorator/entity/Entity.d.ts +0 -12
- package/client/lib/typeorm/decorator/entity/TableInheritance.d.ts +0 -9
- package/client/lib/typeorm/decorator/entity-view/ViewEntity.d.ts +0 -12
- package/client/lib/typeorm/decorator/listeners/AfterInsert.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/AfterLoad.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/AfterRecover.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/AfterRemove.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/AfterSoftRemove.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/AfterUpdate.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/BeforeInsert.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/BeforeRecover.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/BeforeRemove.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/BeforeSoftRemove.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/BeforeUpdate.d.ts +0 -5
- package/client/lib/typeorm/decorator/listeners/EventSubscriber.d.ts +0 -6
- package/client/lib/typeorm/decorator/options/ColumnCommonOptions.d.ts +0 -58
- package/client/lib/typeorm/decorator/options/ColumnEmbeddedOptions.d.ts +0 -17
- package/client/lib/typeorm/decorator/options/ColumnEnumOptions.d.ts +0 -14
- package/client/lib/typeorm/decorator/options/ColumnHstoreOptions.d.ts +0 -11
- package/client/lib/typeorm/decorator/options/ColumnNumericOptions.d.ts +0 -25
- package/client/lib/typeorm/decorator/options/ColumnOptions.d.ts +0 -159
- package/client/lib/typeorm/decorator/options/ColumnWithLengthOptions.d.ts +0 -11
- package/client/lib/typeorm/decorator/options/ColumnWithWidthOptions.d.ts +0 -20
- package/client/lib/typeorm/decorator/options/EntityOptions.d.ts +0 -43
- package/client/lib/typeorm/decorator/options/IndexOptions.d.ts +0 -53
- package/client/lib/typeorm/decorator/options/JoinColumnOptions.d.ts +0 -18
- package/client/lib/typeorm/decorator/options/JoinTableMultipleColumnsOptions.d.ts +0 -30
- package/client/lib/typeorm/decorator/options/JoinTableOptions.d.ts +0 -30
- package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnIdentityOptions.d.ts +0 -27
- package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnNumericOptions.d.ts +0 -32
- package/client/lib/typeorm/decorator/options/PrimaryGeneratedColumnUUIDOptions.d.ts +0 -18
- package/client/lib/typeorm/decorator/options/RelationOptions.d.ts +0 -65
- package/client/lib/typeorm/decorator/options/SpatialColumnOptions.d.ts +0 -16
- package/client/lib/typeorm/decorator/options/UniqueOptions.d.ts +0 -11
- package/client/lib/typeorm/decorator/options/ValueTransformer.d.ts +0 -14
- package/client/lib/typeorm/decorator/options/ViewColumnOptions.d.ts +0 -16
- package/client/lib/typeorm/decorator/options/ViewEntityOptions.d.ts +0 -40
- package/client/lib/typeorm/decorator/options/VirtualColumnOptions.d.ts +0 -28
- package/client/lib/typeorm/decorator/relations/JoinColumn.d.ts +0 -20
- package/client/lib/typeorm/decorator/relations/JoinTable.d.ts +0 -18
- package/client/lib/typeorm/decorator/relations/ManyToMany.d.ts +0 -15
- package/client/lib/typeorm/decorator/relations/ManyToOne.d.ts +0 -15
- package/client/lib/typeorm/decorator/relations/OneToMany.d.ts +0 -9
- package/client/lib/typeorm/decorator/relations/OneToOne.d.ts +0 -13
- package/client/lib/typeorm/decorator/relations/RelationCount.d.ts +0 -8
- package/client/lib/typeorm/decorator/relations/RelationId.d.ts +0 -8
- package/client/lib/typeorm/decorator/tree/Tree.d.ts +0 -10
- package/client/lib/typeorm/decorator/tree/TreeChildren.d.ts +0 -8
- package/client/lib/typeorm/decorator/tree/TreeLevelColumn.d.ts +0 -5
- package/client/lib/typeorm/decorator/tree/TreeParent.d.ts +0 -9
- package/client/lib/typeorm/driver/Driver.d.ts +0 -208
- package/client/lib/typeorm/driver/DriverFactory.d.ts +0 -12
- package/client/lib/typeorm/driver/DriverUtils.d.ts +0 -62
- package/client/lib/typeorm/driver/Query.d.ts +0 -10
- package/client/lib/typeorm/driver/SqlInMemory.d.ts +0 -9
- package/client/lib/typeorm/driver/cordova/CordovaConnectionOptions.d.ts +0 -25
- package/client/lib/typeorm/driver/cordova/CordovaDriver.d.ts +0 -26
- package/client/lib/typeorm/driver/cordova/CordovaQueryRunner.d.ts +0 -81
- package/client/lib/typeorm/driver/mongodb/typings.d.ts +0 -46
- package/client/lib/typeorm/driver/nativescript/NativescriptConnectionOptions.d.ts +0 -46
- package/client/lib/typeorm/driver/nativescript/NativescriptDriver.d.ts +0 -45
- package/client/lib/typeorm/driver/nativescript/NativescriptQueryRunner.d.ts +0 -30
- package/client/lib/typeorm/driver/react-native/ReactNativeConnectionOptions.d.ts +0 -25
- package/client/lib/typeorm/driver/react-native/ReactNativeDriver.d.ts +0 -26
- package/client/lib/typeorm/driver/react-native/ReactNativeQueryRunner.d.ts +0 -30
- package/client/lib/typeorm/driver/sqlite-abstract/AbstractSqliteDriver.d.ts +0 -238
- package/client/lib/typeorm/driver/sqlite-abstract/AbstractSqliteQueryRunner.d.ts +0 -301
- package/client/lib/typeorm/driver/sqljs/SqljsConnectionOptions.d.ts +0 -47
- package/client/lib/typeorm/driver/sqljs/SqljsDriver.d.ts +0 -68
- package/client/lib/typeorm/driver/sqljs/SqljsQueryRunner.d.ts +0 -36
- package/client/lib/typeorm/driver/types/ColumnTypes.d.ts +0 -26
- package/client/lib/typeorm/driver/types/CteCapabilities.d.ts +0 -19
- package/client/lib/typeorm/driver/types/DataTypeDefaults.d.ts +0 -9
- package/client/lib/typeorm/driver/types/DatabaseType.d.ts +0 -5
- package/client/lib/typeorm/driver/types/IsolationLevel.d.ts +0 -2
- package/client/lib/typeorm/driver/types/MappedColumnTypes.d.ts +0 -113
- package/client/lib/typeorm/driver/types/MetadataTableType.d.ts +0 -6
- package/client/lib/typeorm/driver/types/ReplicationMode.d.ts +0 -2
- package/client/lib/typeorm/driver/types/UpsertType.d.ts +0 -2
- package/client/lib/typeorm/entity-manager/EntityManager.d.ts +0 -353
- package/client/lib/typeorm/entity-manager/EntityManagerFactory.d.ts +0 -13
- package/client/lib/typeorm/entity-manager/SqljsEntityManager.d.ts +0 -27
- package/client/lib/typeorm/entity-schema/EntitySchema.d.ts +0 -10
- package/client/lib/typeorm/entity-schema/EntitySchemaCheckOptions.d.ts +0 -11
- package/client/lib/typeorm/entity-schema/EntitySchemaColumnOptions.d.ts +0 -175
- package/client/lib/typeorm/entity-schema/EntitySchemaEmbeddedColumnOptions.d.ts +0 -19
- package/client/lib/typeorm/entity-schema/EntitySchemaEmbeddedError.d.ts +0 -7
- package/client/lib/typeorm/entity-schema/EntitySchemaExclusionOptions.d.ts +0 -11
- package/client/lib/typeorm/entity-schema/EntitySchemaIndexOptions.d.ts +0 -54
- package/client/lib/typeorm/entity-schema/EntitySchemaOptions.d.ts +0 -104
- package/client/lib/typeorm/entity-schema/EntitySchemaRelationIdOptions.d.ts +0 -16
- package/client/lib/typeorm/entity-schema/EntitySchemaRelationOptions.d.ts +0 -96
- package/client/lib/typeorm/entity-schema/EntitySchemaTransformer.d.ts +0 -14
- package/client/lib/typeorm/entity-schema/EntitySchemaUniqueOptions.d.ts +0 -18
- package/client/lib/typeorm/error/AlreadyHasActiveConnectionError.d.ts +0 -8
- package/client/lib/typeorm/error/CannotAttachTreeChildrenEntityError.d.ts +0 -8
- package/client/lib/typeorm/error/CannotConnectAlreadyConnectedError.d.ts +0 -8
- package/client/lib/typeorm/error/CannotCreateEntityIdMapError.d.ts +0 -10
- package/client/lib/typeorm/error/CannotDetermineEntityError.d.ts +0 -8
- package/client/lib/typeorm/error/CannotExecuteNotConnectedError.d.ts +0 -8
- package/client/lib/typeorm/error/CannotGetEntityManagerNotConnectedError.d.ts +0 -8
- package/client/lib/typeorm/error/CannotReflectMethodParameterTypeError.d.ts +0 -9
- package/client/lib/typeorm/error/CircularRelationsError.d.ts +0 -8
- package/client/lib/typeorm/error/ColumnTypeUndefinedError.d.ts +0 -9
- package/client/lib/typeorm/error/ConnectionIsNotSetError.d.ts +0 -8
- package/client/lib/typeorm/error/ConnectionNotFoundError.d.ts +0 -8
- package/client/lib/typeorm/error/CustomRepositoryCannotInheritRepositoryError.d.ts +0 -8
- package/client/lib/typeorm/error/CustomRepositoryDoesNotHaveEntityError.d.ts +0 -8
- package/client/lib/typeorm/error/CustomRepositoryNotFoundError.d.ts +0 -8
- package/client/lib/typeorm/error/DataTypeNotSupportedError.d.ts +0 -8
- package/client/lib/typeorm/error/DriverOptionNotSetError.d.ts +0 -8
- package/client/lib/typeorm/error/DriverPackageNotInstalledError.d.ts +0 -8
- package/client/lib/typeorm/error/EntityMetadataNotFoundError.d.ts +0 -7
- package/client/lib/typeorm/error/EntityNotFoundError.d.ts +0 -11
- package/client/lib/typeorm/error/EntityPropertyNotFoundError.d.ts +0 -9
- package/client/lib/typeorm/error/FindRelationsNotFoundError.d.ts +0 -8
- package/client/lib/typeorm/error/InitializedRelationError.d.ts +0 -12
- package/client/lib/typeorm/error/InsertValuesMissingError.d.ts +0 -8
- package/client/lib/typeorm/error/LimitOnUpdateNotSupportedError.d.ts +0 -8
- package/client/lib/typeorm/error/LockNotSupportedOnGivenDriverError.d.ts +0 -8
- package/client/lib/typeorm/error/MetadataAlreadyExistsError.d.ts +0 -5
- package/client/lib/typeorm/error/MetadataWithSuchNameAlreadyExistsError.d.ts +0 -5
- package/client/lib/typeorm/error/MissingDeleteDateColumnError.d.ts +0 -6
- package/client/lib/typeorm/error/MissingDriverError.d.ts +0 -8
- package/client/lib/typeorm/error/MissingJoinColumnError.d.ts +0 -7
- package/client/lib/typeorm/error/MissingJoinTableError.d.ts +0 -7
- package/client/lib/typeorm/error/MissingPrimaryColumnError.d.ts +0 -6
- package/client/lib/typeorm/error/MustBeEntityError.d.ts +0 -8
- package/client/lib/typeorm/error/NamingStrategyNotFoundError.d.ts +0 -8
- package/client/lib/typeorm/error/NestedSetMultipleRootError.d.ts +0 -5
- package/client/lib/typeorm/error/NoConnectionForRepositoryError.d.ts +0 -8
- package/client/lib/typeorm/error/NoConnectionOptionError.d.ts +0 -8
- package/client/lib/typeorm/error/NoNeedToReleaseEntityManagerError.d.ts +0 -8
- package/client/lib/typeorm/error/NoVersionOrUpdateDateColumnError.d.ts +0 -8
- package/client/lib/typeorm/error/OffsetWithoutLimitNotSupportedError.d.ts +0 -8
- package/client/lib/typeorm/error/OptimisticLockCanNotBeUsedError.d.ts +0 -8
- package/client/lib/typeorm/error/OptimisticLockVersionMismatchError.d.ts +0 -8
- package/client/lib/typeorm/error/PersistedEntityNotFoundError.d.ts +0 -8
- package/client/lib/typeorm/error/PessimisticLockTransactionRequiredError.d.ts +0 -8
- package/client/lib/typeorm/error/PrimaryColumnCannotBeNullableError.d.ts +0 -5
- package/client/lib/typeorm/error/QueryFailedError.d.ts +0 -11
- package/client/lib/typeorm/error/QueryRunnerAlreadyReleasedError.d.ts +0 -5
- package/client/lib/typeorm/error/QueryRunnerProviderAlreadyReleasedError.d.ts +0 -8
- package/client/lib/typeorm/error/RepositoryNotTreeError.d.ts +0 -9
- package/client/lib/typeorm/error/ReturningStatementNotSupportedError.d.ts +0 -9
- package/client/lib/typeorm/error/SubjectRemovedAndUpdatedError.d.ts +0 -9
- package/client/lib/typeorm/error/SubjectWithoutIdentifierError.d.ts +0 -11
- package/client/lib/typeorm/error/TransactionAlreadyStartedError.d.ts +0 -8
- package/client/lib/typeorm/error/TransactionNotStartedError.d.ts +0 -8
- package/client/lib/typeorm/error/TreeRepositoryNotSupportedError.d.ts +0 -6
- package/client/lib/typeorm/error/TypeORMError.d.ts +0 -5
- package/client/lib/typeorm/error/UpdateValuesMissingError.d.ts +0 -5
- package/client/lib/typeorm/error/UsingJoinColumnIsNotAllowedError.d.ts +0 -7
- package/client/lib/typeorm/error/UsingJoinColumnOnlyOnOneSideAllowedError.d.ts +0 -7
- package/client/lib/typeorm/error/UsingJoinTableIsNotAllowedError.d.ts +0 -7
- package/client/lib/typeorm/error/UsingJoinTableOnlyOnOneSideAllowedError.d.ts +0 -7
- package/client/lib/typeorm/error/index.d.ts +0 -62
- package/client/lib/typeorm/find-options/EqualOperator.d.ts +0 -6
- package/client/lib/typeorm/find-options/FindManyOptions.d.ts +0 -15
- package/client/lib/typeorm/find-options/FindOneOptions.d.ts +0 -89
- package/client/lib/typeorm/find-options/FindOperator.d.ts +0 -66
- package/client/lib/typeorm/find-options/FindOperatorType.d.ts +0 -5
- package/client/lib/typeorm/find-options/FindOptionsOrder.d.ts +0 -19
- package/client/lib/typeorm/find-options/FindOptionsRelations.d.ts +0 -19
- package/client/lib/typeorm/find-options/FindOptionsSelect.d.ts +0 -18
- package/client/lib/typeorm/find-options/FindOptionsUtils.d.ts +0 -191
- package/client/lib/typeorm/find-options/FindOptionsWhere.d.ts +0 -14
- package/client/lib/typeorm/find-options/FindTreeOptions.d.ts +0 -14
- package/client/lib/typeorm/find-options/JoinOptions.d.ts +0 -77
- package/client/lib/typeorm/find-options/OrderByCondition.d.ts +0 -18
- package/client/lib/typeorm/find-options/operator/Any.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/ArrayContainedBy.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/ArrayContains.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/ArrayOverlap.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/Between.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/Equal.d.ts +0 -12
- package/client/lib/typeorm/find-options/operator/ILike.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/In.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/IsNull.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/LessThan.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/LessThanOrEqual.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/Like.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/MoreThan.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/MoreThanOrEqual.d.ts +0 -7
- package/client/lib/typeorm/find-options/operator/Not.d.ts +0 -8
- package/client/lib/typeorm/find-options/operator/Raw.d.ts +0 -19
- package/client/lib/typeorm/globals.d.ts +0 -104
- package/client/lib/typeorm/index.d.ts +0 -168
- package/client/lib/typeorm/logger/AdvancedConsoleLogger.d.ts +0 -42
- package/client/lib/typeorm/logger/DebugLogger.d.ts +0 -41
- package/client/lib/typeorm/logger/Logger.d.ts +0 -32
- package/client/lib/typeorm/logger/LoggerFactory.d.ts +0 -12
- package/client/lib/typeorm/logger/LoggerOptions.d.ts +0 -14
- package/client/lib/typeorm/logger/SimpleConsoleLogger.d.ts +0 -42
- package/client/lib/typeorm/metadata/CheckMetadata.d.ts +0 -40
- package/client/lib/typeorm/metadata/ColumnMetadata.d.ts +0 -316
- package/client/lib/typeorm/metadata/EmbeddedMetadata.d.ts +0 -166
- package/client/lib/typeorm/metadata/EntityListenerMetadata.d.ts +0 -49
- package/client/lib/typeorm/metadata/EntityMetadata.d.ts +0 -562
- package/client/lib/typeorm/metadata/ExclusionMetadata.d.ts +0 -40
- package/client/lib/typeorm/metadata/ForeignKeyMetadata.d.ts +0 -78
- package/client/lib/typeorm/metadata/IndexMetadata.d.ts +0 -112
- package/client/lib/typeorm/metadata/RelationCountMetadata.d.ts +0 -47
- package/client/lib/typeorm/metadata/RelationIdMetadata.d.ts +0 -54
- package/client/lib/typeorm/metadata/RelationMetadata.d.ts +0 -291
- package/client/lib/typeorm/metadata/UniqueMetadata.d.ts +0 -66
- package/client/lib/typeorm/metadata/types/ClosureTreeOptions.d.ts +0 -11
- package/client/lib/typeorm/metadata/types/DeferrableType.d.ts +0 -5
- package/client/lib/typeorm/metadata/types/EventListenerTypes.d.ts +0 -21
- package/client/lib/typeorm/metadata/types/OnDeleteType.d.ts +0 -5
- package/client/lib/typeorm/metadata/types/OnUpdateType.d.ts +0 -5
- package/client/lib/typeorm/metadata/types/PropertyTypeInFunction.d.ts +0 -5
- package/client/lib/typeorm/metadata/types/RelationTypeInFunction.d.ts +0 -6
- package/client/lib/typeorm/metadata/types/RelationTypes.d.ts +0 -5
- package/client/lib/typeorm/metadata/types/TableTypes.d.ts +0 -5
- package/client/lib/typeorm/metadata/types/TreeTypes.d.ts +0 -6
- package/client/lib/typeorm/metadata-args/CheckMetadataArgs.d.ts +0 -18
- package/client/lib/typeorm/metadata-args/ColumnMetadataArgs.d.ts +0 -26
- package/client/lib/typeorm/metadata-args/DiscriminatorValueMetadataArgs.d.ts +0 -14
- package/client/lib/typeorm/metadata-args/EmbeddedMetadataArgs.d.ts +0 -27
- package/client/lib/typeorm/metadata-args/EntityListenerMetadataArgs.d.ts +0 -19
- package/client/lib/typeorm/metadata-args/EntityRepositoryMetadataArgs.d.ts +0 -15
- package/client/lib/typeorm/metadata-args/EntitySubscriberMetadataArgs.d.ts +0 -10
- package/client/lib/typeorm/metadata-args/ExclusionMetadataArgs.d.ts +0 -18
- package/client/lib/typeorm/metadata-args/GeneratedMetadataArgs.d.ts +0 -18
- package/client/lib/typeorm/metadata-args/IndexMetadataArgs.d.ts +0 -71
- package/client/lib/typeorm/metadata-args/InheritanceMetadataArgs.d.ts +0 -19
- package/client/lib/typeorm/metadata-args/JoinColumnMetadataArgs.d.ts +0 -27
- package/client/lib/typeorm/metadata-args/JoinTableMetadataArgs.d.ts +0 -38
- package/client/lib/typeorm/metadata-args/MetadataArgsStorage.d.ts +0 -109
- package/client/lib/typeorm/metadata-args/NamingStrategyMetadataArgs.d.ts +0 -14
- package/client/lib/typeorm/metadata-args/RelationCountMetadataArgs.d.ts +0 -27
- package/client/lib/typeorm/metadata-args/RelationIdMetadataArgs.d.ts +0 -27
- package/client/lib/typeorm/metadata-args/RelationMetadataArgs.d.ts +0 -56
- package/client/lib/typeorm/metadata-args/TableMetadataArgs.d.ts +0 -62
- package/client/lib/typeorm/metadata-args/TransactionEntityMetadataArgs.d.ts +0 -18
- package/client/lib/typeorm/metadata-args/TransactionRepositoryMetadataArgs.d.ts +0 -26
- package/client/lib/typeorm/metadata-args/TreeMetadataArgs.d.ts +0 -20
- package/client/lib/typeorm/metadata-args/UniqueMetadataArgs.d.ts +0 -25
- package/client/lib/typeorm/metadata-args/types/ColumnMode.d.ts +0 -8
- package/client/lib/typeorm/metadata-builder/ClosureJunctionEntityMetadataBuilder.d.ts +0 -15
- package/client/lib/typeorm/metadata-builder/EntityMetadataBuilder.d.ts +0 -58
- package/client/lib/typeorm/metadata-builder/EntityMetadataValidator.d.ts +0 -24
- package/client/lib/typeorm/metadata-builder/JunctionEntityMetadataBuilder.d.ts +0 -27
- package/client/lib/typeorm/metadata-builder/MetadataUtils.d.ts +0 -24
- package/client/lib/typeorm/metadata-builder/RelationJoinColumnBuilder.d.ts +0 -57
- package/client/lib/typeorm/migration/Migration.d.ts +0 -25
- package/client/lib/typeorm/migration/MigrationExecutor.d.ts +0 -100
- package/client/lib/typeorm/migration/MigrationInterface.d.ts +0 -19
- package/client/lib/typeorm/naming-strategy/DefaultNamingStrategy.d.ts +0 -50
- package/client/lib/typeorm/naming-strategy/NamingStrategyInterface.d.ts +0 -117
- package/client/lib/typeorm/persistence/EntityPersistExecutor.d.ts +0 -22
- package/client/lib/typeorm/persistence/Subject.d.ts +0 -156
- package/client/lib/typeorm/persistence/SubjectChangeMap.d.ts +0 -24
- package/client/lib/typeorm/persistence/SubjectChangedColumnsComputer.d.ts +0 -19
- package/client/lib/typeorm/persistence/SubjectDatabaseEntityLoader.d.ts +0 -36
- package/client/lib/typeorm/persistence/SubjectExecutor.d.ts +0 -119
- package/client/lib/typeorm/persistence/SubjectTopoligicalSorter.d.ts +0 -46
- package/client/lib/typeorm/persistence/subject-builder/CascadesSubjectBuilder.d.ts +0 -20
- package/client/lib/typeorm/persistence/subject-builder/ManyToManySubjectBuilder.d.ts +0 -35
- package/client/lib/typeorm/persistence/subject-builder/OneToManySubjectBuilder.d.ts +0 -28
- package/client/lib/typeorm/persistence/subject-builder/OneToOneInverseSideSubjectBuilder.d.ts +0 -28
- package/client/lib/typeorm/persistence/tree/ClosureSubjectExecutor.d.ts +0 -27
- package/client/lib/typeorm/persistence/tree/MaterializedPathSubjectExecutor.d.ts +0 -19
- package/client/lib/typeorm/persistence/tree/NestedSetSubjectExecutor.d.ts +0 -39
- package/client/lib/typeorm/platform/PlatformTools.d.ts +0 -65
- package/client/lib/typeorm/query-builder/Alias.d.ts +0 -23
- package/client/lib/typeorm/query-builder/Brackets.d.ts +0 -17
- package/client/lib/typeorm/query-builder/DeleteQueryBuilder.d.ts +0 -92
- package/client/lib/typeorm/query-builder/InsertOrUpdateOptions.d.ts +0 -4
- package/client/lib/typeorm/query-builder/InsertQueryBuilder.d.ts +0 -118
- package/client/lib/typeorm/query-builder/JoinAttribute.d.ts +0 -84
- package/client/lib/typeorm/query-builder/NotBrackets.d.ts +0 -9
- package/client/lib/typeorm/query-builder/QueryBuilder.d.ts +0 -268
- package/client/lib/typeorm/query-builder/QueryBuilderCte.d.ts +0 -18
- package/client/lib/typeorm/query-builder/QueryBuilderUtils.d.ts +0 -11
- package/client/lib/typeorm/query-builder/QueryExpressionMap.d.ts +0 -306
- package/client/lib/typeorm/query-builder/QueryPartialEntity.d.ts +0 -16
- package/client/lib/typeorm/query-builder/RelationIdLoader.d.ts +0 -71
- package/client/lib/typeorm/query-builder/RelationLoader.d.ts +0 -60
- package/client/lib/typeorm/query-builder/RelationQueryBuilder.d.ts +0 -70
- package/client/lib/typeorm/query-builder/RelationRemover.d.ts +0 -17
- package/client/lib/typeorm/query-builder/RelationUpdater.d.ts +0 -17
- package/client/lib/typeorm/query-builder/ReturningResultsEntityUpdator.d.ts +0 -31
- package/client/lib/typeorm/query-builder/SelectQuery.d.ts +0 -6
- package/client/lib/typeorm/query-builder/SelectQueryBuilder.d.ts +0 -665
- package/client/lib/typeorm/query-builder/SelectQueryBuilderOption.d.ts +0 -2
- package/client/lib/typeorm/query-builder/SoftDeleteQueryBuilder.d.ts +0 -139
- package/client/lib/typeorm/query-builder/UpdateQueryBuilder.d.ts +0 -144
- package/client/lib/typeorm/query-builder/WhereClause.d.ts +0 -17
- package/client/lib/typeorm/query-builder/WhereExpressionBuilder.d.ts +0 -127
- package/client/lib/typeorm/query-builder/relation-count/RelationCountAttribute.d.ts +0 -54
- package/client/lib/typeorm/query-builder/relation-count/RelationCountLoadResult.d.ts +0 -9
- package/client/lib/typeorm/query-builder/relation-count/RelationCountLoader.d.ts +0 -12
- package/client/lib/typeorm/query-builder/relation-count/RelationCountMetadataToAttributeTransformer.d.ts +0 -8
- package/client/lib/typeorm/query-builder/relation-id/RelationIdAttribute.d.ts +0 -65
- package/client/lib/typeorm/query-builder/relation-id/RelationIdLoadResult.d.ts +0 -6
- package/client/lib/typeorm/query-builder/relation-id/RelationIdLoader.d.ts +0 -12
- package/client/lib/typeorm/query-builder/relation-id/RelationIdMetadataToAttributeTransformer.d.ts +0 -8
- package/client/lib/typeorm/query-builder/result/DeleteResult.d.ts +0 -17
- package/client/lib/typeorm/query-builder/result/InsertResult.d.ts +0 -23
- package/client/lib/typeorm/query-builder/result/UpdateResult.d.ts +0 -27
- package/client/lib/typeorm/query-builder/transformer/PlainObjectToDatabaseEntityTransformer.d.ts +0 -13
- package/client/lib/typeorm/query-builder/transformer/PlainObjectToNewEntityTransformer.d.ts +0 -15
- package/client/lib/typeorm/query-builder/transformer/RawSqlResultsToEntityTransformer.d.ts +0 -56
- package/client/lib/typeorm/query-runner/BaseQueryRunner.d.ts +0 -204
- package/client/lib/typeorm/query-runner/QueryResult.d.ts +0 -18
- package/client/lib/typeorm/query-runner/QueryRunner.d.ts +0 -359
- package/client/lib/typeorm/relation-path.d.ts +0 -7
- package/client/lib/typeorm/repository/AbstractRepository.d.ts +0 -52
- package/client/lib/typeorm/repository/BaseEntity.d.ts +0 -298
- package/client/lib/typeorm/repository/FindTreesOptions.d.ts +0 -10
- package/client/lib/typeorm/repository/RemoveOptions.d.ts +0 -28
- package/client/lib/typeorm/repository/Repository.d.ts +0 -292
- package/client/lib/typeorm/repository/SaveOptions.d.ts +0 -36
- package/client/lib/typeorm/repository/TreeRepository.d.ts +0 -56
- package/client/lib/typeorm/repository/UpsertOptions.d.ts +0 -11
- package/client/lib/typeorm/schema-builder/RdbmsSchemaBuilder.d.ts +0 -145
- package/client/lib/typeorm/schema-builder/SchemaBuilder.d.ts +0 -15
- package/client/lib/typeorm/schema-builder/options/TableCheckOptions.d.ts +0 -18
- package/client/lib/typeorm/schema-builder/options/TableColumnOptions.d.ts +0 -123
- package/client/lib/typeorm/schema-builder/options/TableExclusionOptions.d.ts +0 -14
- package/client/lib/typeorm/schema-builder/options/TableForeignKeyOptions.d.ts +0 -45
- package/client/lib/typeorm/schema-builder/options/TableIndexOptions.d.ts +0 -45
- package/client/lib/typeorm/schema-builder/options/TableOptions.d.ts +0 -62
- package/client/lib/typeorm/schema-builder/options/TableUniqueOptions.d.ts +0 -19
- package/client/lib/typeorm/schema-builder/options/ViewOptions.d.ts +0 -27
- package/client/lib/typeorm/schema-builder/table/Table.d.ts +0 -143
- package/client/lib/typeorm/schema-builder/table/TableCheck.d.ts +0 -30
- package/client/lib/typeorm/schema-builder/table/TableColumn.d.ts +0 -127
- package/client/lib/typeorm/schema-builder/table/TableExclusion.d.ts +0 -26
- package/client/lib/typeorm/schema-builder/table/TableForeignKey.d.ts +0 -58
- package/client/lib/typeorm/schema-builder/table/TableIndex.d.ts +0 -57
- package/client/lib/typeorm/schema-builder/table/TableUnique.d.ts +0 -31
- package/client/lib/typeorm/schema-builder/util/TableUtils.d.ts +0 -7
- package/client/lib/typeorm/schema-builder/util/ViewUtils.d.ts +0 -8
- package/client/lib/typeorm/schema-builder/view/View.d.ts +0 -38
- package/client/lib/typeorm/subscriber/Broadcaster.d.ts +0 -168
- package/client/lib/typeorm/subscriber/BroadcasterResult.d.ts +0 -18
- package/client/lib/typeorm/subscriber/EntitySubscriberInterface.d.ts +0 -93
- package/client/lib/typeorm/subscriber/event/InsertEvent.d.ts +0 -32
- package/client/lib/typeorm/subscriber/event/LoadEvent.d.ts +0 -32
- package/client/lib/typeorm/subscriber/event/RecoverEvent.d.ts +0 -7
- package/client/lib/typeorm/subscriber/event/RemoveEvent.d.ts +0 -41
- package/client/lib/typeorm/subscriber/event/SoftRemoveEvent.d.ts +0 -7
- package/client/lib/typeorm/subscriber/event/TransactionCommitEvent.d.ts +0 -23
- package/client/lib/typeorm/subscriber/event/TransactionRollbackEvent.d.ts +0 -23
- package/client/lib/typeorm/subscriber/event/TransactionStartEvent.d.ts +0 -23
- package/client/lib/typeorm/subscriber/event/UpdateEvent.d.ts +0 -47
- package/client/lib/typeorm/util/ApplyValueTransformers.d.ts +0 -6
- package/client/lib/typeorm/util/DateUtils.d.ts +0 -59
- package/client/lib/typeorm/util/DepGraph.d.ts +0 -65
- package/client/lib/typeorm/util/DirectoryExportedClassesLoader.d.ts +0 -10
- package/client/lib/typeorm/util/ImportUtils.d.ts +0 -2
- package/client/lib/typeorm/util/InstanceChecker.d.ts +0 -60
- package/client/lib/typeorm/util/ObjectUtils.d.ts +0 -38
- package/client/lib/typeorm/util/OrmUtils.d.ts +0 -53
- package/client/lib/typeorm/util/PathUtils.d.ts +0 -11
- package/client/lib/typeorm/util/RandomGenerator.d.ts +0 -16
- package/client/lib/typeorm/util/StringUtils.d.ts +0 -64
- package/client/lib/typeorm/util/TreeRepositoryUtils.d.ts +0 -24
- package/client/lib/typeorm/util/VersionUtils.d.ts +0 -5
- package/client/lib/typeorm/util/escapeRegExp.d.ts +0 -2
- package/client/public-api.d.ts +0 -2
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { FindManyOptions } from "./FindManyOptions";
|
|
3
|
-
import { FindOneOptions } from "./FindOneOptions";
|
|
4
|
-
import { SelectQueryBuilder } from "../query-builder/SelectQueryBuilder";
|
|
5
|
-
import { EntityMetadata } from "../metadata/EntityMetadata";
|
|
6
|
-
import { FindTreeOptions } from "./FindTreeOptions";
|
|
7
|
-
import { ObjectLiteral } from "../common/ObjectLiteral";
|
|
8
|
-
/**
|
|
9
|
-
* Utilities to work with FindOptions.
|
|
10
|
-
*/
|
|
11
|
-
export declare class FindOptionsUtils {
|
|
12
|
-
/**
|
|
13
|
-
* Checks if given object is really instance of FindOneOptions interface.
|
|
14
|
-
*/
|
|
15
|
-
static isFindOneOptions<Entity = any>(obj: any): obj is FindOneOptions<Entity>;
|
|
16
|
-
/**
|
|
17
|
-
* Checks if given object is really instance of FindManyOptions interface.
|
|
18
|
-
*/
|
|
19
|
-
static isFindManyOptions<Entity = any>(obj: any): obj is FindManyOptions<Entity>;
|
|
20
|
-
/**
|
|
21
|
-
* Checks if given object is really instance of FindOptions interface.
|
|
22
|
-
*/
|
|
23
|
-
static extractFindManyOptionsAlias(object: any): string | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* Applies give find many options to the given query builder.
|
|
26
|
-
|
|
27
|
-
static applyFindManyOptionsOrConditionsToQueryBuilder<T>(qb: SelectQueryBuilder<T>, options: FindManyOptions<T>|Partial<T>|undefined): SelectQueryBuilder<T> {
|
|
28
|
-
if (this.isFindManyOptions(options))
|
|
29
|
-
return this.applyOptionsToQueryBuilder(qb, options);
|
|
30
|
-
|
|
31
|
-
if (options)
|
|
32
|
-
return qb.where(options);
|
|
33
|
-
|
|
34
|
-
return qb;
|
|
35
|
-
}*/
|
|
36
|
-
/**
|
|
37
|
-
* Applies give find options to the given query builder.
|
|
38
|
-
|
|
39
|
-
static applyOptionsToQueryBuilder<T>(qb: SelectQueryBuilder<T>, options: FindOneOptions<T>|FindManyOptions<T>|undefined): SelectQueryBuilder<T> {
|
|
40
|
-
|
|
41
|
-
// if options are not set then simply return query builder. This is made for simplicity of usage.
|
|
42
|
-
if (!options || (!this.isFindOneOptions(options) && !this.isFindManyOptions(options)))
|
|
43
|
-
return qb;
|
|
44
|
-
|
|
45
|
-
if (options.transaction === true) {
|
|
46
|
-
qb.expressionMap.useTransaction = true;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
if (!qb.expressionMap.mainAlias || !qb.expressionMap.mainAlias.hasMetadata)
|
|
50
|
-
return qb;
|
|
51
|
-
|
|
52
|
-
const metadata = qb.expressionMap.mainAlias!.metadata;
|
|
53
|
-
|
|
54
|
-
// apply all options from FindOptions
|
|
55
|
-
if (options.comment) {
|
|
56
|
-
qb.comment(options.comment);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
if (options.withDeleted) {
|
|
60
|
-
qb.withDeleted();
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (options.select) {
|
|
64
|
-
qb.select([]);
|
|
65
|
-
options.select.forEach(select => {
|
|
66
|
-
if (!metadata.hasColumnWithPropertyPath(`${select}`))
|
|
67
|
-
throw new TypeORMError(`${select} column was not found in the ${metadata.name} entity.`);
|
|
68
|
-
|
|
69
|
-
const columns = metadata.findColumnsWithPropertyPath(`${select}`);
|
|
70
|
-
|
|
71
|
-
for (const column of columns) {
|
|
72
|
-
qb.addSelect(qb.alias + "." + column.propertyPath);
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (options.relations) {
|
|
78
|
-
// Copy because `applyRelationsRecursively` modifies it
|
|
79
|
-
const allRelations = [...options.relations];
|
|
80
|
-
this.applyRelationsRecursively(qb, allRelations, qb.expressionMap.mainAlias!.name, qb.expressionMap.mainAlias!.metadata, "");
|
|
81
|
-
// recursive removes found relations from allRelations array
|
|
82
|
-
// if there are relations left in this array it means those relations were not found in the entity structure
|
|
83
|
-
// so, we give an exception about not found relations
|
|
84
|
-
if (allRelations.length > 0)
|
|
85
|
-
throw new FindRelationsNotFoundError(allRelations);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
if (options.join) {
|
|
89
|
-
if (options.join.leftJoin)
|
|
90
|
-
Object.keys(options.join.leftJoin).forEach(key => {
|
|
91
|
-
qb.leftJoin(options.join!.leftJoin![key], key);
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
if (options.join.innerJoin)
|
|
95
|
-
Object.keys(options.join.innerJoin).forEach(key => {
|
|
96
|
-
qb.innerJoin(options.join!.innerJoin![key], key);
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
if (options.join.leftJoinAndSelect)
|
|
100
|
-
Object.keys(options.join.leftJoinAndSelect).forEach(key => {
|
|
101
|
-
qb.leftJoinAndSelect(options.join!.leftJoinAndSelect![key], key);
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
if (options.join.innerJoinAndSelect)
|
|
105
|
-
Object.keys(options.join.innerJoinAndSelect).forEach(key => {
|
|
106
|
-
qb.innerJoinAndSelect(options.join!.innerJoinAndSelect![key], key);
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
if (options.cache) {
|
|
111
|
-
if (options.cache instanceof Object) {
|
|
112
|
-
const cache = options.cache as { id: any, milliseconds: number };
|
|
113
|
-
qb.cache(cache.id, cache.milliseconds);
|
|
114
|
-
} else {
|
|
115
|
-
qb.cache(options.cache);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
if (options.lock) {
|
|
120
|
-
if (options.lock.mode === "optimistic") {
|
|
121
|
-
qb.setLock(options.lock.mode, options.lock.version);
|
|
122
|
-
} else if (
|
|
123
|
-
options.lock.mode === "pessimistic_read" ||
|
|
124
|
-
options.lock.mode === "pessimistic_write" ||
|
|
125
|
-
options.lock.mode === "dirty_read" ||
|
|
126
|
-
options.lock.mode === "pessimistic_partial_write" ||
|
|
127
|
-
options.lock.mode === "pessimistic_write_or_fail" ||
|
|
128
|
-
options.lock.mode === "for_no_key_update" ||
|
|
129
|
-
options.lock.mode === "for_key_share"
|
|
130
|
-
) {
|
|
131
|
-
const tableNames = options.lock.tables ? options.lock.tables.map((table) => {
|
|
132
|
-
const tableAlias = qb.expressionMap.aliases.find((alias) => {
|
|
133
|
-
return alias.metadata.tableNameWithoutPrefix === table;
|
|
134
|
-
});
|
|
135
|
-
if (!tableAlias) {
|
|
136
|
-
throw new TypeORMError(`"${table}" is not part of this query`);
|
|
137
|
-
}
|
|
138
|
-
return qb.escape(tableAlias.name);
|
|
139
|
-
}) : undefined;
|
|
140
|
-
qb.setLock(options.lock.mode, undefined, tableNames);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
if (options.loadRelationIds === true) {
|
|
145
|
-
qb.loadAllRelationIds();
|
|
146
|
-
|
|
147
|
-
} else if (options.loadRelationIds instanceof Object) {
|
|
148
|
-
qb.loadAllRelationIds(options.loadRelationIds as any);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
if (options.where)
|
|
152
|
-
qb.where(options.where);
|
|
153
|
-
|
|
154
|
-
if ((options as FindManyOptions<T>).skip)
|
|
155
|
-
qb.skip((options as FindManyOptions<T>).skip!);
|
|
156
|
-
|
|
157
|
-
if ((options as FindManyOptions<T>).take)
|
|
158
|
-
qb.take((options as FindManyOptions<T>).take!);
|
|
159
|
-
|
|
160
|
-
if (options.order)
|
|
161
|
-
Object.keys(options.order).forEach(key => {
|
|
162
|
-
const order = ((options as FindOneOptions<T>).order as any)[key as any];
|
|
163
|
-
|
|
164
|
-
if (!metadata.findColumnWithPropertyPath(key))
|
|
165
|
-
throw new Error(`${key} column was not found in the ${metadata.name} entity.`);
|
|
166
|
-
|
|
167
|
-
switch (order) {
|
|
168
|
-
case 1:
|
|
169
|
-
qb.addOrderBy(qb.alias + "." + key, "ASC");
|
|
170
|
-
break;
|
|
171
|
-
case -1:
|
|
172
|
-
qb.addOrderBy(qb.alias + "." + key, "DESC");
|
|
173
|
-
break;
|
|
174
|
-
case "ASC":
|
|
175
|
-
qb.addOrderBy(qb.alias + "." + key, "ASC");
|
|
176
|
-
break;
|
|
177
|
-
case "DESC":
|
|
178
|
-
qb.addOrderBy(qb.alias + "." + key, "DESC");
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
|
|
183
|
-
return qb;
|
|
184
|
-
}*/
|
|
185
|
-
static applyOptionsToTreeQueryBuilder<T extends ObjectLiteral>(qb: SelectQueryBuilder<T>, options?: FindTreeOptions): SelectQueryBuilder<T>;
|
|
186
|
-
/**
|
|
187
|
-
* Adds joins for all relations and sub-relations of the given relations provided in the find options.
|
|
188
|
-
*/
|
|
189
|
-
static applyRelationsRecursively(qb: SelectQueryBuilder<any>, allRelations: string[], alias: string, metadata: EntityMetadata, prefix: string): void;
|
|
190
|
-
static joinEagerRelations(qb: SelectQueryBuilder<any>, alias: string, metadata: EntityMetadata): void;
|
|
191
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { FindOperator } from "./FindOperator";
|
|
3
|
-
import { ObjectID } from "../driver/mongodb/typings";
|
|
4
|
-
import { EqualOperator } from "./EqualOperator";
|
|
5
|
-
/**
|
|
6
|
-
* A single property handler for FindOptionsWhere.
|
|
7
|
-
*/
|
|
8
|
-
export type FindOptionsWhereProperty<Property> = Property extends Promise<infer I> ? FindOptionsWhereProperty<NonNullable<I>> : Property extends Array<infer I> ? FindOptionsWhereProperty<NonNullable<I>> : Property extends Function ? never : Property extends Date ? Property | FindOperator<Property> : Property extends ObjectID ? Property | FindOperator<Property> : Property extends object ? FindOptionsWhere<Property> | FindOptionsWhere<Property>[] | EqualOperator<Property> | FindOperator<any> | boolean : Property | FindOperator<Property>;
|
|
9
|
-
/** :
|
|
10
|
-
* Used for find operations.
|
|
11
|
-
*/
|
|
12
|
-
export type FindOptionsWhere<Entity> = {
|
|
13
|
-
[P in keyof Entity]?: P extends "toString" ? unknown : FindOptionsWhereProperty<NonNullable<Entity[P]>>;
|
|
14
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/**
|
|
3
|
-
* Defines a special criteria to find specific entities.
|
|
4
|
-
*/
|
|
5
|
-
export interface FindTreeOptions {
|
|
6
|
-
/**
|
|
7
|
-
* Indicates what relations of entity should be loaded (simplified left join form).
|
|
8
|
-
*/
|
|
9
|
-
relations?: string[];
|
|
10
|
-
/**
|
|
11
|
-
* When loading a tree from a TreeRepository, limits the depth of the descendents loaded
|
|
12
|
-
*/
|
|
13
|
-
depth?: number;
|
|
14
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/**
|
|
3
|
-
* Used to specify what entity relations should be loaded.
|
|
4
|
-
*
|
|
5
|
-
* Example:
|
|
6
|
-
* const options: JoinOptions = {
|
|
7
|
-
* alias: "photo",
|
|
8
|
-
* leftJoin: {
|
|
9
|
-
* author: "photo.author",
|
|
10
|
-
* categories: "categories",
|
|
11
|
-
* user: "categories.user",
|
|
12
|
-
* profile: "user.profile"
|
|
13
|
-
* },
|
|
14
|
-
* innerJoin: {
|
|
15
|
-
* author: "photo.author",
|
|
16
|
-
* categories: "categories",
|
|
17
|
-
* user: "categories.user",
|
|
18
|
-
* profile: "user.profile"
|
|
19
|
-
* },
|
|
20
|
-
* leftJoinAndSelect: {
|
|
21
|
-
* author: "photo.author",
|
|
22
|
-
* categories: "categories",
|
|
23
|
-
* user: "categories.user",
|
|
24
|
-
* profile: "user.profile"
|
|
25
|
-
* },
|
|
26
|
-
* innerJoinAndSelect: {
|
|
27
|
-
* author: "photo.author",
|
|
28
|
-
* categories: "categories",
|
|
29
|
-
* user: "categories.user",
|
|
30
|
-
* profile: "user.profile"
|
|
31
|
-
* }
|
|
32
|
-
* };
|
|
33
|
-
*
|
|
34
|
-
* @deprecated
|
|
35
|
-
*/
|
|
36
|
-
export interface JoinOptions {
|
|
37
|
-
/**
|
|
38
|
-
* Alias of the main entity.
|
|
39
|
-
*/
|
|
40
|
-
alias: string;
|
|
41
|
-
/**
|
|
42
|
-
* Object where each key represents the LEFT JOIN alias,
|
|
43
|
-
* and the corresponding value represents the relation path.
|
|
44
|
-
*
|
|
45
|
-
* The columns of the joined table are included in the selection.
|
|
46
|
-
*/
|
|
47
|
-
leftJoinAndSelect?: {
|
|
48
|
-
[key: string]: string;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* Object where each key represents the INNER JOIN alias,
|
|
52
|
-
* and the corresponding value represents the relation path.
|
|
53
|
-
*
|
|
54
|
-
* The columns of the joined table are included in the selection.
|
|
55
|
-
*/
|
|
56
|
-
innerJoinAndSelect?: {
|
|
57
|
-
[key: string]: string;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Object where each key represents the LEFT JOIN alias,
|
|
61
|
-
* and the corresponding value represents the relation path.
|
|
62
|
-
*
|
|
63
|
-
* This method does not select the columns of the joined table.
|
|
64
|
-
*/
|
|
65
|
-
leftJoin?: {
|
|
66
|
-
[key: string]: string;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Object where each key represents the INNER JOIN alias,
|
|
70
|
-
* and the corresponding value represents the relation path.
|
|
71
|
-
*
|
|
72
|
-
* This method does not select the columns of the joined table.
|
|
73
|
-
*/
|
|
74
|
-
innerJoin?: {
|
|
75
|
-
[key: string]: string;
|
|
76
|
-
};
|
|
77
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/**
|
|
3
|
-
* Special object that defines order condition for ORDER BY in sql.
|
|
4
|
-
*
|
|
5
|
-
* Example:
|
|
6
|
-
* {
|
|
7
|
-
* "name": "ASC",
|
|
8
|
-
* "id": "DESC"
|
|
9
|
-
* }
|
|
10
|
-
*
|
|
11
|
-
* @deprecated
|
|
12
|
-
*/
|
|
13
|
-
export type OrderByCondition = {
|
|
14
|
-
[columnName: string]: ("ASC" | "DESC") | {
|
|
15
|
-
order: "ASC" | "DESC";
|
|
16
|
-
nulls?: "NULLS FIRST" | "NULLS LAST";
|
|
17
|
-
};
|
|
18
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { FindOperator } from "../FindOperator";
|
|
3
|
-
import { EqualOperator } from "../EqualOperator";
|
|
4
|
-
/**
|
|
5
|
-
* Find Options Operator.
|
|
6
|
-
* This operator is handy to provide object value for non-relational properties of the Entity.
|
|
7
|
-
*
|
|
8
|
-
* Examples:
|
|
9
|
-
* { someField: Equal("value") }
|
|
10
|
-
* { uuid: Equal(new UUID()) }
|
|
11
|
-
*/
|
|
12
|
-
export declare function Equal<T>(value: T | FindOperator<T>): EqualOperator<T>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { FindOperator } from "../FindOperator";
|
|
3
|
-
/**
|
|
4
|
-
* Find Options Operator.
|
|
5
|
-
* Used to negate expression.
|
|
6
|
-
* Example: { title: not("hello") } will return entities where title not equal to "hello".
|
|
7
|
-
*/
|
|
8
|
-
export declare function Not<T>(value: T | FindOperator<T>): FindOperator<T>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { FindOperator } from "../FindOperator";
|
|
3
|
-
import { ObjectLiteral } from "../../common/ObjectLiteral";
|
|
4
|
-
/**
|
|
5
|
-
* Find Options Operator.
|
|
6
|
-
* Example: { someField: Raw("12") }
|
|
7
|
-
*/
|
|
8
|
-
export declare function Raw<T>(value: string): FindOperator<any>;
|
|
9
|
-
/**
|
|
10
|
-
* Find Options Operator.
|
|
11
|
-
* Example: { someField: Raw((columnAlias) => `${columnAlias} = 5`) }
|
|
12
|
-
*/
|
|
13
|
-
export declare function Raw<T>(sqlGenerator: (columnAlias: string) => string): FindOperator<any>;
|
|
14
|
-
/**
|
|
15
|
-
* Find Options Operator.
|
|
16
|
-
* For escaping parameters use next syntax:
|
|
17
|
-
* Example: { someField: Raw((columnAlias) => `${columnAlias} = :value`, { value: 5 }) }
|
|
18
|
-
*/
|
|
19
|
-
export declare function Raw<T>(sqlGenerator: (columnAlias: string) => string, parameters: ObjectLiteral): FindOperator<any>;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { MetadataArgsStorage } from "./metadata-args/MetadataArgsStorage";
|
|
3
|
-
import { DataSourceOptions } from "./data-source/DataSourceOptions";
|
|
4
|
-
import { ConnectionManager } from "./connection/ConnectionManager";
|
|
5
|
-
import { DataSource } from "./data-source/DataSource";
|
|
6
|
-
import { EntityManager } from "./entity-manager/EntityManager";
|
|
7
|
-
import { SqljsEntityManager } from "./entity-manager/SqljsEntityManager";
|
|
8
|
-
import { EntityTarget } from "./common/EntityTarget";
|
|
9
|
-
import { Repository } from "./repository/Repository";
|
|
10
|
-
import { TreeRepository } from "./repository/TreeRepository";
|
|
11
|
-
import { ObjectType } from "./common/ObjectType";
|
|
12
|
-
import { SelectQueryBuilder } from "./query-builder/SelectQueryBuilder";
|
|
13
|
-
import { ObjectLiteral } from "./common/ObjectLiteral";
|
|
14
|
-
/**
|
|
15
|
-
* Gets metadata args storage.
|
|
16
|
-
*/
|
|
17
|
-
export declare function getMetadataArgsStorage(): MetadataArgsStorage;
|
|
18
|
-
/**
|
|
19
|
-
* Reads connection options stored in ormconfig configuration file.
|
|
20
|
-
*
|
|
21
|
-
* @deprecated
|
|
22
|
-
*/
|
|
23
|
-
export declare function getConnectionOptions(connectionName?: string): Promise<DataSourceOptions>;
|
|
24
|
-
/**
|
|
25
|
-
* Gets a ConnectionManager which creates connections.
|
|
26
|
-
*
|
|
27
|
-
* @deprecated
|
|
28
|
-
*/
|
|
29
|
-
export declare function getConnectionManager(): ConnectionManager;
|
|
30
|
-
/**
|
|
31
|
-
* Creates a new connection and registers it in the manager.
|
|
32
|
-
* Only one connection from ormconfig will be created (name "default" or connection without name).
|
|
33
|
-
*
|
|
34
|
-
* @deprecated
|
|
35
|
-
*/
|
|
36
|
-
export declare function createConnection(): Promise<DataSource>;
|
|
37
|
-
/**
|
|
38
|
-
* Creates a new connection from the ormconfig file with a given name.
|
|
39
|
-
*
|
|
40
|
-
* @deprecated
|
|
41
|
-
*/
|
|
42
|
-
export declare function createConnection(name: string): Promise<DataSource>;
|
|
43
|
-
/**
|
|
44
|
-
* Creates a new connection and registers it in the manager.
|
|
45
|
-
*
|
|
46
|
-
* @deprecated
|
|
47
|
-
*/
|
|
48
|
-
export declare function createConnection(options: DataSourceOptions): Promise<DataSource>;
|
|
49
|
-
/**
|
|
50
|
-
* Creates new connections and registers them in the manager.
|
|
51
|
-
*
|
|
52
|
-
* If connection options were not specified, then it will try to create connection automatically,
|
|
53
|
-
* based on content of ormconfig (json/js/yml/xml/env) file or environment variables.
|
|
54
|
-
* All connections from the ormconfig will be created.
|
|
55
|
-
*
|
|
56
|
-
* @deprecated
|
|
57
|
-
*/
|
|
58
|
-
export declare function createConnections(options?: DataSourceOptions[]): Promise<DataSource[]>;
|
|
59
|
-
/**
|
|
60
|
-
* Gets connection from the connection manager.
|
|
61
|
-
* If connection name wasn't specified, then "default" connection will be retrieved.
|
|
62
|
-
*
|
|
63
|
-
* @deprecated
|
|
64
|
-
*/
|
|
65
|
-
export declare function getConnection(connectionName?: string): DataSource;
|
|
66
|
-
/**
|
|
67
|
-
* Gets entity manager from the connection.
|
|
68
|
-
* If connection name wasn't specified, then "default" connection will be retrieved.
|
|
69
|
-
*
|
|
70
|
-
* @deprecated
|
|
71
|
-
*/
|
|
72
|
-
export declare function getManager(connectionName?: string): EntityManager;
|
|
73
|
-
/**
|
|
74
|
-
* Gets Sqljs entity manager from connection name.
|
|
75
|
-
* "default" connection is used, when no name is specified.
|
|
76
|
-
* Only works when Sqljs driver is used.
|
|
77
|
-
*
|
|
78
|
-
* @deprecated
|
|
79
|
-
*/
|
|
80
|
-
export declare function getSqljsManager(connectionName?: string): SqljsEntityManager;
|
|
81
|
-
/**
|
|
82
|
-
* Gets repository for the given entity class.
|
|
83
|
-
*
|
|
84
|
-
* @deprecated
|
|
85
|
-
*/
|
|
86
|
-
export declare function getRepository<Entity extends ObjectLiteral>(entityClass: EntityTarget<Entity>, connectionName?: string): Repository<Entity>;
|
|
87
|
-
/**
|
|
88
|
-
* Gets tree repository for the given entity class.
|
|
89
|
-
*
|
|
90
|
-
* @deprecated
|
|
91
|
-
*/
|
|
92
|
-
export declare function getTreeRepository<Entity extends ObjectLiteral>(entityClass: EntityTarget<Entity>, connectionName?: string): TreeRepository<Entity>;
|
|
93
|
-
/**
|
|
94
|
-
* Gets tree repository for the given entity class.
|
|
95
|
-
*
|
|
96
|
-
* @deprecated
|
|
97
|
-
*/
|
|
98
|
-
export declare function getCustomRepository<T>(customRepository: ObjectType<T>, connectionName?: string): T;
|
|
99
|
-
/**
|
|
100
|
-
* Creates a new query builder.
|
|
101
|
-
*
|
|
102
|
-
* @deprecated
|
|
103
|
-
*/
|
|
104
|
-
export declare function createQueryBuilder<Entity extends ObjectLiteral>(entityClass?: EntityTarget<Entity>, alias?: string, connectionName?: string): SelectQueryBuilder<Entity>;
|