lakutata 2.0.25 → 2.0.26
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/com/database.cjs +16 -16
- package/com/database.mjs +16 -16
- package/com/docker.cjs +14 -14
- package/com/docker.mjs +14 -14
- package/com/entrypoint.cjs +9 -9
- package/com/entrypoint.mjs +9 -9
- package/com/logger.cjs +12 -12
- package/com/logger.mjs +12 -12
- package/decorator/asst.cjs +2 -2
- package/decorator/asst.mjs +2 -2
- package/decorator/ctrl.cjs +4 -4
- package/decorator/ctrl.mjs +4 -4
- package/decorator/di.cjs +3 -3
- package/decorator/di.mjs +3 -3
- package/decorator/dto.cjs +3 -3
- package/decorator/dto.mjs +3 -3
- package/decorator/orm.cjs +21 -21
- package/decorator/orm.d.ts +1 -1
- package/decorator/orm.mjs +21 -21
- package/helper.cjs +5 -5
- package/helper.mjs +5 -5
- package/lakutata.cjs +13 -13
- package/lakutata.mjs +13 -13
- package/orm.cjs +22 -22
- package/orm.d.ts +2 -2
- package/orm.mjs +34 -34
- package/package.json +6 -1
- package/provider/database.cjs +196 -0
- package/provider/database.d.ts +189 -0
- package/provider/database.mjs +183 -0
- package/src/components/Database.cjs +15 -15
- package/src/components/Database.mjs +15 -15
- package/src/components/Logger.cjs +12 -12
- package/src/components/Logger.mjs +12 -12
- package/src/components/docker/ConnectionOptionsBuilder.cjs +14 -14
- package/src/components/docker/ConnectionOptionsBuilder.mjs +14 -14
- package/src/components/docker/Docker.cjs +11 -11
- package/src/components/docker/Docker.mjs +11 -11
- package/src/components/docker/exceptions/DockerConnectionException.cjs +1 -1
- package/src/components/docker/exceptions/DockerConnectionException.mjs +1 -1
- package/src/components/docker/exceptions/DockerImageBuildException.cjs +1 -1
- package/src/components/docker/exceptions/DockerImageBuildException.mjs +1 -1
- package/src/components/docker/exceptions/DockerImageImportException.cjs +1 -1
- package/src/components/docker/exceptions/DockerImageImportException.mjs +1 -1
- package/src/components/docker/exceptions/DockerImageNotFoundException.cjs +1 -1
- package/src/components/docker/exceptions/DockerImageNotFoundException.mjs +1 -1
- package/src/components/docker/exceptions/DockerImagePullException.cjs +1 -1
- package/src/components/docker/exceptions/DockerImagePullException.mjs +1 -1
- package/src/components/docker/exceptions/DockerImagePushException.cjs +1 -1
- package/src/components/docker/exceptions/DockerImagePushException.mjs +1 -1
- package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.cjs +1 -1
- package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.mjs +1 -1
- package/src/components/docker/exceptions/DockerNetworkNotFoundException.cjs +1 -1
- package/src/components/docker/exceptions/DockerNetworkNotFoundException.mjs +1 -1
- package/src/components/docker/lib/DockerContainer.cjs +14 -14
- package/src/components/docker/lib/DockerContainer.mjs +14 -14
- package/src/components/docker/lib/DockerContainerTTY.cjs +14 -14
- package/src/components/docker/lib/DockerContainerTTY.mjs +14 -14
- package/src/components/docker/lib/DockerImage.cjs +8 -8
- package/src/components/docker/lib/DockerImage.mjs +8 -8
- package/src/components/docker/options/DockerPruneOptions.cjs +3 -3
- package/src/components/docker/options/DockerPruneOptions.mjs +3 -3
- package/src/components/docker/options/auth/DockerAuthOptions.cjs +3 -3
- package/src/components/docker/options/auth/DockerAuthOptions.mjs +3 -3
- package/src/components/docker/options/container/ContainerCommitOptions.cjs +3 -3
- package/src/components/docker/options/container/ContainerCommitOptions.mjs +3 -3
- package/src/components/docker/options/container/ContainerCreateTTYOptions.cjs +3 -3
- package/src/components/docker/options/container/ContainerCreateTTYOptions.mjs +3 -3
- package/src/components/docker/options/container/ContainerExecOptions.cjs +3 -3
- package/src/components/docker/options/container/ContainerExecOptions.mjs +3 -3
- package/src/components/docker/options/container/ContainerExportDirectoryOptions.cjs +3 -3
- package/src/components/docker/options/container/ContainerExportDirectoryOptions.mjs +3 -3
- package/src/components/docker/options/container/ContainerKillOptions.cjs +3 -3
- package/src/components/docker/options/container/ContainerKillOptions.mjs +3 -3
- package/src/components/docker/options/container/ContainerLogsOptions.cjs +3 -3
- package/src/components/docker/options/container/ContainerLogsOptions.mjs +3 -3
- package/src/components/docker/options/container/ContainerRemoveOptions.cjs +3 -3
- package/src/components/docker/options/container/ContainerRemoveOptions.mjs +3 -3
- package/src/components/docker/options/container/ContainerSettingOptions.cjs +3 -3
- package/src/components/docker/options/container/ContainerSettingOptions.mjs +3 -3
- package/src/components/docker/options/container/ContainerStopOptions.cjs +3 -3
- package/src/components/docker/options/container/ContainerStopOptions.mjs +3 -3
- package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.cjs +3 -3
- package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.mjs +3 -3
- package/src/components/docker/options/image/ImageBuildOptions.cjs +3 -3
- package/src/components/docker/options/image/ImageBuildOptions.mjs +3 -3
- package/src/components/docker/options/image/ImageExportOptions.cjs +3 -3
- package/src/components/docker/options/image/ImageExportOptions.mjs +3 -3
- package/src/components/docker/options/image/ImageImportOptions.cjs +3 -3
- package/src/components/docker/options/image/ImageImportOptions.mjs +3 -3
- package/src/components/docker/options/image/ImagePullOptions.cjs +3 -3
- package/src/components/docker/options/image/ImagePullOptions.mjs +3 -3
- package/src/components/docker/options/image/ImagePushOptions.cjs +3 -3
- package/src/components/docker/options/image/ImagePushOptions.mjs +3 -3
- package/src/components/docker/options/image/ImageRemoveOptions.cjs +3 -3
- package/src/components/docker/options/image/ImageRemoveOptions.mjs +3 -3
- package/src/components/docker/options/image/ImageTagOptions.cjs +3 -3
- package/src/components/docker/options/image/ImageTagOptions.mjs +3 -3
- package/src/components/docker/options/network/NetworkCreateOptions.cjs +3 -3
- package/src/components/docker/options/network/NetworkCreateOptions.mjs +3 -3
- package/src/components/entrypoint/Entrypoint.cjs +9 -9
- package/src/components/entrypoint/Entrypoint.mjs +9 -9
- package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.cjs +1 -1
- package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.mjs +1 -1
- package/src/components/entrypoint/lib/Controller.cjs +8 -8
- package/src/components/entrypoint/lib/Controller.mjs +8 -8
- package/src/constants/DIMetadataKey.cjs +2 -2
- package/src/constants/DIMetadataKey.mjs +2 -2
- package/src/constants/DTOMetadataKey.cjs +2 -2
- package/src/constants/DTOMetadataKey.mjs +2 -2
- package/src/decorators/asst/After.cjs +1 -1
- package/src/decorators/asst/After.mjs +1 -1
- package/src/decorators/asst/Before.cjs +1 -1
- package/src/decorators/asst/Before.mjs +1 -1
- package/src/decorators/ctrl/CLIAction.cjs +4 -4
- package/src/decorators/ctrl/CLIAction.mjs +4 -4
- package/src/decorators/ctrl/HTTPAction.cjs +4 -4
- package/src/decorators/ctrl/HTTPAction.mjs +4 -4
- package/src/decorators/ctrl/ServiceAction.cjs +4 -4
- package/src/decorators/ctrl/ServiceAction.mjs +4 -4
- package/src/decorators/di/Autoload.cjs +2 -2
- package/src/decorators/di/Autoload.mjs +2 -2
- package/src/decorators/di/Configurable.cjs +3 -3
- package/src/decorators/di/Configurable.mjs +3 -3
- package/src/decorators/di/Inject.cjs +3 -3
- package/src/decorators/di/Inject.mjs +3 -3
- package/src/decorators/di/Lifetime.cjs +2 -2
- package/src/decorators/di/Lifetime.mjs +2 -2
- package/src/decorators/dto/Accept.cjs +3 -3
- package/src/decorators/dto/Accept.mjs +3 -3
- package/src/decorators/dto/Expect.cjs +3 -3
- package/src/decorators/dto/Expect.mjs +3 -3
- package/src/decorators/dto/IndexSignature.cjs +3 -3
- package/src/decorators/dto/IndexSignature.mjs +3 -3
- package/src/decorators/dto/Return.cjs +3 -3
- package/src/decorators/dto/Return.mjs +3 -3
- package/src/decorators/orm/AfterInsert.cjs +20 -20
- package/src/decorators/orm/AfterInsert.mjs +20 -20
- package/src/decorators/orm/AfterLoad.cjs +20 -20
- package/src/decorators/orm/AfterLoad.mjs +20 -20
- package/src/decorators/orm/AfterRecover.cjs +20 -20
- package/src/decorators/orm/AfterRecover.mjs +20 -20
- package/src/decorators/orm/AfterRemove.cjs +20 -20
- package/src/decorators/orm/AfterRemove.mjs +25 -25
- package/src/decorators/orm/AfterSoftRemove.cjs +20 -20
- package/src/decorators/orm/AfterSoftRemove.mjs +25 -25
- package/src/decorators/orm/AfterUpdate.cjs +20 -20
- package/src/decorators/orm/AfterUpdate.mjs +20 -20
- package/src/decorators/orm/BeforeInsert.cjs +20 -20
- package/src/decorators/orm/BeforeInsert.mjs +20 -20
- package/src/decorators/orm/BeforeRecover.cjs +20 -20
- package/src/decorators/orm/BeforeRecover.mjs +25 -25
- package/src/decorators/orm/BeforeRemove.cjs +20 -20
- package/src/decorators/orm/BeforeRemove.mjs +20 -20
- package/src/decorators/orm/BeforeSoftRemove.cjs +20 -20
- package/src/decorators/orm/BeforeSoftRemove.mjs +26 -26
- package/src/decorators/orm/BeforeUpdate.cjs +20 -20
- package/src/decorators/orm/BeforeUpdate.mjs +25 -25
- package/src/decorators/orm/Check.cjs +20 -20
- package/src/decorators/orm/Check.mjs +20 -20
- package/src/decorators/orm/ChildEntity.cjs +20 -20
- package/src/decorators/orm/ChildEntity.mjs +20 -20
- package/src/decorators/orm/Column.cjs +20 -20
- package/src/decorators/orm/Column.mjs +20 -20
- package/src/decorators/orm/CreateDateColumn.cjs +20 -20
- package/src/decorators/orm/CreateDateColumn.mjs +28 -28
- package/src/decorators/orm/DeleteDateColumn.cjs +20 -20
- package/src/decorators/orm/DeleteDateColumn.mjs +20 -20
- package/src/decorators/orm/Entity.cjs +20 -20
- package/src/decorators/orm/Entity.mjs +20 -20
- package/src/decorators/orm/EventSubscriber.cjs +20 -20
- package/src/decorators/orm/EventSubscriber.mjs +20 -20
- package/src/decorators/orm/Exclusion.cjs +20 -20
- package/src/decorators/orm/Exclusion.mjs +20 -20
- package/src/decorators/orm/Generated.cjs +20 -20
- package/src/decorators/orm/Generated.mjs +20 -20
- package/src/decorators/orm/Index.cjs +20 -20
- package/src/decorators/orm/Index.mjs +20 -20
- package/src/decorators/orm/JoinColumn.cjs +20 -20
- package/src/decorators/orm/JoinColumn.mjs +20 -20
- package/src/decorators/orm/JoinTable.cjs +20 -20
- package/src/decorators/orm/JoinTable.mjs +20 -20
- package/src/decorators/orm/ManyToMany.cjs +20 -20
- package/src/decorators/orm/ManyToMany.mjs +20 -20
- package/src/decorators/orm/ManyToOne.cjs +20 -20
- package/src/decorators/orm/ManyToOne.mjs +20 -20
- package/src/decorators/orm/ObjectIdColumn.cjs +20 -20
- package/src/decorators/orm/ObjectIdColumn.mjs +20 -20
- package/src/decorators/orm/OneToMany.cjs +20 -20
- package/src/decorators/orm/OneToMany.mjs +20 -20
- package/src/decorators/orm/OneToOne.cjs +20 -20
- package/src/decorators/orm/OneToOne.mjs +20 -20
- package/src/decorators/orm/PrimaryColumn.cjs +20 -20
- package/src/decorators/orm/PrimaryColumn.mjs +36 -36
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +20 -20
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +20 -20
- package/src/decorators/orm/RelationId.cjs +20 -20
- package/src/decorators/orm/RelationId.mjs +22 -22
- package/src/decorators/orm/TableInheritance.cjs +20 -20
- package/src/decorators/orm/TableInheritance.mjs +31 -31
- package/src/decorators/orm/Tree.cjs +20 -20
- package/src/decorators/orm/Tree.mjs +20 -20
- package/src/decorators/orm/TreeChildren.cjs +20 -20
- package/src/decorators/orm/TreeChildren.mjs +25 -25
- package/src/decorators/orm/TreeLevelColumn.cjs +20 -20
- package/src/decorators/orm/TreeLevelColumn.mjs +28 -28
- package/src/decorators/orm/TreeParent.cjs +20 -20
- package/src/decorators/orm/TreeParent.mjs +20 -20
- package/src/decorators/orm/Unique.cjs +20 -20
- package/src/decorators/orm/Unique.mjs +23 -23
- package/src/decorators/orm/UpdateDateColumn.cjs +20 -20
- package/src/decorators/orm/UpdateDateColumn.mjs +20 -20
- package/src/decorators/orm/VersionColumn.cjs +20 -20
- package/src/decorators/orm/VersionColumn.mjs +20 -20
- package/src/decorators/orm/ViewColumn.cjs +20 -20
- package/src/decorators/orm/ViewColumn.mjs +20 -20
- package/src/decorators/orm/ViewEntity.cjs +20 -20
- package/src/decorators/orm/ViewEntity.mjs +24 -24
- package/src/decorators/orm/VirtualColumn.cjs +20 -20
- package/src/decorators/orm/VirtualColumn.mjs +23 -23
- package/src/exceptions/DestroyRuntimeContainerException.cjs +1 -1
- package/src/exceptions/DestroyRuntimeContainerException.mjs +1 -1
- package/src/exceptions/InvalidActionPatternDepthException.cjs +1 -1
- package/src/exceptions/InvalidActionPatternDepthException.mjs +1 -1
- package/src/exceptions/InvalidAssistantFunctionTypeException.cjs +1 -1
- package/src/exceptions/InvalidAssistantFunctionTypeException.mjs +1 -1
- package/src/exceptions/InvalidObjectTypeException.cjs +1 -1
- package/src/exceptions/InvalidObjectTypeException.mjs +1 -1
- package/src/exceptions/MethodNotFoundException.cjs +1 -1
- package/src/exceptions/MethodNotFoundException.mjs +1 -1
- package/src/exceptions/alias/AliasExistsException.cjs +1 -1
- package/src/exceptions/alias/AliasExistsException.mjs +1 -1
- package/src/exceptions/alias/AliasNotFoundException.cjs +1 -1
- package/src/exceptions/alias/AliasNotFoundException.mjs +1 -1
- package/src/exceptions/alias/InvalidAliasNameException.cjs +1 -1
- package/src/exceptions/alias/InvalidAliasNameException.mjs +1 -1
- package/src/exceptions/di/DependencyInjectionException.cjs +1 -1
- package/src/exceptions/di/DependencyInjectionException.mjs +1 -1
- package/src/exceptions/di/LifetimeLockedException.cjs +1 -1
- package/src/exceptions/di/LifetimeLockedException.mjs +1 -1
- package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.cjs +1 -1
- package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.mjs +1 -1
- package/src/exceptions/dto/InvalidMethodAcceptException.cjs +1 -1
- package/src/exceptions/dto/InvalidMethodAcceptException.mjs +1 -1
- package/src/exceptions/dto/InvalidMethodReturnException.cjs +1 -1
- package/src/exceptions/dto/InvalidMethodReturnException.mjs +1 -1
- package/src/exceptions/dto/InvalidValueException.cjs +1 -1
- package/src/exceptions/dto/InvalidValueException.mjs +1 -1
- package/src/lib/base/BaseObject.cjs +8 -8
- package/src/lib/base/BaseObject.mjs +8 -8
- package/src/lib/base/Context.cjs +3 -3
- package/src/lib/base/Context.mjs +3 -3
- package/src/lib/base/EventEmitter.cjs +1 -1
- package/src/lib/base/EventEmitter.mjs +1 -1
- package/src/lib/base/abstracts/Exception.cjs +1 -1
- package/src/lib/base/abstracts/Exception.mjs +1 -1
- package/src/lib/base/internal/ApplicationConfigLoader.cjs +8 -8
- package/src/lib/base/internal/ApplicationConfigLoader.mjs +8 -8
- package/src/lib/base/internal/BasicInfo.cjs +1 -1
- package/src/lib/base/internal/BasicInfo.mjs +1 -1
- package/src/lib/base/internal/ConfigurableRecordsInjection.cjs +2 -2
- package/src/lib/base/internal/ConfigurableRecordsInjection.mjs +2 -2
- package/src/lib/base/internal/ConstructorSymbol.cjs +2 -2
- package/src/lib/base/internal/ConstructorSymbol.mjs +2 -2
- package/src/lib/base/internal/ControllerEntrypoint.cjs +2 -2
- package/src/lib/base/internal/ControllerEntrypoint.mjs +2 -2
- package/src/lib/base/internal/DataValidator.cjs +2 -2
- package/src/lib/base/internal/DataValidator.mjs +2 -2
- package/src/lib/base/internal/FlexibleDTO.cjs +3 -3
- package/src/lib/base/internal/FlexibleDTO.mjs +3 -3
- package/src/lib/base/internal/MethodAssistantFunction.cjs +1 -1
- package/src/lib/base/internal/MethodAssistantFunction.mjs +1 -1
- package/src/lib/base/internal/MethodValidation.cjs +3 -3
- package/src/lib/base/internal/MethodValidation.mjs +3 -3
- package/src/lib/base/internal/ModuleConfigLoader.cjs +8 -8
- package/src/lib/base/internal/ModuleConfigLoader.mjs +8 -8
- package/src/lib/base/internal/ObjectConfiguration.cjs +3 -3
- package/src/lib/base/internal/ObjectConfiguration.mjs +3 -3
- package/src/lib/base/internal/ObjectContainer.cjs +2 -2
- package/src/lib/base/internal/ObjectContainer.mjs +2 -2
- package/src/lib/base/internal/ObjectInjection.cjs +2 -2
- package/src/lib/base/internal/ObjectInjection.mjs +2 -2
- package/src/lib/base/internal/ObjectLifetime.cjs +2 -2
- package/src/lib/base/internal/ObjectLifetime.mjs +2 -2
- package/src/lib/base/internal/ObjectSchemaValidation.cjs +3 -3
- package/src/lib/base/internal/ObjectSchemaValidation.mjs +3 -3
- package/src/lib/base/internal/ObjectType.cjs +8 -8
- package/src/lib/base/internal/ObjectType.mjs +8 -8
- package/src/lib/base/internal/PatternManager.cjs +1 -1
- package/src/lib/base/internal/PatternManager.mjs +1 -1
- package/src/lib/context/CLIContext.cjs +3 -3
- package/src/lib/context/CLIContext.mjs +3 -3
- package/src/lib/context/HTTPContext.cjs +3 -3
- package/src/lib/context/HTTPContext.mjs +3 -3
- package/src/lib/context/ServiceContext.cjs +3 -3
- package/src/lib/context/ServiceContext.mjs +3 -3
- package/src/lib/core/Alias.cjs +1 -1
- package/src/lib/core/Alias.mjs +1 -1
- package/src/lib/core/Application.cjs +13 -13
- package/src/lib/core/Application.mjs +13 -13
- package/src/lib/core/Component.cjs +8 -8
- package/src/lib/core/Component.mjs +8 -8
- package/src/lib/core/Container.cjs +8 -8
- package/src/lib/core/Container.mjs +8 -8
- package/src/lib/core/DTO.cjs +3 -3
- package/src/lib/core/DTO.mjs +3 -3
- package/src/lib/core/Module.cjs +9 -9
- package/src/lib/core/Module.mjs +9 -9
- package/src/lib/core/Provider.cjs +8 -8
- package/src/lib/core/Provider.mjs +8 -8
- package/src/lib/core/Time.cjs +2 -2
- package/src/lib/core/Time.mjs +2 -2
- package/src/lib/helpers/Glob.cjs +1 -1
- package/src/lib/helpers/Glob.mjs +1 -1
- package/src/lib/helpers/IsGlobString.cjs +1 -1
- package/src/lib/helpers/IsGlobString.mjs +1 -1
- package/src/lib/helpers/IsHtml.cjs +1 -1
- package/src/lib/helpers/IsHtml.mjs +1 -1
- package/src/lib/helpers/IsSymbol.cjs +3 -3
- package/src/lib/helpers/IsSymbol.mjs +3 -3
- package/src/lib/helpers/IsXML.cjs +1 -1
- package/src/lib/helpers/IsXML.mjs +1 -1
- package/src/lib/helpers/MD5.cjs +2 -2
- package/src/lib/helpers/MD5.mjs +2 -2
- package/src/lib/helpers/NonceStr.cjs +2 -2
- package/src/lib/helpers/NonceStr.mjs +2 -2
- package/src/lib/helpers/ObjectHash.cjs +2 -2
- package/src/lib/helpers/ObjectHash.mjs +2 -2
- package/src/lib/helpers/RandomString.cjs +2 -2
- package/src/lib/helpers/RandomString.mjs +2 -2
- package/src/lib/helpers/SHA1.cjs +2 -2
- package/src/lib/helpers/SHA1.mjs +2 -2
- package/src/lib/helpers/SHA256.cjs +2 -2
- package/src/lib/helpers/SHA256.mjs +2 -2
- package/src/lib/ioc/DependencyInjectionContainer.cjs +7 -7
- package/src/lib/ioc/DependencyInjectionContainer.mjs +7 -7
- package/src/lib/ioc/Errors.cjs +3 -3
- package/src/lib/ioc/Errors.mjs +3 -3
- package/src/lib/ioc/ListModules.cjs +4 -4
- package/src/lib/ioc/ListModules.mjs +4 -4
- package/src/lib/ioc/LoadModules.cjs +3 -3
- package/src/lib/ioc/LoadModules.mjs +3 -3
- package/src/lib/ioc/Resolvers.cjs +3 -3
- package/src/lib/ioc/Resolvers.mjs +3 -3
- package/src/lib/ioc/Utils.cjs +3 -3
- package/src/lib/ioc/Utils.mjs +3 -3
- package/src/lib/validation/VLD.cjs +1 -1
- package/src/lib/validation/VLD.mjs +1 -1
- package/src/options/ApplicationOptions.cjs +8 -8
- package/src/options/ApplicationOptions.mjs +8 -8
- package/src/options/LoadAnonymousObjectOptions.cjs +8 -8
- package/src/options/LoadAnonymousObjectOptions.mjs +8 -8
- package/src/options/LoadNamedObjectOptions.cjs +8 -8
- package/src/options/LoadNamedObjectOptions.mjs +8 -8
- package/src/options/LoadObjectOptions.cjs +8 -8
- package/src/options/LoadObjectOptions.mjs +8 -8
- package/src/options/ModuleLoadObjectsOptions.cjs +8 -8
- package/src/options/ModuleLoadObjectsOptions.mjs +8 -8
- package/src/options/ModuleOptions.cjs +8 -8
- package/src/options/ModuleOptions.mjs +8 -8
- package/src/options/OverridableNamedObjectOptions.cjs +8 -8
- package/src/options/OverridableNamedObjectOptions.mjs +8 -8
- package/src/options/OverridableObjectOptions.cjs +8 -8
- package/src/options/OverridableObjectOptions.mjs +8 -8
- package/src/providers/Database.cjs +287 -0
- package/src/providers/Database.mjs +281 -0
- package/vendor/Package.10.cjs +79 -5
- package/vendor/Package.10.mjs +73 -5
- package/vendor/Package.11.cjs +9 -1
- package/vendor/Package.11.mjs +9 -1
- package/vendor/Package.12.cjs +1 -14055
- package/vendor/Package.12.mjs +1 -14029
- package/vendor/Package.13.cjs +365 -47129
- package/vendor/Package.13.mjs +356 -47074
- package/vendor/Package.14.cjs +14051 -5
- package/vendor/Package.14.mjs +14025 -5
- package/vendor/Package.15.cjs +518 -515
- package/vendor/Package.15.mjs +445 -438
- package/vendor/Package.2.cjs +5 -7002
- package/vendor/Package.2.mjs +5 -6992
- package/vendor/Package.22.cjs +47244 -0
- package/vendor/Package.22.mjs +47178 -0
- package/vendor/Package.3.cjs +925 -455
- package/vendor/Package.3.mjs +925 -437
- package/vendor/Package.4.cjs +37 -939
- package/vendor/Package.4.mjs +35 -941
- package/vendor/Package.5.cjs +6992 -32
- package/vendor/Package.5.mjs +6984 -30
- package/vendor/Package.7.cjs +1 -1
- package/vendor/Package.7.mjs +1 -1
- package/vendor/Package.72.cjs +547 -4092
- package/vendor/Package.72.mjs +538 -4093
- package/vendor/Package.73.cjs +1 -1
- package/vendor/Package.73.mjs +1 -1
- package/vendor/Package.74.cjs +4148 -67
- package/vendor/Package.74.mjs +4157 -62
- package/vendor/Package.9.cjs +1 -1
- package/vendor/Package.9.mjs +1 -1
- package/vendor/TypeDef.12.d.ts +1 -1
- package/vendor/TypeDef.4.d.ts +2 -2
- package/vendor/Package.75.cjs +0 -621
- package/vendor/Package.75.mjs +0 -617
package/orm.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './vendor/TypeDef.2.js';
|
|
2
|
-
import { C as ColumnOptions, e as EntityTarget,
|
|
3
|
-
export { bF as AbstractCursor, bG as AbstractCursorEvents, bH as AbstractCursorOptions, bI as AcceptedFields, bJ as AddToSetOperators, bK as AddUserOptions, bL as Admin, bM as AggregateOptions, bN as AggregationCursor, bO as AggregationCursorOptions, bP as AlternativeType, bQ as AnyBulkWriteOperation, bR as AnyError, bS as ArrayElement, bT as ArrayOperator, bU as Auth, bV as AuthMechanism, bW as AuthMechanismProperties, bX as AutoEncrypter, bY as AutoEncryptionLoggerLevel, bZ as AutoEncryptionOptions, b_ as AutoEncryptionTlsOptions, bp as BSON, bq as BSONRegExp, c2 as BSONSerializeOptions, br as BSONSymbol, bs as BSONType, c3 as BSONTypeAlias, b$ as Batch, c0 as BatchType, bo as Binary, c1 as BitwiseFilter, c4 as BulkOperationBase, c5 as BulkWriteOperationError, c6 as BulkWriteOptions, c7 as BulkWriteResult, dd as CURSOR_FLAGS, c8 as Callback, c9 as CancellationToken, ca as ChangeStream, cb as ChangeStreamCollModDocument, cc as ChangeStreamCreateDocument, cd as ChangeStreamCreateIndexDocument, ce as ChangeStreamDeleteDocument, cf as ChangeStreamDocument, cg as ChangeStreamDocumentCollectionUUID, ch as ChangeStreamDocumentCommon, ci as ChangeStreamDocumentKey, cj as ChangeStreamDocumentOperationDescription, ck as ChangeStreamDropDatabaseDocument, cl as ChangeStreamDropDocument, cm as ChangeStreamDropIndexDocument, cn as ChangeStreamEvents, co as ChangeStreamInsertDocument, cp as ChangeStreamInvalidateDocument, cq as ChangeStreamNameSpace, cr as ChangeStreamOptions, cs as ChangeStreamRefineCollectionShardKeyDocument, ct as ChangeStreamRenameDocument, cu as ChangeStreamReplaceDocument, cv as ChangeStreamReshardCollectionDocument, cw as ChangeStreamShardCollectionDocument, cx as ChangeStreamUpdateDocument, cy as ClientMetadata, cz as ClientMetadataOptions, cA as ClientSession, cB as ClientSessionEvents, cC as ClientSessionOptions, cD as CloseOptions, cF as ClusterTime, cE as ClusteredCollectionOptions, bt as Code, cK as CollStats, cL as CollStatsOptions, cG as CollationOptions, cH as Collection, cI as CollectionInfo, cJ as CollectionOptions, cM as CommandFailedEvent, cN as CommandOperationOptions, cO as CommandStartedEvent, cP as CommandSucceededEvent, cQ as CommonEvents, cR as Compressor, cS as CompressorName, cT as Condition, d8 as ConnectOptions, cW as ConnectionCheckOutFailedEvent, cX as ConnectionCheckOutStartedEvent, cU as ConnectionCheckedInEvent, cV as ConnectionCheckedOutEvent, cY as ConnectionClosedEvent, cZ as ConnectionCreatedEvent, c_ as ConnectionEvents, c$ as ConnectionOptions, d0 as ConnectionPoolClearedEvent, d1 as ConnectionPoolClosedEvent, d2 as ConnectionPoolCreatedEvent, d3 as ConnectionPoolEvents, d4 as ConnectionPoolMonitoringEvent, d5 as ConnectionPoolOptions, d6 as ConnectionPoolReadyEvent, d7 as ConnectionReadyEvent, d9 as CountDocumentsOptions, da as CountOptions, db as CreateCollectionOptions, dc as CreateIndexesOptions, de as CursorFlag, df as CursorStreamOptions, bu as DBRef, dg as Db, dh as DbOptions, di as DbStatsOptions, bv as Decimal128, dj as DeleteManyModel, dk as DeleteOneModel, dl as DeleteOptions, dm as DeleteStatement, dn as DistinctOptions, bx as Document, by as Double, dp as DriverInfo, dq as DropCollectionOptions, dr as DropDatabaseOptions, ds as DropIndexesOptions, dt as EndSessionOptions, du as EnhancedOmit, b0 as EntitySchemaColumnOptions, aP as EntitySchemaEmbeddedColumnOptions, b1 as EntitySchemaIndexOptions, aQ as EntitySchemaOptions, b2 as EntitySchemaRelationOptions, c as EntitySubscriberInterface, dv as ErrorDescription, dw as EstimatedDocumentCountOptions, dx as EvalOptions, dy as EventEmitterWithState, dz as EventsDescription, dA as ExplainOptions, dB as ExplainVerbosity, dC as ExplainVerbosityLike, gV as Feature, gW as FeatureCollection, dD as Filter, dE as FilterOperations, dF as FilterOperators, dG as FindCursor, dH as FindOneAndDeleteOptions, dI as FindOneAndReplaceOptions, dJ as FindOneAndUpdateOptions, b4 as FindOperatorType, dK as FindOperators, dL as FindOptions, b6 as FindOptionsOrder, b5 as FindOptionsOrderProperty, b7 as FindOptionsOrderValue, ba as FindOptionsRelationByString, b9 as FindOptionsRelations, b8 as FindOptionsRelationsProperty, bc as FindOptionsSelect, bd as FindOptionsSelectByString, bb as FindOptionsSelectProperty, be as FindOptionsWhereProperty, dM as Flatten, dY as GSSAPICanonicalizationValue, dN as GenericListener, gX as GeoJSON, gU as Geography, gT as Geometry, gS as GeometryCollection, dO as GridFSBucket, dP as GridFSBucketEvents, dQ as GridFSBucketOptions, dR as GridFSBucketReadStream, dS as GridFSBucketReadStreamOptions, dT as GridFSBucketReadStreamOptionsWithRevision, dU as GridFSBucketWriteStream, dV as GridFSBucketWriteStreamOptions, dW as GridFSChunk, dX as GridFSFile, dZ as HedgeOptions, d_ as Hint, d$ as HostAddress, e0 as IndexDescription, e1 as IndexDirection, e2 as IndexInformationOptions, e3 as IndexSpecification, e4 as InferIdType, aT as InsertEvent, e5 as InsertManyResult, e6 as InsertOneModel, e7 as InsertOneOptions, e8 as InsertOneResult, bz as Int32, e9 as IntegerType, ea as IsAny, I as IsolationLevel, eb as Join, J as JoinColumnOptions, bf as JoinOptions, q as JoinTableOptions, ec as KeysOfAType, ed as KeysOfOtherType, ee as LEGAL_TCP_SOCKET_OPTIONS, ef as LEGAL_TLS_SOCKET_OPTIONS, gN as LineString, eg as ListCollectionsCursor, eh as ListCollectionsOptions, ei as ListDatabasesOptions, ej as ListDatabasesResult, ek as ListIndexesCursor, el as ListIndexesOptions, aU as LoadEvent, bg as LogMessageFormat, bA as Long, eo as MONGO_CLIENT_EVENTS, em as MatchKeysAndValues, bB as MaxKey, aS as MigrationInterface, bC as MinKey, b3 as MixedList, en as ModifyResult, ep as MongoAPIError, eq as MongoAWSError, er as MongoBatchReExecutionError, es as MongoBulkWriteError, et as MongoChangeStreamError, eu as MongoClient, ev as MongoClientEvents, ew as MongoClientOptions, ex as MongoCompatibilityError, ey as MongoCredentials, ez as MongoCredentialsOptions, eA as MongoCursorExhaustedError, eB as MongoCursorInUseError, eC as MongoDBNamespace, eD as MongoDecompressionError, eE as MongoDriverError, eF as MongoError, eG as MongoErrorLabel, eH as MongoExpiredSessionError, eI as MongoGridFSChunkError, eJ as MongoGridFSStreamError, eK as MongoInvalidArgumentError, eL as MongoKerberosError, eM as MongoMissingCredentialsError, eN as MongoMissingDependencyError, eO as MongoNetworkError, eP as MongoNetworkErrorOptions, eQ as MongoNetworkTimeoutError, eR as MongoNotConnectedError, eS as MongoOptions, eT as MongoParseError, eU as MongoRuntimeError, eV as MongoServerClosedError, eW as MongoServerError, eX as MongoServerSelectionError, eY as MongoSystemError, eZ as MongoTailableCursorError, e_ as MongoTopologyClosedError, e$ as MongoTransactionError, f0 as MongoUnexpectedServerResponseError, f1 as MongoWriteConcernError, f2 as MonitorEvents, f3 as MonitorOptions, gQ as MultiLineString, gP as MultiPoint, gR as MultiPolygon, f4 as NestedPaths, f5 as NestedPathsOfType, f6 as NonObjectIdLikeDocument, f7 as NotAcceptedFields, f8 as NumericType, f9 as OIDCMechanismServerStep1, fa as OIDCRefreshFunction, fb as OIDCRequestFunction, fc as OIDCRequestTokenResult, fd as OneOrMore, fe as OnlyFieldsOfType, ff as OperationOptions, fg as OperationTime, fh as OptionalId, fi as OptionalUnlessRequiredId, i as OrderByCondition, fj as OrderedBulkOperation, fk as PkFactory, gM as Point, gO as Polygon, gL as Position, fl as ProfilingLevel, fm as ProfilingLevelOptions, fn as PropertyType, fo as ProxyOptions, fp as PullAllOperator, fq as PullOperator, fr as PushOperator, aN as QueryBuilder, aO as QueryResult, Q as QueryResultCache, aM as QueryResultCacheOptions, fs as ReadConcern, ft as ReadConcernLevel, fu as ReadConcernLike, fv as ReadPreference, fw as ReadPreferenceFromOptions, fx as ReadPreferenceLike, fy as ReadPreferenceLikeOptions, fz as ReadPreferenceMode, fA as ReadPreferenceOptions, aY as RecoverEvent, fB as RegExpOrString, t as RelationOptions, aW as RemoveEvent, fC as RemoveUserOptions, fD as RenameOptions, fE as ReplaceOneModel, fF as ReplaceOptions, h as ReplicationMode, fG as ResumeOptions, fH as ResumeToken, fI as ReturnDocument, fJ as RoleSpecification, fK as RootFilterOperators, fL as RunCommandOptions, fM as SchemaMember, fN as SelectServerOptions, fO as ServerApi, fP as ServerApiVersion, fQ as ServerCapabilities, fR as ServerClosedEvent, fS as ServerDescription, fT as ServerDescriptionChangedEvent, fU as ServerEvents, fV as ServerHeartbeatFailedEvent, fW as ServerHeartbeatStartedEvent, fX as ServerHeartbeatSucceededEvent, fY as ServerOpeningEvent, fZ as ServerSession, f_ as ServerSessionId, f$ as ServerType, g0 as SetFields, g1 as SetProfilingLevelOptions, aX as SoftRemoveEvent, g2 as Sort, g3 as SortDirection, g4 as Stream, g5 as StreamDescription, g6 as StreamDescriptionOptions, g7 as StrictFilter, g8 as StrictMatchKeysAndValues, g9 as StrictUpdateFilter, ga as SupportedNodeConnectionOptions, gb as SupportedSocketOptions, gc as SupportedTLSConnectionOptions, gd as SupportedTLSSocketOptions, bh as TableCheckOptions, bi as TableExclusionOptions, bj as TableForeignKeyOptions, bk as TableIndexOptions, bl as TableOptions, bm as TableUniqueOptions, ge as TagSet, gf as TimeSeriesCollectionOptions, bE as Timestamp, gg as TopologyClosedEvent, gh as TopologyDescription, gi as TopologyDescriptionChangedEvent, gj as TopologyDescriptionOptions, gk as TopologyEvents, gl as TopologyOpeningEvent, gm as TopologyType, gn as TopologyVersion, go as Transaction, aZ as TransactionCommitEvent, gp as TransactionOptions, a_ as TransactionRollbackEvent, a$ as TransactionStartEvent, gq as TypedEventEmitter, gr as UnorderedBulkOperation, gs as UpdateDescription, aV as UpdateEvent, gt as UpdateFilter, gu as UpdateManyModel, gv as UpdateOneModel, gw as UpdateOptions, gx as UpdateStatement, gy as ValidateCollectionOptions, V as ValueTransformer, bn as ViewOptions, gz as W, aR as WhereExpressionBuilder, gA as WiredTigerData, gB as WithId, gD as WithSessionCallback, gE as WithTransactionCallback, gC as WithoutId, gF as WriteConcern, gG as WriteConcernError, gH as WriteConcernErrorData, gI as WriteConcernOptions, gJ as WriteConcernSettings, gK as WriteError, bw as deserialize, bD as serialize } from './vendor/TypeDef.4.js';
|
|
2
|
+
import { C as ColumnOptions, e as EntityTarget, A as RelationTypeInFunction, B as PropertyTypeFactory, w as OnDeleteType, F as OnUpdateType, z as DeferrableType, G as TableMetadataArgs, H as TreeMetadataArgs, K as IndexMetadataArgs, U as UniqueMetadataArgs, L as CheckMetadataArgs, X as ExclusionMetadataArgs, Y as ColumnMetadataArgs, Z as RelationMetadataArgs, _ as EntityListenerMetadataArgs, $ as RelationCountMetadataArgs, a0 as RelationIdMetadataArgs, a1 as EmbeddedMetadataArgs, a as DataSource, D as DataSourceOptions, E as EntityManager, a2 as MongoEntityManager, a3 as SqljsEntityManager, O as ObjectLiteral, R as Repository, T as TreeRepository, u as ObjectType, f as MongoRepository, S as SelectQueryBuilder, a4 as ColumnMetadata, a5 as RelationMetadata, d as EntityMetadata, b as Driver, r as ColumnType, a6 as DatabaseType, M as Migration, a7 as FindOperator, a8 as EqualOperator, a9 as FindOneOptions, aa as FindManyOptions, ab as FindTreeOptions, ac as Logger, ad as LoggerOptions, g as QueryRunner, ae as LogLevel, af as LogMessageType, ag as LogMessage, ah as PrepareLogMessagesOptions, ai as FileLoggerOptions, aj as SaveOptions, ak as RemoveOptions, al as DeepPartial, am as QueryDeepPartialEntity, an as InsertResult, ao as ObjectId, ap as FindOptionsWhere, aq as UpdateResult, ar as UpsertOptions, as as DeleteResult, at as PickKeysByType, N as NamingStrategyInterface, au as Table, av as SchemaBuilder, aw as SqlInMemory, ax as TableColumnOptions, ay as InsertQueryBuilder, az as DeleteQueryBuilder, aA as UpdateQueryBuilder, aB as SoftDeleteQueryBuilder, aC as RelationQueryBuilder, aD as Brackets, aE as NotBrackets, j as EntitySchema, aF as Query, aG as TableCheck, aH as TableColumn, aI as TableExclusion, aJ as TableForeignKey, aK as TableIndex, aL as TableUnique, aM as View } from './vendor/TypeDef.4.js';
|
|
3
|
+
export { bF as AbstractCursor, bG as AbstractCursorEvents, bH as AbstractCursorOptions, bI as AcceptedFields, bJ as AddToSetOperators, bK as AddUserOptions, bL as Admin, bM as AggregateOptions, bN as AggregationCursor, bO as AggregationCursorOptions, bP as AlternativeType, bQ as AnyBulkWriteOperation, bR as AnyError, bS as ArrayElement, bT as ArrayOperator, bU as Auth, bV as AuthMechanism, bW as AuthMechanismProperties, bX as AutoEncrypter, bY as AutoEncryptionLoggerLevel, bZ as AutoEncryptionOptions, b_ as AutoEncryptionTlsOptions, bp as BSON, bq as BSONRegExp, c2 as BSONSerializeOptions, br as BSONSymbol, bs as BSONType, c3 as BSONTypeAlias, b$ as Batch, c0 as BatchType, bo as Binary, c1 as BitwiseFilter, c4 as BulkOperationBase, c5 as BulkWriteOperationError, c6 as BulkWriteOptions, c7 as BulkWriteResult, dd as CURSOR_FLAGS, c8 as Callback, c9 as CancellationToken, ca as ChangeStream, cb as ChangeStreamCollModDocument, cc as ChangeStreamCreateDocument, cd as ChangeStreamCreateIndexDocument, ce as ChangeStreamDeleteDocument, cf as ChangeStreamDocument, cg as ChangeStreamDocumentCollectionUUID, ch as ChangeStreamDocumentCommon, ci as ChangeStreamDocumentKey, cj as ChangeStreamDocumentOperationDescription, ck as ChangeStreamDropDatabaseDocument, cl as ChangeStreamDropDocument, cm as ChangeStreamDropIndexDocument, cn as ChangeStreamEvents, co as ChangeStreamInsertDocument, cp as ChangeStreamInvalidateDocument, cq as ChangeStreamNameSpace, cr as ChangeStreamOptions, cs as ChangeStreamRefineCollectionShardKeyDocument, ct as ChangeStreamRenameDocument, cu as ChangeStreamReplaceDocument, cv as ChangeStreamReshardCollectionDocument, cw as ChangeStreamShardCollectionDocument, cx as ChangeStreamUpdateDocument, cy as ClientMetadata, cz as ClientMetadataOptions, cA as ClientSession, cB as ClientSessionEvents, cC as ClientSessionOptions, cD as CloseOptions, cF as ClusterTime, cE as ClusteredCollectionOptions, bt as Code, cK as CollStats, cL as CollStatsOptions, cG as CollationOptions, cH as Collection, cI as CollectionInfo, cJ as CollectionOptions, cM as CommandFailedEvent, cN as CommandOperationOptions, cO as CommandStartedEvent, cP as CommandSucceededEvent, cQ as CommonEvents, cR as Compressor, cS as CompressorName, cT as Condition, d8 as ConnectOptions, cW as ConnectionCheckOutFailedEvent, cX as ConnectionCheckOutStartedEvent, cU as ConnectionCheckedInEvent, cV as ConnectionCheckedOutEvent, cY as ConnectionClosedEvent, cZ as ConnectionCreatedEvent, c_ as ConnectionEvents, c$ as ConnectionOptions, d0 as ConnectionPoolClearedEvent, d1 as ConnectionPoolClosedEvent, d2 as ConnectionPoolCreatedEvent, d3 as ConnectionPoolEvents, d4 as ConnectionPoolMonitoringEvent, d5 as ConnectionPoolOptions, d6 as ConnectionPoolReadyEvent, d7 as ConnectionReadyEvent, d9 as CountDocumentsOptions, da as CountOptions, db as CreateCollectionOptions, dc as CreateIndexesOptions, de as CursorFlag, df as CursorStreamOptions, bu as DBRef, dg as Db, dh as DbOptions, di as DbStatsOptions, bv as Decimal128, dj as DeleteManyModel, dk as DeleteOneModel, dl as DeleteOptions, dm as DeleteStatement, dn as DistinctOptions, bx as Document, by as Double, dp as DriverInfo, dq as DropCollectionOptions, dr as DropDatabaseOptions, ds as DropIndexesOptions, dt as EndSessionOptions, du as EnhancedOmit, b1 as EntitySchemaColumnOptions, aQ as EntitySchemaEmbeddedColumnOptions, b2 as EntitySchemaIndexOptions, aR as EntitySchemaOptions, b3 as EntitySchemaRelationOptions, c as EntitySubscriberInterface, dv as ErrorDescription, dw as EstimatedDocumentCountOptions, dx as EvalOptions, dy as EventEmitterWithState, dz as EventsDescription, dA as ExplainOptions, dB as ExplainVerbosity, dC as ExplainVerbosityLike, gV as Feature, gW as FeatureCollection, dD as Filter, dE as FilterOperations, dF as FilterOperators, dG as FindCursor, dH as FindOneAndDeleteOptions, dI as FindOneAndReplaceOptions, dJ as FindOneAndUpdateOptions, b4 as FindOperatorType, dK as FindOperators, dL as FindOptions, b6 as FindOptionsOrder, b5 as FindOptionsOrderProperty, b7 as FindOptionsOrderValue, ba as FindOptionsRelationByString, b9 as FindOptionsRelations, b8 as FindOptionsRelationsProperty, bc as FindOptionsSelect, bd as FindOptionsSelectByString, bb as FindOptionsSelectProperty, be as FindOptionsWhereProperty, dM as Flatten, dY as GSSAPICanonicalizationValue, dN as GenericListener, gX as GeoJSON, gU as Geography, gT as Geometry, gS as GeometryCollection, dO as GridFSBucket, dP as GridFSBucketEvents, dQ as GridFSBucketOptions, dR as GridFSBucketReadStream, dS as GridFSBucketReadStreamOptions, dT as GridFSBucketReadStreamOptionsWithRevision, dU as GridFSBucketWriteStream, dV as GridFSBucketWriteStreamOptions, dW as GridFSChunk, dX as GridFSFile, dZ as HedgeOptions, d_ as Hint, d$ as HostAddress, e0 as IndexDescription, e1 as IndexDirection, e2 as IndexInformationOptions, e3 as IndexSpecification, e4 as InferIdType, aU as InsertEvent, e5 as InsertManyResult, e6 as InsertOneModel, e7 as InsertOneOptions, e8 as InsertOneResult, bz as Int32, e9 as IntegerType, ea as IsAny, I as IsolationLevel, eb as Join, J as JoinColumnOptions, bf as JoinOptions, s as JoinTableOptions, ec as KeysOfAType, ed as KeysOfOtherType, ee as LEGAL_TCP_SOCKET_OPTIONS, ef as LEGAL_TLS_SOCKET_OPTIONS, gN as LineString, eg as ListCollectionsCursor, eh as ListCollectionsOptions, ei as ListDatabasesOptions, ej as ListDatabasesResult, ek as ListIndexesCursor, el as ListIndexesOptions, aV as LoadEvent, bg as LogMessageFormat, bA as Long, eo as MONGO_CLIENT_EVENTS, em as MatchKeysAndValues, bB as MaxKey, aT as MigrationInterface, bC as MinKey, i as MixedList, en as ModifyResult, ep as MongoAPIError, eq as MongoAWSError, er as MongoBatchReExecutionError, es as MongoBulkWriteError, et as MongoChangeStreamError, eu as MongoClient, ev as MongoClientEvents, ew as MongoClientOptions, ex as MongoCompatibilityError, ey as MongoCredentials, ez as MongoCredentialsOptions, eA as MongoCursorExhaustedError, eB as MongoCursorInUseError, eC as MongoDBNamespace, eD as MongoDecompressionError, eE as MongoDriverError, eF as MongoError, eG as MongoErrorLabel, eH as MongoExpiredSessionError, eI as MongoGridFSChunkError, eJ as MongoGridFSStreamError, eK as MongoInvalidArgumentError, eL as MongoKerberosError, eM as MongoMissingCredentialsError, eN as MongoMissingDependencyError, eO as MongoNetworkError, eP as MongoNetworkErrorOptions, eQ as MongoNetworkTimeoutError, eR as MongoNotConnectedError, eS as MongoOptions, eT as MongoParseError, eU as MongoRuntimeError, eV as MongoServerClosedError, eW as MongoServerError, eX as MongoServerSelectionError, eY as MongoSystemError, eZ as MongoTailableCursorError, e_ as MongoTopologyClosedError, e$ as MongoTransactionError, f0 as MongoUnexpectedServerResponseError, f1 as MongoWriteConcernError, f2 as MonitorEvents, f3 as MonitorOptions, gQ as MultiLineString, gP as MultiPoint, gR as MultiPolygon, f4 as NestedPaths, f5 as NestedPathsOfType, f6 as NonObjectIdLikeDocument, f7 as NotAcceptedFields, f8 as NumericType, f9 as OIDCMechanismServerStep1, fa as OIDCRefreshFunction, fb as OIDCRequestFunction, fc as OIDCRequestTokenResult, fd as OneOrMore, fe as OnlyFieldsOfType, ff as OperationOptions, fg as OperationTime, fh as OptionalId, fi as OptionalUnlessRequiredId, k as OrderByCondition, fj as OrderedBulkOperation, fk as PkFactory, gM as Point, gO as Polygon, gL as Position, fl as ProfilingLevel, fm as ProfilingLevelOptions, fn as PropertyType, fo as ProxyOptions, fp as PullAllOperator, fq as PullOperator, fr as PushOperator, aO as QueryBuilder, aP as QueryResult, Q as QueryResultCache, aN as QueryResultCacheOptions, fs as ReadConcern, ft as ReadConcernLevel, fu as ReadConcernLike, fv as ReadPreference, fw as ReadPreferenceFromOptions, fx as ReadPreferenceLike, fy as ReadPreferenceLikeOptions, fz as ReadPreferenceMode, fA as ReadPreferenceOptions, aZ as RecoverEvent, fB as RegExpOrString, v as RelationOptions, aX as RemoveEvent, fC as RemoveUserOptions, fD as RenameOptions, fE as ReplaceOneModel, fF as ReplaceOptions, h as ReplicationMode, fG as ResumeOptions, fH as ResumeToken, fI as ReturnDocument, fJ as RoleSpecification, fK as RootFilterOperators, fL as RunCommandOptions, fM as SchemaMember, fN as SelectServerOptions, fO as ServerApi, fP as ServerApiVersion, fQ as ServerCapabilities, fR as ServerClosedEvent, fS as ServerDescription, fT as ServerDescriptionChangedEvent, fU as ServerEvents, fV as ServerHeartbeatFailedEvent, fW as ServerHeartbeatStartedEvent, fX as ServerHeartbeatSucceededEvent, fY as ServerOpeningEvent, fZ as ServerSession, f_ as ServerSessionId, f$ as ServerType, g0 as SetFields, g1 as SetProfilingLevelOptions, aY as SoftRemoveEvent, g2 as Sort, g3 as SortDirection, g4 as Stream, g5 as StreamDescription, g6 as StreamDescriptionOptions, g7 as StrictFilter, g8 as StrictMatchKeysAndValues, g9 as StrictUpdateFilter, ga as SupportedNodeConnectionOptions, gb as SupportedSocketOptions, gc as SupportedTLSConnectionOptions, gd as SupportedTLSSocketOptions, bh as TableCheckOptions, bi as TableExclusionOptions, bj as TableForeignKeyOptions, bk as TableIndexOptions, bl as TableOptions, bm as TableUniqueOptions, ge as TagSet, gf as TimeSeriesCollectionOptions, bE as Timestamp, gg as TopologyClosedEvent, gh as TopologyDescription, gi as TopologyDescriptionChangedEvent, gj as TopologyDescriptionOptions, gk as TopologyEvents, gl as TopologyOpeningEvent, gm as TopologyType, gn as TopologyVersion, go as Transaction, a_ as TransactionCommitEvent, gp as TransactionOptions, a$ as TransactionRollbackEvent, b0 as TransactionStartEvent, gq as TypedEventEmitter, gr as UnorderedBulkOperation, gs as UpdateDescription, aW as UpdateEvent, gt as UpdateFilter, gu as UpdateManyModel, gv as UpdateOneModel, gw as UpdateOptions, gx as UpdateStatement, gy as ValidateCollectionOptions, V as ValueTransformer, bn as ViewOptions, gz as W, aS as WhereExpressionBuilder, gA as WiredTigerData, gB as WithId, gD as WithSessionCallback, gE as WithTransactionCallback, gC as WithoutId, gF as WriteConcern, gG as WriteConcernError, gH as WriteConcernErrorData, gI as WriteConcernOptions, gJ as WriteConcernSettings, gK as WriteError, bw as deserialize, bD as serialize } from './vendor/TypeDef.4.js';
|
|
4
4
|
export { E as EntityOptions, I as IndexOptions } from './vendor/TypeDef.12.js';
|
|
5
5
|
import 'fs';
|
|
6
6
|
import 'tls';
|
package/orm.mjs
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import "./vendor/Package.
|
|
1
|
+
import "./vendor/Package.3.mjs";
|
|
2
2
|
|
|
3
|
-
import { g as e } from "./vendor/Package.
|
|
3
|
+
import { g as e } from "./vendor/Package.4.mjs";
|
|
4
4
|
|
|
5
|
-
import { r, F as a,
|
|
5
|
+
import { a as r, F as a, c, d, O as f, B as O, f as _, R as b, D as E, e as R } from "./vendor/Package.22.mjs";
|
|
6
6
|
|
|
7
|
-
export { A as AbstractLogger,
|
|
7
|
+
export { A as AbstractLogger, x as AdvancedConsoleLogger, j as Brackets, g as ConnectionOptionsReader, p as DefaultNamingStrategy, h as DeleteQueryBuilder, m as DeleteResult, G as EntityMetadata, z as FileLogger, v as FindOperator, w as FindOptionsUtils, t as In, I as InsertQueryBuilder, k as InsertResult, q as InstanceChecker, M as Migration, o as MigrationExecutor, K as MongoRepository, Z as MssqlParameter, Q as QueryBuilder, n as QueryResult, i as RelationQueryBuilder, H as Repository, S as SelectQueryBuilder, y as SimpleConsoleLogger, Y as Table, L as TableCheck, N as TableColumn, P as TableExclusion, V as TableForeignKey, W as TableIndex, X as TableUnique, J as TreeRepository, T as TreeRepositoryUtils, U as UpdateQueryBuilder, l as UpdateResult, s as getFromContainer, u as useContainer } from "./vendor/Package.22.mjs";
|
|
8
8
|
|
|
9
|
-
import { D as
|
|
10
|
-
|
|
11
|
-
import "./vendor/Package.8.mjs";
|
|
9
|
+
import { D as B } from "./vendor/Package.2.mjs";
|
|
12
10
|
|
|
13
11
|
import "./vendor/Package.1.mjs";
|
|
14
12
|
|
|
13
|
+
import "./vendor/Package.72.mjs";
|
|
14
|
+
|
|
15
15
|
import "./vendor/Package.10.mjs";
|
|
16
16
|
|
|
17
|
-
import "
|
|
17
|
+
import "buffer";
|
|
18
18
|
|
|
19
|
-
import "
|
|
19
|
+
import "module";
|
|
20
20
|
|
|
21
|
-
import "
|
|
21
|
+
import "tty";
|
|
22
22
|
|
|
23
|
-
import "
|
|
23
|
+
import "./vendor/Package.6.mjs";
|
|
24
24
|
|
|
25
|
-
import "
|
|
25
|
+
import "url";
|
|
26
26
|
|
|
27
|
-
import "
|
|
27
|
+
import "util";
|
|
28
28
|
|
|
29
|
-
import "
|
|
29
|
+
import "./vendor/Package.8.mjs";
|
|
30
30
|
|
|
31
|
-
import "./vendor/Package.
|
|
31
|
+
import "./vendor/Package.11.mjs";
|
|
32
32
|
|
|
33
|
-
import "
|
|
33
|
+
import "fs";
|
|
34
34
|
|
|
35
|
-
import "
|
|
35
|
+
import "path";
|
|
36
36
|
|
|
37
|
-
import "
|
|
37
|
+
import "os";
|
|
38
38
|
|
|
39
|
-
import "
|
|
39
|
+
import "events";
|
|
40
40
|
|
|
41
|
-
import "
|
|
41
|
+
import "stream";
|
|
42
42
|
|
|
43
|
-
import "
|
|
43
|
+
import "./vendor/Package.12.mjs";
|
|
44
44
|
|
|
45
|
-
import "
|
|
45
|
+
import "crypto";
|
|
46
46
|
|
|
47
|
-
import "
|
|
47
|
+
import "fs/promises";
|
|
48
48
|
|
|
49
49
|
import "./vendor/Package.73.mjs";
|
|
50
50
|
|
|
@@ -62,15 +62,15 @@ import "node:stream";
|
|
|
62
62
|
|
|
63
63
|
import "node:string_decoder";
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var F = r();
|
|
66
66
|
|
|
67
|
-
const
|
|
67
|
+
const C = e(F);
|
|
68
68
|
|
|
69
|
-
var
|
|
69
|
+
var D = {};
|
|
70
70
|
|
|
71
71
|
"use strict";
|
|
72
72
|
|
|
73
|
-
Object.defineProperty(
|
|
73
|
+
Object.defineProperty(D, "__esModule", {
|
|
74
74
|
value: true
|
|
75
75
|
});
|
|
76
76
|
|
|
@@ -580,7 +580,7 @@ Object.defineProperty(Kt, "__esModule", {
|
|
|
580
580
|
|
|
581
581
|
var zt = Kt.BaseEntity = void 0;
|
|
582
582
|
|
|
583
|
-
const Zt =
|
|
583
|
+
const Zt = f;
|
|
584
584
|
|
|
585
585
|
class BaseEntity {
|
|
586
586
|
hasId() {
|
|
@@ -966,7 +966,7 @@ Object.defineProperty(dr, "__esModule", {
|
|
|
966
966
|
|
|
967
967
|
var lr = dr.NotBrackets = void 0;
|
|
968
968
|
|
|
969
|
-
const yr =
|
|
969
|
+
const yr = O;
|
|
970
970
|
|
|
971
971
|
class NotBrackets extends yr.Brackets {
|
|
972
972
|
constructor() {
|
|
@@ -977,7 +977,7 @@ class NotBrackets extends yr.Brackets {
|
|
|
977
977
|
|
|
978
978
|
lr = dr.NotBrackets = NotBrackets;
|
|
979
979
|
|
|
980
|
-
var pr =
|
|
980
|
+
var pr = _();
|
|
981
981
|
|
|
982
982
|
const vr = e(pr);
|
|
983
983
|
|
|
@@ -991,11 +991,11 @@ Object.defineProperty(fr, "__esModule", {
|
|
|
991
991
|
|
|
992
992
|
var Or = fr.LegacyOracleNamingStrategy = void 0;
|
|
993
993
|
|
|
994
|
-
const mr =
|
|
994
|
+
const mr = b;
|
|
995
995
|
|
|
996
|
-
const _r =
|
|
996
|
+
const _r = E;
|
|
997
997
|
|
|
998
|
-
const gr =
|
|
998
|
+
const gr = R;
|
|
999
999
|
|
|
1000
1000
|
class LegacyOracleNamingStrategy extends _r.DefaultNamingStrategy {
|
|
1001
1001
|
constructor(e = "hash") {
|
|
@@ -1078,7 +1078,7 @@ class EntitySchemaOptions {}
|
|
|
1078
1078
|
|
|
1079
1079
|
Er = Mr.EntitySchemaOptions = EntitySchemaOptions;
|
|
1080
1080
|
|
|
1081
|
-
const Rr =
|
|
1081
|
+
const Rr = B.DataSource;
|
|
1082
1082
|
|
|
1083
1083
|
const Br = pr.MongoEntityManager;
|
|
1084
1084
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lakutata",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.26",
|
|
4
4
|
"description": "An IoC-based universal application framework.",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -38,6 +38,11 @@
|
|
|
38
38
|
"import": "./com/logger.mjs",
|
|
39
39
|
"require": "./com/logger.cjs"
|
|
40
40
|
},
|
|
41
|
+
"./provider/database": {
|
|
42
|
+
"types": "./provider/database.d.ts",
|
|
43
|
+
"import": "./provider/database.mjs",
|
|
44
|
+
"require": "./provider/database.cjs"
|
|
45
|
+
},
|
|
41
46
|
"./decorator/asst": {
|
|
42
47
|
"types": "./decorator/asst.d.ts",
|
|
43
48
|
"import": "./decorator/asst.mjs",
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, {
|
|
4
|
+
value: "Module"
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
require("../vendor/Package.3.cjs");
|
|
8
|
+
|
|
9
|
+
const e = require("../src/providers/Database.cjs");
|
|
10
|
+
|
|
11
|
+
require("../vendor/Package.4.cjs");
|
|
12
|
+
|
|
13
|
+
require("../vendor/Package.1.cjs");
|
|
14
|
+
|
|
15
|
+
require("../src/decorators/di/Configurable.cjs");
|
|
16
|
+
|
|
17
|
+
require("../src/lib/base/internal/ObjectConfiguration.cjs");
|
|
18
|
+
|
|
19
|
+
require("../src/constants/DIMetadataKey.cjs");
|
|
20
|
+
|
|
21
|
+
require("../vendor/Package.5.cjs");
|
|
22
|
+
|
|
23
|
+
require("../src/lib/base/internal/DataValidator.cjs");
|
|
24
|
+
|
|
25
|
+
require("node:util/types");
|
|
26
|
+
|
|
27
|
+
require("../src/lib/validation/VLD.cjs");
|
|
28
|
+
|
|
29
|
+
require("../vendor/Package.6.cjs");
|
|
30
|
+
|
|
31
|
+
require("url");
|
|
32
|
+
|
|
33
|
+
require("util");
|
|
34
|
+
|
|
35
|
+
require("../src/exceptions/dto/InvalidValueException.cjs");
|
|
36
|
+
|
|
37
|
+
require("../src/lib/base/abstracts/Exception.cjs");
|
|
38
|
+
|
|
39
|
+
require("../src/lib/base/internal/BasicInfo.cjs");
|
|
40
|
+
|
|
41
|
+
require("../src/lib/helpers/As.cjs");
|
|
42
|
+
|
|
43
|
+
require("../vendor/Package.7.cjs");
|
|
44
|
+
|
|
45
|
+
require("../vendor/Package.8.cjs");
|
|
46
|
+
|
|
47
|
+
require("../src/lib/base/internal/ThrowWarning.cjs");
|
|
48
|
+
|
|
49
|
+
require("../src/lib/helpers/Templating.cjs");
|
|
50
|
+
|
|
51
|
+
require("../src/lib/base/internal/CamelCase.cjs");
|
|
52
|
+
|
|
53
|
+
require("../src/lib/helpers/NoCase.cjs");
|
|
54
|
+
|
|
55
|
+
require("../vendor/Package.9.cjs");
|
|
56
|
+
|
|
57
|
+
require("../src/lib/helpers/IsHtml.cjs");
|
|
58
|
+
|
|
59
|
+
require("../src/lib/helpers/IsXML.cjs");
|
|
60
|
+
|
|
61
|
+
require("../src/constants/DTOMetadataKey.cjs");
|
|
62
|
+
|
|
63
|
+
require("../src/lib/helpers/ObjectConstructor.cjs");
|
|
64
|
+
|
|
65
|
+
require("../src/lib/helpers/ObjectParentConstructors.cjs");
|
|
66
|
+
|
|
67
|
+
require("../src/lib/helpers/ObjectParentConstructor.cjs");
|
|
68
|
+
|
|
69
|
+
require("../src/lib/helpers/ObjectPrototype.cjs");
|
|
70
|
+
|
|
71
|
+
require("../src/decorators/di/Lifetime.cjs");
|
|
72
|
+
|
|
73
|
+
require("../src/lib/base/internal/ObjectLifetime.cjs");
|
|
74
|
+
|
|
75
|
+
require("../src/exceptions/di/LifetimeLockedException.cjs");
|
|
76
|
+
|
|
77
|
+
require("../vendor/Package.2.cjs");
|
|
78
|
+
|
|
79
|
+
require("../vendor/Package.22.cjs");
|
|
80
|
+
|
|
81
|
+
require("../vendor/Package.72.cjs");
|
|
82
|
+
|
|
83
|
+
require("../vendor/Package.10.cjs");
|
|
84
|
+
|
|
85
|
+
require("buffer");
|
|
86
|
+
|
|
87
|
+
require("module");
|
|
88
|
+
|
|
89
|
+
require("tty");
|
|
90
|
+
|
|
91
|
+
require("../vendor/Package.11.cjs");
|
|
92
|
+
|
|
93
|
+
require("fs");
|
|
94
|
+
|
|
95
|
+
require("path");
|
|
96
|
+
|
|
97
|
+
require("os");
|
|
98
|
+
|
|
99
|
+
require("events");
|
|
100
|
+
|
|
101
|
+
require("stream");
|
|
102
|
+
|
|
103
|
+
require("../vendor/Package.12.cjs");
|
|
104
|
+
|
|
105
|
+
require("crypto");
|
|
106
|
+
|
|
107
|
+
require("fs/promises");
|
|
108
|
+
|
|
109
|
+
require("../vendor/Package.73.cjs");
|
|
110
|
+
|
|
111
|
+
require("node:url");
|
|
112
|
+
|
|
113
|
+
require("node:path");
|
|
114
|
+
|
|
115
|
+
require("node:fs");
|
|
116
|
+
|
|
117
|
+
require("node:fs/promises");
|
|
118
|
+
|
|
119
|
+
require("node:events");
|
|
120
|
+
|
|
121
|
+
require("node:stream");
|
|
122
|
+
|
|
123
|
+
require("node:string_decoder");
|
|
124
|
+
|
|
125
|
+
require("../src/lib/core/Provider.cjs");
|
|
126
|
+
|
|
127
|
+
require("../vendor/Package.13.cjs");
|
|
128
|
+
|
|
129
|
+
require("../src/lib/base/async-constructor/AsyncConstructor.cjs");
|
|
130
|
+
|
|
131
|
+
require("../src/lib/base/async-constructor/Append.cjs");
|
|
132
|
+
|
|
133
|
+
require("../src/lib/helpers/IsPromiseLike.cjs");
|
|
134
|
+
|
|
135
|
+
require("../src/lib/helpers/IsPromise.cjs");
|
|
136
|
+
|
|
137
|
+
require("util/types");
|
|
138
|
+
|
|
139
|
+
require("../src/exceptions/MethodNotFoundException.cjs");
|
|
140
|
+
|
|
141
|
+
require("../src/lib/ioc/DependencyInjectionContainer.cjs");
|
|
142
|
+
|
|
143
|
+
require("../src/lib/ioc/Errors.cjs");
|
|
144
|
+
|
|
145
|
+
require("../src/exceptions/di/DependencyInjectionException.cjs");
|
|
146
|
+
|
|
147
|
+
require("../src/lib/base/internal/ConstructorSymbol.cjs");
|
|
148
|
+
|
|
149
|
+
require("node:crypto");
|
|
150
|
+
|
|
151
|
+
require("../src/lib/ioc/InjectionMode.cjs");
|
|
152
|
+
|
|
153
|
+
require("../src/lib/ioc/Lifetime.cjs");
|
|
154
|
+
|
|
155
|
+
require("../src/lib/ioc/ListModules.cjs");
|
|
156
|
+
|
|
157
|
+
require("../src/lib/ioc/Utils.cjs");
|
|
158
|
+
|
|
159
|
+
require("../src/lib/ioc/FunctionTokenizer.cjs");
|
|
160
|
+
|
|
161
|
+
require("../src/lib/ioc/LoadModules.cjs");
|
|
162
|
+
|
|
163
|
+
require("../src/lib/ioc/Resolvers.cjs");
|
|
164
|
+
|
|
165
|
+
require("../src/lib/ioc/ParamParser.cjs");
|
|
166
|
+
|
|
167
|
+
require("../src/lib/base/internal/ObjectWeakRefs.cjs");
|
|
168
|
+
|
|
169
|
+
require("../src/lib/base/internal/ConfigurableRecordsInjection.cjs");
|
|
170
|
+
|
|
171
|
+
require("../src/lib/base/internal/ObjectInjection.cjs");
|
|
172
|
+
|
|
173
|
+
require("../src/lib/base/internal/ObjectContainer.cjs");
|
|
174
|
+
|
|
175
|
+
require("../src/lib/helpers/DevNull.cjs");
|
|
176
|
+
|
|
177
|
+
require("../src/decorators/dto/Expect.cjs");
|
|
178
|
+
|
|
179
|
+
require("../src/decorators/dto/IndexSignature.cjs");
|
|
180
|
+
|
|
181
|
+
require("../src/decorators/dto/Accept.cjs");
|
|
182
|
+
|
|
183
|
+
require("../src/lib/base/internal/MethodValidation.cjs");
|
|
184
|
+
|
|
185
|
+
require("../src/exceptions/dto/InvalidMethodAcceptException.cjs");
|
|
186
|
+
|
|
187
|
+
require("../src/exceptions/dto/InvalidMethodReturnException.cjs");
|
|
188
|
+
|
|
189
|
+
require("../src/lib/helpers/IsEmptyObject.cjs");
|
|
190
|
+
|
|
191
|
+
exports.BuildDatabaseOptions = e.BuildDatabaseOptions;
|
|
192
|
+
|
|
193
|
+
Object.defineProperty(exports, "Database", {
|
|
194
|
+
enumerable: true,
|
|
195
|
+
get: () => e.Database
|
|
196
|
+
});
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import '../vendor/TypeDef.2.js';
|
|
2
|
+
import { D as DataSourceOptions, i as MixedList, j as EntitySchema, a as DataSource, b as Driver, E as EntityManager, N as NamingStrategyInterface, c as EntitySubscriberInterface, d as EntityMetadata, e as EntityTarget, Q as QueryResultCache, M as Migration, O as ObjectLiteral, R as Repository, T as TreeRepository, f as MongoRepository, I as IsolationLevel, g as QueryRunner, S as SelectQueryBuilder, h as ReplicationMode } from '../vendor/TypeDef.4.js';
|
|
3
|
+
import { P as Provider } from '../vendor/TypeDef.3.js';
|
|
4
|
+
import 'fs';
|
|
5
|
+
import 'tls';
|
|
6
|
+
import 'net';
|
|
7
|
+
import 'dns';
|
|
8
|
+
import 'events';
|
|
9
|
+
import 'stream';
|
|
10
|
+
import '../vendor/TypeDef.5.js';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Build database provider connection options
|
|
14
|
+
* @param options
|
|
15
|
+
* @constructor
|
|
16
|
+
*/
|
|
17
|
+
declare const BuildDatabaseOptions: (options: Omit<DataSourceOptions, 'entities'>) => {
|
|
18
|
+
class: typeof Database;
|
|
19
|
+
options: Omit<DataSourceOptions, 'entities'>;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Database component
|
|
23
|
+
*/
|
|
24
|
+
declare class Database extends Provider {
|
|
25
|
+
#private;
|
|
26
|
+
/**
|
|
27
|
+
* Connection options
|
|
28
|
+
*/
|
|
29
|
+
protected readonly options: DataSourceOptions;
|
|
30
|
+
/**
|
|
31
|
+
* Database entities
|
|
32
|
+
* @protected
|
|
33
|
+
*/
|
|
34
|
+
protected readonly entities: MixedList<Function | string | EntitySchema>;
|
|
35
|
+
/**
|
|
36
|
+
* Datasource instance
|
|
37
|
+
* @protected
|
|
38
|
+
*/
|
|
39
|
+
protected get datasource(): DataSource;
|
|
40
|
+
/**
|
|
41
|
+
* Connection driver
|
|
42
|
+
*/
|
|
43
|
+
get driver(): Driver;
|
|
44
|
+
/**
|
|
45
|
+
* EntityManager of this connection.
|
|
46
|
+
*/
|
|
47
|
+
get manager(): EntityManager;
|
|
48
|
+
/**
|
|
49
|
+
* Set naming strategy used in the connection.
|
|
50
|
+
* @param instance
|
|
51
|
+
*/
|
|
52
|
+
set namingStrategy(instance: NamingStrategyInterface);
|
|
53
|
+
/**
|
|
54
|
+
* Get naming strategy used in the connection.
|
|
55
|
+
*/
|
|
56
|
+
get namingStrategy(): NamingStrategyInterface;
|
|
57
|
+
/**
|
|
58
|
+
* Entity subscriber instances that are registered for this connection.
|
|
59
|
+
*/
|
|
60
|
+
get subscribers(): EntitySubscriberInterface<any>[];
|
|
61
|
+
/**
|
|
62
|
+
* All entity metadatas that are registered for this connection.
|
|
63
|
+
*/
|
|
64
|
+
get entityMetadatas(): EntityMetadata[];
|
|
65
|
+
/**
|
|
66
|
+
* All entity metadatas that are registered for this connection.
|
|
67
|
+
* This is a copy of #.entityMetadatas property -> used for more performant searches.
|
|
68
|
+
*/
|
|
69
|
+
get entityMetadatasMap(): Map<EntityTarget<any>, EntityMetadata>;
|
|
70
|
+
/**
|
|
71
|
+
* Used to work with query result cache.
|
|
72
|
+
*/
|
|
73
|
+
get queryResultCache(): QueryResultCache | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Initializer
|
|
76
|
+
* @protected
|
|
77
|
+
*/
|
|
78
|
+
protected init(): Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* Destroyer
|
|
81
|
+
* @protected
|
|
82
|
+
*/
|
|
83
|
+
protected destroy(): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Creates database schema for all entities registered in this connection.
|
|
86
|
+
* Can be used only after connection to the database is established.
|
|
87
|
+
*
|
|
88
|
+
* @param dropBeforeSync If set to true then it drops the database with all its tables and data
|
|
89
|
+
*/
|
|
90
|
+
synchronize(dropBeforeSync?: boolean): Promise<void>;
|
|
91
|
+
/**
|
|
92
|
+
* Runs all pending migrations.
|
|
93
|
+
* Can be used only after connection to the database is established.
|
|
94
|
+
* @param options
|
|
95
|
+
*/
|
|
96
|
+
runMigrations(options?: {
|
|
97
|
+
transaction?: 'all' | 'none' | 'each';
|
|
98
|
+
fake?: boolean;
|
|
99
|
+
}): Promise<Migration[]>;
|
|
100
|
+
/**
|
|
101
|
+
* Reverts last executed migration.
|
|
102
|
+
* Can be used only after connection to the database is established.
|
|
103
|
+
* @param options
|
|
104
|
+
*/
|
|
105
|
+
undoLastMigration(options?: {
|
|
106
|
+
transaction?: 'all' | 'none' | 'each';
|
|
107
|
+
fake?: boolean;
|
|
108
|
+
}): Promise<void>;
|
|
109
|
+
/**
|
|
110
|
+
* Lists all migrations and whether they have been run.
|
|
111
|
+
* Returns true if there are pending migrations
|
|
112
|
+
*/
|
|
113
|
+
showMigrations(): Promise<boolean>;
|
|
114
|
+
/**
|
|
115
|
+
* Checks if entity metadata exist for the given entity class, target name or table name.
|
|
116
|
+
* @param target
|
|
117
|
+
*/
|
|
118
|
+
hasMetadata(target: EntityTarget<any>): boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Gets entity metadata for the given entity class or schema name.
|
|
121
|
+
* @param target
|
|
122
|
+
*/
|
|
123
|
+
getMetadata(target: EntityTarget<any>): EntityMetadata;
|
|
124
|
+
/**
|
|
125
|
+
* Gets repository for the given entity.
|
|
126
|
+
* @param target
|
|
127
|
+
*/
|
|
128
|
+
getRepository<Entity extends ObjectLiteral>(target: EntityTarget<Entity>): Repository<Entity>;
|
|
129
|
+
/**
|
|
130
|
+
* Gets tree repository for the given entity class or name.
|
|
131
|
+
* Only tree-type entities can have a TreeRepository, like ones decorated with @Tree decorator.
|
|
132
|
+
* @param target
|
|
133
|
+
*/
|
|
134
|
+
getTreeRepository<Entity extends ObjectLiteral>(target: EntityTarget<Entity>): TreeRepository<Entity>;
|
|
135
|
+
/**
|
|
136
|
+
* Gets mongodb-specific repository for the given entity class or name.
|
|
137
|
+
* Works only if connection is mongodb-specific.
|
|
138
|
+
* @param target
|
|
139
|
+
*/
|
|
140
|
+
getMongoRepository<Entity extends ObjectLiteral>(target: EntityTarget<Entity>): MongoRepository<Entity>;
|
|
141
|
+
/**
|
|
142
|
+
* Wraps given function execution (and all operations made there) into a transaction.
|
|
143
|
+
* All database operations must be executed using provided entity manager.
|
|
144
|
+
* @param runInTransaction
|
|
145
|
+
*/
|
|
146
|
+
transaction<T>(runInTransaction: (entityManager: EntityManager) => Promise<T>): Promise<T>;
|
|
147
|
+
transaction<T>(isolationLevel: IsolationLevel, runInTransaction: (entityManager: EntityManager) => Promise<T>): Promise<T>;
|
|
148
|
+
/**
|
|
149
|
+
* Executes raw SQL query and returns raw database results.
|
|
150
|
+
* @param query
|
|
151
|
+
* @param parameters
|
|
152
|
+
* @param queryRunner
|
|
153
|
+
*/
|
|
154
|
+
query<T = any>(query: string, parameters?: any[], queryRunner?: QueryRunner): Promise<T>;
|
|
155
|
+
/**
|
|
156
|
+
* Creates a new query builder that can be used to build a SQL query.
|
|
157
|
+
* @param entityClass
|
|
158
|
+
* @param alias
|
|
159
|
+
* @param queryRunner
|
|
160
|
+
*/
|
|
161
|
+
createQueryBuilder<Entity extends ObjectLiteral>(entityClass: EntityTarget<Entity>, alias: string, queryRunner?: QueryRunner): SelectQueryBuilder<Entity>;
|
|
162
|
+
createQueryBuilder(queryRunner?: QueryRunner): SelectQueryBuilder<any>;
|
|
163
|
+
/**
|
|
164
|
+
* Creates a query runner used for perform queries on a single database connection.
|
|
165
|
+
* Using query runners you can control your queries to execute using single database connection and
|
|
166
|
+
* manually control your database transaction.
|
|
167
|
+
*
|
|
168
|
+
* Mode is used in replication mode and indicates whatever you want to connect
|
|
169
|
+
* to master database or any of slave databases.
|
|
170
|
+
* If you perform writes you must use master database,
|
|
171
|
+
* if you perform reads you can use slave databases.
|
|
172
|
+
*
|
|
173
|
+
* @param mode
|
|
174
|
+
*/
|
|
175
|
+
createQueryRunner(mode?: ReplicationMode): QueryRunner;
|
|
176
|
+
/**
|
|
177
|
+
* Gets entity metadata of the junction table (many-to-many table).
|
|
178
|
+
* @param entityTarget
|
|
179
|
+
* @param relationPropertyPath
|
|
180
|
+
*/
|
|
181
|
+
getManyToManyMetadata(entityTarget: EntityTarget<any>, relationPropertyPath: string): EntityMetadata | undefined;
|
|
182
|
+
/**
|
|
183
|
+
* Creates an Entity Manager for the current connection with the help of the EntityManagerFactory.
|
|
184
|
+
* @param queryRunner
|
|
185
|
+
*/
|
|
186
|
+
createEntityManager(queryRunner?: QueryRunner): EntityManager;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export { BuildDatabaseOptions, Database };
|