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,359 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { TableColumn } from "../schema-builder/table/TableColumn";
|
|
3
|
-
import { Table } from "../schema-builder/table/Table";
|
|
4
|
-
import { TableForeignKey } from "../schema-builder/table/TableForeignKey";
|
|
5
|
-
import { TableIndex } from "../schema-builder/table/TableIndex";
|
|
6
|
-
import { DataSource } from "../data-source/DataSource";
|
|
7
|
-
import { EntityManager } from "../entity-manager/EntityManager";
|
|
8
|
-
import { ObjectLiteral } from "../common/ObjectLiteral";
|
|
9
|
-
import { SqlInMemory } from "../driver/SqlInMemory";
|
|
10
|
-
import { TableUnique } from "../schema-builder/table/TableUnique";
|
|
11
|
-
import { View } from "../schema-builder/view/View";
|
|
12
|
-
import { Broadcaster } from "../subscriber/Broadcaster";
|
|
13
|
-
import { TableCheck } from "../schema-builder/table/TableCheck";
|
|
14
|
-
import { IsolationLevel } from "../driver/types/IsolationLevel";
|
|
15
|
-
import { TableExclusion } from "../schema-builder/table/TableExclusion";
|
|
16
|
-
import { QueryResult } from "./QueryResult";
|
|
17
|
-
import { ReplicationMode } from "../driver/types/ReplicationMode";
|
|
18
|
-
/**
|
|
19
|
-
* Runs queries on a single database connection.
|
|
20
|
-
*/
|
|
21
|
-
export interface QueryRunner {
|
|
22
|
-
/**
|
|
23
|
-
* Connection used by this query runner.
|
|
24
|
-
*/
|
|
25
|
-
readonly connection: DataSource;
|
|
26
|
-
/**
|
|
27
|
-
* Broadcaster used on this query runner to broadcast entity events.
|
|
28
|
-
*/
|
|
29
|
-
readonly broadcaster: Broadcaster;
|
|
30
|
-
/**
|
|
31
|
-
* Entity manager working only with this query runner.
|
|
32
|
-
*/
|
|
33
|
-
readonly manager: EntityManager;
|
|
34
|
-
/**
|
|
35
|
-
* Indicates if connection for this query runner is released.
|
|
36
|
-
* Once its released, query runner cannot run queries anymore.
|
|
37
|
-
*/
|
|
38
|
-
readonly isReleased: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Indicates if transaction is in progress.
|
|
41
|
-
*/
|
|
42
|
-
readonly isTransactionActive: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Stores temporarily user data.
|
|
45
|
-
* Useful for sharing data with subscribers.
|
|
46
|
-
*/
|
|
47
|
-
data: ObjectLiteral;
|
|
48
|
-
/**
|
|
49
|
-
* All synchronized tables in the database.
|
|
50
|
-
*
|
|
51
|
-
* @deprecated Call `getTables()`
|
|
52
|
-
*/
|
|
53
|
-
loadedTables: Table[];
|
|
54
|
-
/**
|
|
55
|
-
* All synchronized views in the database.
|
|
56
|
-
*
|
|
57
|
-
* @deprecated Call `getViews()`
|
|
58
|
-
*/
|
|
59
|
-
loadedViews: View[];
|
|
60
|
-
/**
|
|
61
|
-
* Creates/uses database connection from the connection pool to perform further operations.
|
|
62
|
-
* Returns obtained database connection.
|
|
63
|
-
*/
|
|
64
|
-
connect(): Promise<any>;
|
|
65
|
-
/**
|
|
66
|
-
* Called before migrations are run.
|
|
67
|
-
*/
|
|
68
|
-
beforeMigration(): Promise<void>;
|
|
69
|
-
/**
|
|
70
|
-
* Called after migrations are run.
|
|
71
|
-
*/
|
|
72
|
-
afterMigration(): Promise<void>;
|
|
73
|
-
/**
|
|
74
|
-
* Releases used database connection.
|
|
75
|
-
* You cannot use query runner methods after connection is released.
|
|
76
|
-
*/
|
|
77
|
-
release(): Promise<void>;
|
|
78
|
-
/**
|
|
79
|
-
* Removes all tables from the currently connected database.
|
|
80
|
-
* Be careful with using this method and avoid using it in production or migrations
|
|
81
|
-
* (because it can clear all your database).
|
|
82
|
-
*/
|
|
83
|
-
clearDatabase(database?: string): Promise<void>;
|
|
84
|
-
/**
|
|
85
|
-
* Starts transaction.
|
|
86
|
-
*/
|
|
87
|
-
startTransaction(isolationLevel?: IsolationLevel): Promise<void>;
|
|
88
|
-
/**
|
|
89
|
-
* Commits transaction.
|
|
90
|
-
* Error will be thrown if transaction was not started.
|
|
91
|
-
*/
|
|
92
|
-
commitTransaction(): Promise<void>;
|
|
93
|
-
/**
|
|
94
|
-
* Rollbacks transaction.
|
|
95
|
-
* Error will be thrown if transaction was not started.
|
|
96
|
-
*/
|
|
97
|
-
rollbackTransaction(): Promise<void>;
|
|
98
|
-
/**
|
|
99
|
-
* Executes a given SQL query and returns raw database results.
|
|
100
|
-
*/
|
|
101
|
-
query(query: string, parameters: any[] | undefined, useStructuredResult: true): Promise<QueryResult>;
|
|
102
|
-
/**
|
|
103
|
-
* Executes a given SQL query and returns raw database results.
|
|
104
|
-
*/
|
|
105
|
-
query(query: string, parameters?: any[]): Promise<any>;
|
|
106
|
-
/**
|
|
107
|
-
* Returns raw data stream.
|
|
108
|
-
*/
|
|
109
|
-
stream(query: string, parameters?: any[], onEnd?: Function, onError?: Function): any;
|
|
110
|
-
/**
|
|
111
|
-
* Returns all available database names including system databases.
|
|
112
|
-
*/
|
|
113
|
-
getDatabases(): Promise<string[]>;
|
|
114
|
-
/**
|
|
115
|
-
* Returns all available schema names including system schemas.
|
|
116
|
-
* If database parameter specified, returns schemas of that database.
|
|
117
|
-
* Useful for SQLServer and Postgres only.
|
|
118
|
-
*/
|
|
119
|
-
getSchemas(database?: string): Promise<string[]>;
|
|
120
|
-
/**
|
|
121
|
-
* Loads a table by a given name from the database.
|
|
122
|
-
*/
|
|
123
|
-
getTable(tablePath: string): Promise<Table | undefined>;
|
|
124
|
-
/**
|
|
125
|
-
* Loads all tables from the database and returns them.
|
|
126
|
-
*/
|
|
127
|
-
getTables(tablePaths?: string[]): Promise<Table[]>;
|
|
128
|
-
/**
|
|
129
|
-
* Loads a view by a given name from the database.
|
|
130
|
-
*/
|
|
131
|
-
getView(viewPath: string): Promise<View | undefined>;
|
|
132
|
-
/**
|
|
133
|
-
* Loads all views from the database and returns them.
|
|
134
|
-
*/
|
|
135
|
-
getViews(viewPaths?: string[]): Promise<View[]>;
|
|
136
|
-
/**
|
|
137
|
-
* Returns replication mode (ex: `master` or `slave`).
|
|
138
|
-
*/
|
|
139
|
-
getReplicationMode(): ReplicationMode;
|
|
140
|
-
/**
|
|
141
|
-
* Checks if a database with the given name exist.
|
|
142
|
-
*/
|
|
143
|
-
hasDatabase(database: string): Promise<boolean>;
|
|
144
|
-
/**
|
|
145
|
-
* Loads currently using database
|
|
146
|
-
*/
|
|
147
|
-
getCurrentDatabase(): Promise<string | undefined>;
|
|
148
|
-
/**
|
|
149
|
-
* Checks if a schema with the given name exist.
|
|
150
|
-
*/
|
|
151
|
-
hasSchema(schema: string): Promise<boolean>;
|
|
152
|
-
/**
|
|
153
|
-
* Loads currently using database schema
|
|
154
|
-
*/
|
|
155
|
-
getCurrentSchema(): Promise<string | undefined>;
|
|
156
|
-
/**
|
|
157
|
-
* Checks if a table with the given name exist.
|
|
158
|
-
*/
|
|
159
|
-
hasTable(table: Table | string): Promise<boolean>;
|
|
160
|
-
/**
|
|
161
|
-
* Checks if a column exist in the table.
|
|
162
|
-
*/
|
|
163
|
-
hasColumn(table: Table | string, columnName: string): Promise<boolean>;
|
|
164
|
-
/**
|
|
165
|
-
* Creates a new database.
|
|
166
|
-
*/
|
|
167
|
-
createDatabase(database: string, ifNotExist?: boolean): Promise<void>;
|
|
168
|
-
/**
|
|
169
|
-
* Drops database.
|
|
170
|
-
*/
|
|
171
|
-
dropDatabase(database: string, ifExist?: boolean): Promise<void>;
|
|
172
|
-
/**
|
|
173
|
-
* Creates a new table schema.
|
|
174
|
-
*/
|
|
175
|
-
createSchema(schemaPath: string, ifNotExist?: boolean): Promise<void>;
|
|
176
|
-
/**
|
|
177
|
-
* Drops table schema.
|
|
178
|
-
* For SqlServer can accept schema path (e.g. 'dbName.schemaName') as parameter.
|
|
179
|
-
* If schema path passed, it will drop schema in specified database.
|
|
180
|
-
*/
|
|
181
|
-
dropSchema(schemaPath: string, ifExist?: boolean, isCascade?: boolean): Promise<void>;
|
|
182
|
-
/**
|
|
183
|
-
* Creates a new table.
|
|
184
|
-
*/
|
|
185
|
-
createTable(table: Table, ifNotExist?: boolean, createForeignKeys?: boolean, createIndices?: boolean): Promise<void>;
|
|
186
|
-
/**
|
|
187
|
-
* Drops a table.
|
|
188
|
-
*/
|
|
189
|
-
dropTable(table: Table | string, ifExist?: boolean, dropForeignKeys?: boolean, dropIndices?: boolean): Promise<void>;
|
|
190
|
-
/**
|
|
191
|
-
* Creates a new view.
|
|
192
|
-
*/
|
|
193
|
-
createView(view: View, syncWithMetadata?: boolean, oldView?: View): Promise<void>;
|
|
194
|
-
/**
|
|
195
|
-
* Drops a view.
|
|
196
|
-
*/
|
|
197
|
-
dropView(view: View | string): Promise<void>;
|
|
198
|
-
/**
|
|
199
|
-
* Renames a table.
|
|
200
|
-
*/
|
|
201
|
-
renameTable(oldTableOrName: Table | string, newTableName: string): Promise<void>;
|
|
202
|
-
/**
|
|
203
|
-
* Adds a new column.
|
|
204
|
-
*/
|
|
205
|
-
addColumn(table: Table | string, column: TableColumn): Promise<void>;
|
|
206
|
-
/**
|
|
207
|
-
* Adds new columns.
|
|
208
|
-
*/
|
|
209
|
-
addColumns(table: Table | string, columns: TableColumn[]): Promise<void>;
|
|
210
|
-
/**
|
|
211
|
-
* Renames a column.
|
|
212
|
-
*/
|
|
213
|
-
renameColumn(table: Table | string, oldColumnOrName: TableColumn | string, newColumnOrName: TableColumn | string): Promise<void>;
|
|
214
|
-
/**
|
|
215
|
-
* Changes a column in the table.
|
|
216
|
-
*/
|
|
217
|
-
changeColumn(table: Table | string, oldColumn: TableColumn | string, newColumn: TableColumn): Promise<void>;
|
|
218
|
-
/**
|
|
219
|
-
* Changes columns in the table.
|
|
220
|
-
*/
|
|
221
|
-
changeColumns(table: Table | string, changedColumns: {
|
|
222
|
-
oldColumn: TableColumn;
|
|
223
|
-
newColumn: TableColumn;
|
|
224
|
-
}[]): Promise<void>;
|
|
225
|
-
/**
|
|
226
|
-
* Drops a column in the table.
|
|
227
|
-
*/
|
|
228
|
-
dropColumn(table: Table | string, column: TableColumn | string): Promise<void>;
|
|
229
|
-
/**
|
|
230
|
-
* Drops columns in the table.
|
|
231
|
-
*/
|
|
232
|
-
dropColumns(table: Table | string, columns: TableColumn[] | string[]): Promise<void>;
|
|
233
|
-
/**
|
|
234
|
-
* Creates a new primary key.
|
|
235
|
-
*/
|
|
236
|
-
createPrimaryKey(table: Table | string, columnNames: string[], constraintName?: string): Promise<void>;
|
|
237
|
-
/**
|
|
238
|
-
* Updates composite primary keys.
|
|
239
|
-
*/
|
|
240
|
-
updatePrimaryKeys(table: Table | string, columns: TableColumn[]): Promise<void>;
|
|
241
|
-
/**
|
|
242
|
-
* Drops a primary key.
|
|
243
|
-
*/
|
|
244
|
-
dropPrimaryKey(table: Table | string, constraintName?: string): Promise<void>;
|
|
245
|
-
/**
|
|
246
|
-
* Creates a new unique constraint.
|
|
247
|
-
*/
|
|
248
|
-
createUniqueConstraint(table: Table | string, uniqueConstraint: TableUnique): Promise<void>;
|
|
249
|
-
/**
|
|
250
|
-
* Creates new unique constraints.
|
|
251
|
-
*/
|
|
252
|
-
createUniqueConstraints(table: Table | string, uniqueConstraints: TableUnique[]): Promise<void>;
|
|
253
|
-
/**
|
|
254
|
-
* Drops an unique constraint.
|
|
255
|
-
*/
|
|
256
|
-
dropUniqueConstraint(table: Table | string, uniqueOrName: TableUnique | string): Promise<void>;
|
|
257
|
-
/**
|
|
258
|
-
* Drops unique constraints.
|
|
259
|
-
*/
|
|
260
|
-
dropUniqueConstraints(table: Table | string, uniqueConstraints: TableUnique[]): Promise<void>;
|
|
261
|
-
/**
|
|
262
|
-
* Creates a new check constraint.
|
|
263
|
-
*/
|
|
264
|
-
createCheckConstraint(table: Table | string, checkConstraint: TableCheck): Promise<void>;
|
|
265
|
-
/**
|
|
266
|
-
* Creates new check constraints.
|
|
267
|
-
*/
|
|
268
|
-
createCheckConstraints(table: Table | string, checkConstraints: TableCheck[]): Promise<void>;
|
|
269
|
-
/**
|
|
270
|
-
* Drops a check constraint.
|
|
271
|
-
*/
|
|
272
|
-
dropCheckConstraint(table: Table | string, checkOrName: TableCheck | string): Promise<void>;
|
|
273
|
-
/**
|
|
274
|
-
* Drops check constraints.
|
|
275
|
-
*/
|
|
276
|
-
dropCheckConstraints(table: Table | string, checkConstraints: TableCheck[]): Promise<void>;
|
|
277
|
-
/**
|
|
278
|
-
* Creates a new exclusion constraint.
|
|
279
|
-
*/
|
|
280
|
-
createExclusionConstraint(table: Table | string, exclusionConstraint: TableExclusion): Promise<void>;
|
|
281
|
-
/**
|
|
282
|
-
* Creates new exclusion constraints.
|
|
283
|
-
*/
|
|
284
|
-
createExclusionConstraints(table: Table | string, exclusionConstraints: TableExclusion[]): Promise<void>;
|
|
285
|
-
/**
|
|
286
|
-
* Drops a exclusion constraint.
|
|
287
|
-
*/
|
|
288
|
-
dropExclusionConstraint(table: Table | string, exclusionOrName: TableExclusion | string): Promise<void>;
|
|
289
|
-
/**
|
|
290
|
-
* Drops exclusion constraints.
|
|
291
|
-
*/
|
|
292
|
-
dropExclusionConstraints(table: Table | string, exclusionConstraints: TableExclusion[]): Promise<void>;
|
|
293
|
-
/**
|
|
294
|
-
* Creates a new foreign key.
|
|
295
|
-
*/
|
|
296
|
-
createForeignKey(table: Table | string, foreignKey: TableForeignKey): Promise<void>;
|
|
297
|
-
/**
|
|
298
|
-
* Creates new foreign keys.
|
|
299
|
-
*/
|
|
300
|
-
createForeignKeys(table: Table | string, foreignKeys: TableForeignKey[]): Promise<void>;
|
|
301
|
-
/**
|
|
302
|
-
* Drops a foreign key.
|
|
303
|
-
*/
|
|
304
|
-
dropForeignKey(table: Table | string, foreignKeyOrName: TableForeignKey | string): Promise<void>;
|
|
305
|
-
/**
|
|
306
|
-
* Drops foreign keys.
|
|
307
|
-
*/
|
|
308
|
-
dropForeignKeys(table: Table | string, foreignKeys: TableForeignKey[]): Promise<void>;
|
|
309
|
-
/**
|
|
310
|
-
* Creates a new index.
|
|
311
|
-
*/
|
|
312
|
-
createIndex(table: Table | string, index: TableIndex): Promise<void>;
|
|
313
|
-
/**
|
|
314
|
-
* Creates new indices.
|
|
315
|
-
*/
|
|
316
|
-
createIndices(table: Table | string, indices: TableIndex[]): Promise<void>;
|
|
317
|
-
/**
|
|
318
|
-
* Drops an index.
|
|
319
|
-
*/
|
|
320
|
-
dropIndex(table: Table | string, index: TableIndex | string): Promise<void>;
|
|
321
|
-
/**
|
|
322
|
-
* Drops indices.
|
|
323
|
-
*/
|
|
324
|
-
dropIndices(table: Table | string, indices: TableIndex[]): Promise<void>;
|
|
325
|
-
/**
|
|
326
|
-
* Clears all table contents.
|
|
327
|
-
* Note: this operation uses SQL's TRUNCATE query which cannot be reverted in transactions.
|
|
328
|
-
*/
|
|
329
|
-
clearTable(tableName: string): Promise<void>;
|
|
330
|
-
/**
|
|
331
|
-
* Enables special query runner mode in which sql queries won't be executed,
|
|
332
|
-
* instead they will be memorized into a special variable inside query runner.
|
|
333
|
-
* You can get memorized sql using getMemorySql() method.
|
|
334
|
-
*/
|
|
335
|
-
enableSqlMemory(): void;
|
|
336
|
-
/**
|
|
337
|
-
* Disables special query runner mode in which sql queries won't be executed
|
|
338
|
-
* started by calling enableSqlMemory() method.
|
|
339
|
-
*
|
|
340
|
-
* Previously memorized sql will be flushed.
|
|
341
|
-
*/
|
|
342
|
-
disableSqlMemory(): void;
|
|
343
|
-
/**
|
|
344
|
-
* Flushes all memorized sqls.
|
|
345
|
-
*/
|
|
346
|
-
clearSqlMemory(): void;
|
|
347
|
-
/**
|
|
348
|
-
* Gets sql stored in the memory. Parameters in the sql are already replaced.
|
|
349
|
-
*/
|
|
350
|
-
getMemorySql(): SqlInMemory;
|
|
351
|
-
/**
|
|
352
|
-
* Executes up sql queries.
|
|
353
|
-
*/
|
|
354
|
-
executeMemoryUpSql(): Promise<void>;
|
|
355
|
-
/**
|
|
356
|
-
* Executes down sql queries.
|
|
357
|
-
*/
|
|
358
|
-
executeMemoryDownSql(): Promise<void>;
|
|
359
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
type Join<K, P> = K extends string ? P extends string ? `${K}.${P}` : never : never;
|
|
3
|
-
export type RelationPath<T, Depth extends number = 3> = Depth extends 0 ? never : {
|
|
4
|
-
[K in keyof T]: T[K] extends object ? T[K] extends Array<infer U> ? K | Join<K, RelationPath<U, Prev[Depth]>> : K | Join<K, RelationPath<T[K], Prev[Depth]>> : K;
|
|
5
|
-
}[keyof T];
|
|
6
|
-
type Prev = [never, 0, 1, 2, 3, 4, 5, 6];
|
|
7
|
-
export {};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { ObjectLiteral } from "../common/ObjectLiteral";
|
|
3
|
-
import { EntityManager } from "../entity-manager/EntityManager";
|
|
4
|
-
import { Repository } from "./Repository";
|
|
5
|
-
import { TreeRepository } from "./TreeRepository";
|
|
6
|
-
import { ObjectType } from "../common/ObjectType";
|
|
7
|
-
import { SelectQueryBuilder } from "../query-builder/SelectQueryBuilder";
|
|
8
|
-
/**
|
|
9
|
-
* Provides abstract class for custom repositories that do not inherit from original orm Repository.
|
|
10
|
-
* Contains all most-necessary methods to simplify code in the custom repository.
|
|
11
|
-
* All methods are protected thus not exposed and it allows to create encapsulated custom repository.
|
|
12
|
-
*
|
|
13
|
-
* @deprecated use Repository.extend function to create a custom repository
|
|
14
|
-
*/
|
|
15
|
-
export declare class AbstractRepository<Entity extends ObjectLiteral> {
|
|
16
|
-
/**
|
|
17
|
-
* Gets entity manager that allows to perform repository operations with any entity.
|
|
18
|
-
*/
|
|
19
|
-
protected manager: EntityManager;
|
|
20
|
-
/**
|
|
21
|
-
* Gets the original ORM repository for the entity that is managed by this repository.
|
|
22
|
-
* If current repository does not manage any entity, then exception will be thrown.
|
|
23
|
-
*/
|
|
24
|
-
protected get repository(): Repository<Entity>;
|
|
25
|
-
/**
|
|
26
|
-
* Gets the original ORM tree repository for the entity that is managed by this repository.
|
|
27
|
-
* If current repository does not manage any entity, then exception will be thrown.
|
|
28
|
-
*/
|
|
29
|
-
protected get treeRepository(): TreeRepository<Entity>;
|
|
30
|
-
/**
|
|
31
|
-
* Creates a new query builder for the repository's entity that can be used to build a SQL query.
|
|
32
|
-
* If current repository does not manage any entity, then exception will be thrown.
|
|
33
|
-
*/
|
|
34
|
-
protected createQueryBuilder(alias: string): SelectQueryBuilder<Entity>;
|
|
35
|
-
/**
|
|
36
|
-
* Creates a new query builder for the given entity that can be used to build a SQL query.
|
|
37
|
-
*/
|
|
38
|
-
protected createQueryBuilderFor<T extends ObjectLiteral>(entity: ObjectType<T>, alias: string): SelectQueryBuilder<T>;
|
|
39
|
-
/**
|
|
40
|
-
* Gets the original ORM repository for the given entity class.
|
|
41
|
-
*/
|
|
42
|
-
protected getRepositoryFor<T extends ObjectLiteral>(entity: ObjectType<T>): Repository<T>;
|
|
43
|
-
/**
|
|
44
|
-
* Gets the original ORM tree repository for the given entity class.
|
|
45
|
-
*/
|
|
46
|
-
protected getTreeRepositoryFor<T extends ObjectLiteral>(entity: ObjectType<T>): TreeRepository<T>;
|
|
47
|
-
/**
|
|
48
|
-
* Gets custom repository's managed entity.
|
|
49
|
-
* If given custom repository does not manage any entity then undefined will be returned.
|
|
50
|
-
*/
|
|
51
|
-
private getCustomRepositoryTarget;
|
|
52
|
-
}
|