taon-typeorm 19.0.21 → 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/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,306 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { Alias } from "./Alias";
|
|
3
|
-
import { ObjectLiteral } from "../common/ObjectLiteral";
|
|
4
|
-
import { OrderByCondition } from "../find-options/OrderByCondition";
|
|
5
|
-
import { JoinAttribute } from "./JoinAttribute";
|
|
6
|
-
import { QueryBuilder } from "./QueryBuilder";
|
|
7
|
-
import { QueryBuilderCteOptions } from "./QueryBuilderCte";
|
|
8
|
-
import { RelationIdAttribute } from "./relation-id/RelationIdAttribute";
|
|
9
|
-
import { RelationCountAttribute } from "./relation-count/RelationCountAttribute";
|
|
10
|
-
import { DataSource } from "../data-source/DataSource";
|
|
11
|
-
import { EntityMetadata } from "../metadata/EntityMetadata";
|
|
12
|
-
import { SelectQuery } from "./SelectQuery";
|
|
13
|
-
import { ColumnMetadata } from "../metadata/ColumnMetadata";
|
|
14
|
-
import { RelationMetadata } from "../metadata/RelationMetadata";
|
|
15
|
-
import { SelectQueryBuilderOption } from "./SelectQueryBuilderOption";
|
|
16
|
-
import { WhereClause } from "./WhereClause";
|
|
17
|
-
/**
|
|
18
|
-
* Contains all properties of the QueryBuilder that needs to be build a final query.
|
|
19
|
-
*/
|
|
20
|
-
export declare class QueryExpressionMap {
|
|
21
|
-
protected connection: DataSource;
|
|
22
|
-
/**
|
|
23
|
-
* Strategy to load relations.
|
|
24
|
-
*/
|
|
25
|
-
relationLoadStrategy: "join" | "query";
|
|
26
|
-
/**
|
|
27
|
-
* Indicates if QueryBuilder used to select entities and not a raw results.
|
|
28
|
-
*/
|
|
29
|
-
queryEntity: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Main alias is a main selection object selected by QueryBuilder.
|
|
32
|
-
*/
|
|
33
|
-
mainAlias?: Alias;
|
|
34
|
-
/**
|
|
35
|
-
* All aliases (including main alias) used in the query.
|
|
36
|
-
*/
|
|
37
|
-
aliases: Alias[];
|
|
38
|
-
/**
|
|
39
|
-
* Represents query type. QueryBuilder is able to build SELECT, UPDATE and DELETE queries.
|
|
40
|
-
*/
|
|
41
|
-
queryType: "select" | "update" | "delete" | "insert" | "relation" | "soft-delete" | "restore";
|
|
42
|
-
/**
|
|
43
|
-
* Data needs to be SELECT-ed.
|
|
44
|
-
*/
|
|
45
|
-
selects: SelectQuery[];
|
|
46
|
-
/**
|
|
47
|
-
* Max execution time in millisecond.
|
|
48
|
-
*/
|
|
49
|
-
maxExecutionTime: number;
|
|
50
|
-
/**
|
|
51
|
-
* Whether SELECT is DISTINCT.
|
|
52
|
-
*/
|
|
53
|
-
selectDistinct: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* SELECT DISTINCT ON query (postgres).
|
|
56
|
-
*/
|
|
57
|
-
selectDistinctOn: string[];
|
|
58
|
-
/**
|
|
59
|
-
* FROM-s to be selected.
|
|
60
|
-
*/
|
|
61
|
-
/**
|
|
62
|
-
* If update query was used, it needs "update set" - properties which will be updated by this query.
|
|
63
|
-
* If insert query was used, it needs "insert set" - values that needs to be inserted.
|
|
64
|
-
*/
|
|
65
|
-
valuesSet?: ObjectLiteral | ObjectLiteral[];
|
|
66
|
-
/**
|
|
67
|
-
* Optional returning (or output) clause for insert, update or delete queries.
|
|
68
|
-
*/
|
|
69
|
-
returning: string | string[];
|
|
70
|
-
/**
|
|
71
|
-
* Extra returning columns to be added to the returning statement if driver supports it.
|
|
72
|
-
*/
|
|
73
|
-
extraReturningColumns: ColumnMetadata[];
|
|
74
|
-
/**
|
|
75
|
-
* Optional on conflict statement used in insertion query in postgres.
|
|
76
|
-
*/
|
|
77
|
-
onConflict: string;
|
|
78
|
-
/**
|
|
79
|
-
* Optional on ignore statement used in insertion query in databases.
|
|
80
|
-
*/
|
|
81
|
-
onIgnore: boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Optional on update statement used in insertion query in databases.
|
|
84
|
-
*/
|
|
85
|
-
onUpdate: {
|
|
86
|
-
conflict?: string | string[];
|
|
87
|
-
columns?: string[];
|
|
88
|
-
overwrite?: string[];
|
|
89
|
-
skipUpdateIfNoValuesChanged?: boolean;
|
|
90
|
-
};
|
|
91
|
-
/**
|
|
92
|
-
* JOIN queries.
|
|
93
|
-
*/
|
|
94
|
-
joinAttributes: JoinAttribute[];
|
|
95
|
-
/**
|
|
96
|
-
* RelationId queries.
|
|
97
|
-
*/
|
|
98
|
-
relationIdAttributes: RelationIdAttribute[];
|
|
99
|
-
/**
|
|
100
|
-
* Relation count queries.
|
|
101
|
-
*/
|
|
102
|
-
relationCountAttributes: RelationCountAttribute[];
|
|
103
|
-
/**
|
|
104
|
-
* WHERE queries.
|
|
105
|
-
*/
|
|
106
|
-
wheres: WhereClause[];
|
|
107
|
-
/**
|
|
108
|
-
* HAVING queries.
|
|
109
|
-
*/
|
|
110
|
-
havings: {
|
|
111
|
-
type: "simple" | "and" | "or";
|
|
112
|
-
condition: string;
|
|
113
|
-
}[];
|
|
114
|
-
/**
|
|
115
|
-
* ORDER BY queries.
|
|
116
|
-
*/
|
|
117
|
-
orderBys: OrderByCondition;
|
|
118
|
-
/**
|
|
119
|
-
* GROUP BY queries.
|
|
120
|
-
*/
|
|
121
|
-
groupBys: string[];
|
|
122
|
-
/**
|
|
123
|
-
* LIMIT query.
|
|
124
|
-
*/
|
|
125
|
-
limit?: number;
|
|
126
|
-
/**
|
|
127
|
-
* OFFSET query.
|
|
128
|
-
*/
|
|
129
|
-
offset?: number;
|
|
130
|
-
/**
|
|
131
|
-
* Number of rows to skip of result using pagination.
|
|
132
|
-
*/
|
|
133
|
-
skip?: number;
|
|
134
|
-
/**
|
|
135
|
-
* Number of rows to take using pagination.
|
|
136
|
-
*/
|
|
137
|
-
take?: number;
|
|
138
|
-
/**
|
|
139
|
-
* Use certain index for the query.
|
|
140
|
-
*
|
|
141
|
-
* SELECT * FROM table_name USE INDEX (col1_index, col2_index) WHERE col1=1 AND col2=2 AND col3=3;
|
|
142
|
-
*/
|
|
143
|
-
useIndex?: string;
|
|
144
|
-
/**
|
|
145
|
-
* Locking mode.
|
|
146
|
-
*/
|
|
147
|
-
lockMode?: "optimistic" | "pessimistic_read" | "pessimistic_write" | "dirty_read" | "pessimistic_partial_write" | "pessimistic_write_or_fail" | "for_no_key_update" | "for_key_share";
|
|
148
|
-
/**
|
|
149
|
-
* Current version of the entity, used for locking.
|
|
150
|
-
*/
|
|
151
|
-
lockVersion?: number | Date;
|
|
152
|
-
/**
|
|
153
|
-
* Tables to be specified in the "FOR UPDATE OF" clause, referred by their alias
|
|
154
|
-
*/
|
|
155
|
-
lockTables?: string[];
|
|
156
|
-
/**
|
|
157
|
-
* Modify behavior when encountering locked rows. NOWAIT or SKIP LOCKED
|
|
158
|
-
*/
|
|
159
|
-
onLocked?: "nowait" | "skip_locked";
|
|
160
|
-
/**
|
|
161
|
-
* Indicates if soft-deleted rows should be included in entity result.
|
|
162
|
-
* By default the soft-deleted rows are not included.
|
|
163
|
-
*/
|
|
164
|
-
withDeleted: boolean;
|
|
165
|
-
/**
|
|
166
|
-
* Parameters used to be escaped in final query.
|
|
167
|
-
*/
|
|
168
|
-
parameters: ObjectLiteral;
|
|
169
|
-
/**
|
|
170
|
-
* Indicates if alias, table names and column names will be escaped by driver, or not.
|
|
171
|
-
*
|
|
172
|
-
* todo: rename to isQuotingDisabled, also think if it should be named "escaping"
|
|
173
|
-
*/
|
|
174
|
-
disableEscaping: boolean;
|
|
175
|
-
/**
|
|
176
|
-
* Indicates if virtual columns should be included in entity result.
|
|
177
|
-
*
|
|
178
|
-
* todo: what to do with it? is it properly used? what about persistence?
|
|
179
|
-
*/
|
|
180
|
-
enableRelationIdValues: boolean;
|
|
181
|
-
/**
|
|
182
|
-
* Extra where condition appended to the end of original where conditions with AND keyword.
|
|
183
|
-
* Original condition will be wrapped into brackets.
|
|
184
|
-
*/
|
|
185
|
-
extraAppendedAndWhereCondition: string;
|
|
186
|
-
/**
|
|
187
|
-
* Indicates if query builder creates a subquery.
|
|
188
|
-
*/
|
|
189
|
-
subQuery: boolean;
|
|
190
|
-
/**
|
|
191
|
-
* Indicates if property names are prefixed with alias names during property replacement.
|
|
192
|
-
* By default this is enabled, however we need this because aliases are not supported in UPDATE and DELETE queries,
|
|
193
|
-
* but user can use them in WHERE expressions.
|
|
194
|
-
*/
|
|
195
|
-
aliasNamePrefixingEnabled: boolean;
|
|
196
|
-
/**
|
|
197
|
-
* Indicates if query result cache is enabled or not.
|
|
198
|
-
*/
|
|
199
|
-
cache: boolean;
|
|
200
|
-
/**
|
|
201
|
-
* Time in milliseconds in which cache will expire.
|
|
202
|
-
* If not set then global caching time will be used.
|
|
203
|
-
*/
|
|
204
|
-
cacheDuration: number;
|
|
205
|
-
/**
|
|
206
|
-
* Cache id.
|
|
207
|
-
* Used to identifier your cache queries.
|
|
208
|
-
*/
|
|
209
|
-
cacheId: string;
|
|
210
|
-
/**
|
|
211
|
-
* Options that define QueryBuilder behaviour.
|
|
212
|
-
*/
|
|
213
|
-
options: SelectQueryBuilderOption[];
|
|
214
|
-
/**
|
|
215
|
-
* Property path of relation to work with.
|
|
216
|
-
* Used in relational query builder.
|
|
217
|
-
*/
|
|
218
|
-
relationPropertyPath: string;
|
|
219
|
-
/**
|
|
220
|
-
* Entity (target) which relations will be updated.
|
|
221
|
-
*/
|
|
222
|
-
of: any | any[];
|
|
223
|
-
/**
|
|
224
|
-
* List of columns where data should be inserted.
|
|
225
|
-
* Used in INSERT query.
|
|
226
|
-
*/
|
|
227
|
-
insertColumns: string[];
|
|
228
|
-
/**
|
|
229
|
-
* Used if user wants to update or delete a specific entities.
|
|
230
|
-
*/
|
|
231
|
-
whereEntities: ObjectLiteral[];
|
|
232
|
-
/**
|
|
233
|
-
* Indicates if entity must be updated after insertion / updation.
|
|
234
|
-
* This may produce extra query or use RETURNING / OUTPUT statement (depend on database).
|
|
235
|
-
*/
|
|
236
|
-
updateEntity: boolean;
|
|
237
|
-
/**
|
|
238
|
-
* Indicates if listeners and subscribers must be called before and after query execution.
|
|
239
|
-
*/
|
|
240
|
-
callListeners: boolean;
|
|
241
|
-
/**
|
|
242
|
-
* Indicates if query must be wrapped into transaction.
|
|
243
|
-
*/
|
|
244
|
-
useTransaction: boolean;
|
|
245
|
-
/**
|
|
246
|
-
* Extra parameters.
|
|
247
|
-
*
|
|
248
|
-
* @deprecated Use standard parameters instead
|
|
249
|
-
*/
|
|
250
|
-
nativeParameters: ObjectLiteral;
|
|
251
|
-
/**
|
|
252
|
-
* Query Comment to include extra information for debugging or other purposes.
|
|
253
|
-
*/
|
|
254
|
-
comment?: string;
|
|
255
|
-
/**
|
|
256
|
-
* Items from an entity that have been locally generated & are recorded here for later use.
|
|
257
|
-
* Examples include the UUID generation when the database does not natively support it.
|
|
258
|
-
* These are included in the entity index order.
|
|
259
|
-
*/
|
|
260
|
-
locallyGenerated: {
|
|
261
|
-
[key: number]: ObjectLiteral;
|
|
262
|
-
};
|
|
263
|
-
commonTableExpressions: {
|
|
264
|
-
queryBuilder: QueryBuilder<any> | string;
|
|
265
|
-
alias: string;
|
|
266
|
-
options: QueryBuilderCteOptions;
|
|
267
|
-
}[];
|
|
268
|
-
constructor(connection: DataSource);
|
|
269
|
-
/**
|
|
270
|
-
* Get all ORDER BY queries - if order by is specified by user then it uses them,
|
|
271
|
-
* otherwise it uses default entity order by if it was set.
|
|
272
|
-
*/
|
|
273
|
-
get allOrderBys(): OrderByCondition;
|
|
274
|
-
/**
|
|
275
|
-
* Creates a main alias and adds it to the current expression map.
|
|
276
|
-
*/
|
|
277
|
-
setMainAlias(alias: Alias): Alias;
|
|
278
|
-
/**
|
|
279
|
-
* Creates a new alias and adds it to the current expression map.
|
|
280
|
-
*/
|
|
281
|
-
createAlias(options: {
|
|
282
|
-
type: "from" | "select" | "join" | "other";
|
|
283
|
-
name?: string;
|
|
284
|
-
target?: Function | string;
|
|
285
|
-
tablePath?: string;
|
|
286
|
-
subQuery?: string;
|
|
287
|
-
metadata?: EntityMetadata;
|
|
288
|
-
}): Alias;
|
|
289
|
-
/**
|
|
290
|
-
* Finds alias with the given name.
|
|
291
|
-
* If alias was not found it throw an exception.
|
|
292
|
-
*/
|
|
293
|
-
findAliasByName(aliasName: string): Alias;
|
|
294
|
-
findColumnByAliasExpression(aliasExpression: string): ColumnMetadata | undefined;
|
|
295
|
-
/**
|
|
296
|
-
* Gets relation metadata of the relation this query builder works with.
|
|
297
|
-
*
|
|
298
|
-
* todo: add proper exceptions
|
|
299
|
-
*/
|
|
300
|
-
get relationMetadata(): RelationMetadata;
|
|
301
|
-
/**
|
|
302
|
-
* Copies all properties of the current QueryExpressionMap into a new one.
|
|
303
|
-
* Useful when QueryBuilder needs to create a copy of itself.
|
|
304
|
-
*/
|
|
305
|
-
clone(): QueryExpressionMap;
|
|
306
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { ObjectLiteral } from "../common/ObjectLiteral";
|
|
3
|
-
/**
|
|
4
|
-
* Make all properties in T optional
|
|
5
|
-
*/
|
|
6
|
-
export type QueryPartialEntity<T> = {
|
|
7
|
-
[P in keyof T]?: T[P] | (() => string);
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Make all properties in T optional. Deep version.
|
|
11
|
-
*/
|
|
12
|
-
export type QueryDeepPartialEntity<T> = _QueryDeepPartialEntity<ObjectLiteral extends T ? unknown : T>;
|
|
13
|
-
type _QueryDeepPartialEntity<T> = {
|
|
14
|
-
[P in keyof T]?: (T[P] extends Array<infer U> ? Array<_QueryDeepPartialEntity<U>> : T[P] extends ReadonlyArray<infer U> ? ReadonlyArray<_QueryDeepPartialEntity<U>> : _QueryDeepPartialEntity<T[P]>) | (() => string);
|
|
15
|
-
};
|
|
16
|
-
export {};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { RelationMetadata } from "../metadata/RelationMetadata";
|
|
3
|
-
import { DataSource } from "../data-source/DataSource";
|
|
4
|
-
import { ObjectLiteral } from "../common/ObjectLiteral";
|
|
5
|
-
import { SelectQueryBuilder } from "./SelectQueryBuilder";
|
|
6
|
-
/**
|
|
7
|
-
* Loads relation ids for the given entities.
|
|
8
|
-
*/
|
|
9
|
-
export declare class RelationIdLoader {
|
|
10
|
-
private connection;
|
|
11
|
-
constructor(connection: DataSource);
|
|
12
|
-
/**
|
|
13
|
-
* Loads relation ids of the given entity or entities.
|
|
14
|
-
*/
|
|
15
|
-
load(relation: RelationMetadata, entityOrEntities: ObjectLiteral | ObjectLiteral[], relatedEntityOrRelatedEntities?: ObjectLiteral | ObjectLiteral[]): Promise<any[]>;
|
|
16
|
-
/**
|
|
17
|
-
* Loads relation ids of the given entities and groups them into the object with parent and children.
|
|
18
|
-
*
|
|
19
|
-
* todo: extract this method?
|
|
20
|
-
*/
|
|
21
|
-
loadManyToManyRelationIdsAndGroup<E1 extends ObjectLiteral, E2 extends ObjectLiteral>(relation: RelationMetadata, entitiesOrEntities: E1 | E1[], relatedEntityOrEntities?: E2 | E2[], queryBuilder?: SelectQueryBuilder<any>): Promise<{
|
|
22
|
-
entity: E1;
|
|
23
|
-
related?: E2 | E2[];
|
|
24
|
-
}[]>;
|
|
25
|
-
/**
|
|
26
|
-
* Loads relation ids of the given entities and maps them into the given entity property.
|
|
27
|
-
async loadManyToManyRelationIdsAndMap(
|
|
28
|
-
relation: RelationMetadata,
|
|
29
|
-
entityOrEntities: ObjectLiteral|ObjectLiteral[],
|
|
30
|
-
mapToEntityOrEntities: ObjectLiteral|ObjectLiteral[],
|
|
31
|
-
propertyName: string
|
|
32
|
-
): Promise<void> {
|
|
33
|
-
const relationIds = await this.loadManyToManyRelationIds(relation, entityOrEntities, mapToEntityOrEntities);
|
|
34
|
-
const mapToEntities = mapToEntityOrEntities instanceof Array ? mapToEntityOrEntities : [mapToEntityOrEntities];
|
|
35
|
-
const junctionMetadata = relation.junctionEntityMetadata!;
|
|
36
|
-
const mainAlias = junctionMetadata.name;
|
|
37
|
-
const columns = relation.isOwning ? junctionMetadata.inverseColumns : junctionMetadata.ownerColumns;
|
|
38
|
-
const inverseColumns = relation.isOwning ? junctionMetadata.ownerColumns : junctionMetadata.inverseColumns;
|
|
39
|
-
mapToEntities.forEach(mapToEntity => {
|
|
40
|
-
mapToEntity[propertyName] = [];
|
|
41
|
-
relationIds.forEach(relationId => {
|
|
42
|
-
const match = inverseColumns.every(column => {
|
|
43
|
-
return column.referencedColumn!.getEntityValue(mapToEntity) === relationId[mainAlias + "_" + column.propertyName];
|
|
44
|
-
});
|
|
45
|
-
if (match) {
|
|
46
|
-
if (columns.length === 1) {
|
|
47
|
-
mapToEntity[propertyName].push(relationId[mainAlias + "_" + columns[0].propertyName]);
|
|
48
|
-
} else {
|
|
49
|
-
const value = {};
|
|
50
|
-
columns.forEach(column => {
|
|
51
|
-
column.referencedColumn!.setEntityValue(value, relationId[mainAlias + "_" + column.propertyName]);
|
|
52
|
-
});
|
|
53
|
-
mapToEntity[propertyName].push(value);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
}*/
|
|
59
|
-
/**
|
|
60
|
-
* Loads relation ids for the many-to-many relation.
|
|
61
|
-
*/
|
|
62
|
-
protected loadForManyToMany(relation: RelationMetadata, entities: ObjectLiteral[], relatedEntities?: ObjectLiteral[]): Promise<any[]>;
|
|
63
|
-
/**
|
|
64
|
-
* Loads relation ids for the many-to-one and one-to-one owner relations.
|
|
65
|
-
*/
|
|
66
|
-
protected loadForManyToOneAndOneToOneOwner(relation: RelationMetadata, entities: ObjectLiteral[], relatedEntities?: ObjectLiteral[]): Promise<any[]>;
|
|
67
|
-
/**
|
|
68
|
-
* Loads relation ids for the one-to-many and one-to-one not owner relations.
|
|
69
|
-
*/
|
|
70
|
-
protected loadForOneToManyAndOneToOneNotOwner(relation: RelationMetadata, entities: ObjectLiteral[], relatedEntities?: ObjectLiteral[]): Promise<any[]>;
|
|
71
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { DataSource } from "../data-source/DataSource";
|
|
3
|
-
import { ObjectLiteral } from "../common/ObjectLiteral";
|
|
4
|
-
import { QueryRunner } from "../query-runner/QueryRunner";
|
|
5
|
-
import { RelationMetadata } from "../metadata/RelationMetadata";
|
|
6
|
-
import { SelectQueryBuilder } from "./SelectQueryBuilder";
|
|
7
|
-
/**
|
|
8
|
-
* Wraps entities and creates getters/setters for their relations
|
|
9
|
-
* to be able to lazily load relations when accessing these relations.
|
|
10
|
-
*/
|
|
11
|
-
export declare class RelationLoader {
|
|
12
|
-
private connection;
|
|
13
|
-
constructor(connection: DataSource);
|
|
14
|
-
/**
|
|
15
|
-
* Loads relation data for the given entity and its relation.
|
|
16
|
-
*/
|
|
17
|
-
load(relation: RelationMetadata, entityOrEntities: ObjectLiteral | ObjectLiteral[], queryRunner?: QueryRunner, queryBuilder?: SelectQueryBuilder<any>): Promise<any[]>;
|
|
18
|
-
/**
|
|
19
|
-
* Loads data for many-to-one and one-to-one owner relations.
|
|
20
|
-
*
|
|
21
|
-
* (ow) post.category<=>category.post
|
|
22
|
-
* loaded: category from post
|
|
23
|
-
* example: SELECT category.id AS category_id, category.name AS category_name FROM category category
|
|
24
|
-
* INNER JOIN post Post ON Post.category=category.id WHERE Post.id=1
|
|
25
|
-
*/
|
|
26
|
-
loadManyToOneOrOneToOneOwner(relation: RelationMetadata, entityOrEntities: ObjectLiteral | ObjectLiteral[], queryRunner?: QueryRunner, queryBuilder?: SelectQueryBuilder<any>): Promise<any>;
|
|
27
|
-
/**
|
|
28
|
-
* Loads data for one-to-many and one-to-one not owner relations.
|
|
29
|
-
*
|
|
30
|
-
* SELECT post
|
|
31
|
-
* FROM post post
|
|
32
|
-
* WHERE post.[joinColumn.name] = entity[joinColumn.referencedColumn]
|
|
33
|
-
*/
|
|
34
|
-
loadOneToManyOrOneToOneNotOwner(relation: RelationMetadata, entityOrEntities: ObjectLiteral | ObjectLiteral[], queryRunner?: QueryRunner, queryBuilder?: SelectQueryBuilder<any>): Promise<any>;
|
|
35
|
-
/**
|
|
36
|
-
* Loads data for many-to-many owner relations.
|
|
37
|
-
*
|
|
38
|
-
* SELECT category
|
|
39
|
-
* FROM category category
|
|
40
|
-
* INNER JOIN post_categories post_categories
|
|
41
|
-
* ON post_categories.postId = :postId
|
|
42
|
-
* AND post_categories.categoryId = category.id
|
|
43
|
-
*/
|
|
44
|
-
loadManyToManyOwner(relation: RelationMetadata, entityOrEntities: ObjectLiteral | ObjectLiteral[], queryRunner?: QueryRunner, queryBuilder?: SelectQueryBuilder<any>): Promise<any>;
|
|
45
|
-
/**
|
|
46
|
-
* Loads data for many-to-many not owner relations.
|
|
47
|
-
*
|
|
48
|
-
* SELECT post
|
|
49
|
-
* FROM post post
|
|
50
|
-
* INNER JOIN post_categories post_categories
|
|
51
|
-
* ON post_categories.postId = post.id
|
|
52
|
-
* AND post_categories.categoryId = post_categories.categoryId
|
|
53
|
-
*/
|
|
54
|
-
loadManyToManyNotOwner(relation: RelationMetadata, entityOrEntities: ObjectLiteral | ObjectLiteral[], queryRunner?: QueryRunner, queryBuilder?: SelectQueryBuilder<any>): Promise<any>;
|
|
55
|
-
/**
|
|
56
|
-
* Wraps given entity and creates getters/setters for its given relation
|
|
57
|
-
* to be able to lazily load data when accessing this relation.
|
|
58
|
-
*/
|
|
59
|
-
enableLazyLoad(relation: RelationMetadata, entity: ObjectLiteral, queryRunner?: QueryRunner): void;
|
|
60
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { QueryBuilder } from "./QueryBuilder";
|
|
3
|
-
import { ObjectLiteral } from "../common/ObjectLiteral";
|
|
4
|
-
/**
|
|
5
|
-
* Allows to work with entity relations and perform specific operations with those relations.
|
|
6
|
-
*
|
|
7
|
-
* todo: add transactions everywhere
|
|
8
|
-
*/
|
|
9
|
-
export declare class RelationQueryBuilder<Entity extends ObjectLiteral> extends QueryBuilder<Entity> {
|
|
10
|
-
readonly "@instanceof": symbol;
|
|
11
|
-
/**
|
|
12
|
-
* Gets generated SQL query without parameters being replaced.
|
|
13
|
-
*/
|
|
14
|
-
getQuery(): string;
|
|
15
|
-
/**
|
|
16
|
-
* Sets entity (target) which relations will be updated.
|
|
17
|
-
*/
|
|
18
|
-
of(entity: any | any[]): this;
|
|
19
|
-
/**
|
|
20
|
-
* Sets entity relation's value.
|
|
21
|
-
* Value can be entity, entity id or entity id map (if entity has composite ids).
|
|
22
|
-
* Works only for many-to-one and one-to-one relations.
|
|
23
|
-
* For many-to-many and one-to-many relations use #add and #remove methods instead.
|
|
24
|
-
*/
|
|
25
|
-
set(value: any): Promise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* Adds (binds) given value to entity relation.
|
|
28
|
-
* Value can be entity, entity id or entity id map (if entity has composite ids).
|
|
29
|
-
* Value also can be array of entities, array of entity ids or array of entity id maps (if entity has composite ids).
|
|
30
|
-
* Works only for many-to-many and one-to-many relations.
|
|
31
|
-
* For many-to-one and one-to-one use #set method instead.
|
|
32
|
-
*/
|
|
33
|
-
add(value: any | any[]): Promise<void>;
|
|
34
|
-
/**
|
|
35
|
-
* Removes (unbinds) given value from entity relation.
|
|
36
|
-
* Value can be entity, entity id or entity id map (if entity has composite ids).
|
|
37
|
-
* Value also can be array of entities, array of entity ids or array of entity id maps (if entity has composite ids).
|
|
38
|
-
* Works only for many-to-many and one-to-many relations.
|
|
39
|
-
* For many-to-one and one-to-one use #set method instead.
|
|
40
|
-
*/
|
|
41
|
-
remove(value: any | any[]): Promise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* Adds (binds) and removes (unbinds) given values to/from entity relation.
|
|
44
|
-
* Value can be entity, entity id or entity id map (if entity has composite ids).
|
|
45
|
-
* Value also can be array of entities, array of entity ids or array of entity id maps (if entity has composite ids).
|
|
46
|
-
* Works only for many-to-many and one-to-many relations.
|
|
47
|
-
* For many-to-one and one-to-one use #set method instead.
|
|
48
|
-
*/
|
|
49
|
-
addAndRemove(added: any | any[], removed: any | any[]): Promise<void>;
|
|
50
|
-
/**
|
|
51
|
-
* Gets entity's relation id.
|
|
52
|
-
async getId(): Promise<any> {
|
|
53
|
-
|
|
54
|
-
}*/
|
|
55
|
-
/**
|
|
56
|
-
* Gets entity's relation ids.
|
|
57
|
-
async getIds(): Promise<any[]> {
|
|
58
|
-
return [];
|
|
59
|
-
}*/
|
|
60
|
-
/**
|
|
61
|
-
* Loads a single entity (relational) from the relation.
|
|
62
|
-
* You can also provide id of relational entity to filter by.
|
|
63
|
-
*/
|
|
64
|
-
loadOne<T = any>(): Promise<T | undefined>;
|
|
65
|
-
/**
|
|
66
|
-
* Loads many entities (relational) from the relation.
|
|
67
|
-
* You can also provide ids of relational entities to filter by.
|
|
68
|
-
*/
|
|
69
|
-
loadMany<T = any>(): Promise<T[]>;
|
|
70
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { QueryBuilder } from "./QueryBuilder";
|
|
3
|
-
import { QueryExpressionMap } from "./QueryExpressionMap";
|
|
4
|
-
/**
|
|
5
|
-
* Allows to work with entity relations and perform specific operations with those relations.
|
|
6
|
-
*
|
|
7
|
-
* todo: add transactions everywhere
|
|
8
|
-
*/
|
|
9
|
-
export declare class RelationRemover {
|
|
10
|
-
protected queryBuilder: QueryBuilder<any>;
|
|
11
|
-
protected expressionMap: QueryExpressionMap;
|
|
12
|
-
constructor(queryBuilder: QueryBuilder<any>, expressionMap: QueryExpressionMap);
|
|
13
|
-
/**
|
|
14
|
-
* Performs remove operation on a relation.
|
|
15
|
-
*/
|
|
16
|
-
remove(value: any | any[]): Promise<void>;
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { QueryBuilder } from "./QueryBuilder";
|
|
3
|
-
import { QueryExpressionMap } from "./QueryExpressionMap";
|
|
4
|
-
/**
|
|
5
|
-
* Allows to work with entity relations and perform specific operations with those relations.
|
|
6
|
-
*
|
|
7
|
-
* todo: add transactions everywhere
|
|
8
|
-
*/
|
|
9
|
-
export declare class RelationUpdater {
|
|
10
|
-
protected queryBuilder: QueryBuilder<any>;
|
|
11
|
-
protected expressionMap: QueryExpressionMap;
|
|
12
|
-
constructor(queryBuilder: QueryBuilder<any>, expressionMap: QueryExpressionMap);
|
|
13
|
-
/**
|
|
14
|
-
* Performs set or add operation on a relation.
|
|
15
|
-
*/
|
|
16
|
-
update(value: any | any[]): Promise<void>;
|
|
17
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { ObjectLiteral } from "../common/ObjectLiteral";
|
|
3
|
-
import { QueryRunner } from "../query-runner/QueryRunner";
|
|
4
|
-
import { QueryExpressionMap } from "./QueryExpressionMap";
|
|
5
|
-
import { ColumnMetadata } from "../metadata/ColumnMetadata";
|
|
6
|
-
import { UpdateResult } from "./result/UpdateResult";
|
|
7
|
-
import { InsertResult } from "./result/InsertResult";
|
|
8
|
-
/**
|
|
9
|
-
* Updates entity with returning results in the entity insert and update operations.
|
|
10
|
-
*/
|
|
11
|
-
export declare class ReturningResultsEntityUpdator {
|
|
12
|
-
protected queryRunner: QueryRunner;
|
|
13
|
-
protected expressionMap: QueryExpressionMap;
|
|
14
|
-
constructor(queryRunner: QueryRunner, expressionMap: QueryExpressionMap);
|
|
15
|
-
/**
|
|
16
|
-
* Updates entities with a special columns after updation query execution.
|
|
17
|
-
*/
|
|
18
|
-
update(updateResult: UpdateResult, entities: ObjectLiteral[]): Promise<void>;
|
|
19
|
-
/**
|
|
20
|
-
* Updates entities with a special columns after insertion query execution.
|
|
21
|
-
*/
|
|
22
|
-
insert(insertResult: InsertResult, entities: ObjectLiteral[]): Promise<void>;
|
|
23
|
-
/**
|
|
24
|
-
* Columns we need to be returned from the database when we update entity.
|
|
25
|
-
*/
|
|
26
|
-
getUpdationReturningColumns(): ColumnMetadata[];
|
|
27
|
-
/**
|
|
28
|
-
* Columns we need to be returned from the database when we soft delete and restore entity.
|
|
29
|
-
*/
|
|
30
|
-
getSoftDeletionReturningColumns(): ColumnMetadata[];
|
|
31
|
-
}
|