@itwin/core-backend 5.11.0-dev.5 → 5.11.0-dev.6
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/lib/cjs/BackendHubAccess.js.map +1 -1
- package/lib/cjs/BackendLoggerCategory.js.map +1 -1
- package/lib/cjs/BisCoreSchema.js.map +1 -1
- package/lib/cjs/BlobContainerService.js.map +1 -1
- package/lib/cjs/BriefcaseManager.js.map +1 -1
- package/lib/cjs/CatalogDb.js.map +1 -1
- package/lib/cjs/Category.js.map +1 -1
- package/lib/cjs/ChangeSummaryManager.js +2 -2
- package/lib/cjs/ChangeSummaryManager.js.map +1 -1
- package/lib/cjs/ChangedElementsDb.js.map +1 -1
- package/lib/cjs/ChangesetECAdaptor.js +248 -248
- package/lib/cjs/ChangesetECAdaptor.js.map +1 -1
- package/lib/cjs/ChangesetReader.js +3 -3
- package/lib/cjs/ChangesetReader.js.map +1 -1
- package/lib/cjs/ChangesetReaderTypes.js.map +1 -1
- package/lib/cjs/ChannelControl.js.map +1 -1
- package/lib/cjs/CheckpointManager.js.map +1 -1
- package/lib/cjs/ClassRegistry.js +5 -5
- package/lib/cjs/ClassRegistry.js.map +1 -1
- package/lib/cjs/CloudSqlite.js.map +1 -1
- package/lib/cjs/CodeService.js.map +1 -1
- package/lib/cjs/CodeSpecs.js.map +1 -1
- package/lib/cjs/ConcurrentQuery.js.map +1 -1
- package/lib/cjs/CustomViewState3dCreator.js.map +1 -1
- package/lib/cjs/DevTools.js.map +1 -1
- package/lib/cjs/DisplayStyle.js.map +1 -1
- package/lib/cjs/ECDb.js.map +1 -1
- package/lib/cjs/ECSchemaXmlContext.js.map +1 -1
- package/lib/cjs/ECSqlRowExecutor.js.map +1 -1
- package/lib/cjs/ECSqlStatement.js.map +1 -1
- package/lib/cjs/ECSqlSyncReader.js.map +1 -1
- package/lib/cjs/EditTxn.js.map +1 -1
- package/lib/cjs/Element.js.map +1 -1
- package/lib/cjs/ElementAspect.js.map +1 -1
- package/lib/cjs/ElementGraphics.js.map +1 -1
- package/lib/cjs/ElementTreeWalker.js.map +1 -1
- package/lib/cjs/Entity.js.map +1 -1
- package/lib/cjs/EntityReferences.js.map +1 -1
- package/lib/cjs/ExportGraphics.js.map +1 -1
- package/lib/cjs/ExternalSource.js.map +1 -1
- package/lib/cjs/FontFile.js.map +1 -1
- package/lib/cjs/GeoCoordConfig.js.map +1 -1
- package/lib/cjs/GeographicCRSServices.js.map +1 -1
- package/lib/cjs/GeometrySummary.js +47 -47
- package/lib/cjs/GeometrySummary.js.map +1 -1
- package/lib/cjs/IModelDb.js +8 -8
- package/lib/cjs/IModelDb.js.map +1 -1
- package/lib/cjs/IModelDbFonts.js.map +1 -1
- package/lib/cjs/IModelElementCloneContext.js.map +1 -1
- package/lib/cjs/IModelHost.js.map +1 -1
- package/lib/cjs/IModelIncrementalSchemaLocater.js.map +1 -1
- package/lib/cjs/IModelJsFs.js.map +1 -1
- package/lib/cjs/ImageSourceConversion.js.map +1 -1
- package/lib/cjs/IpcHost.js.map +1 -1
- package/lib/cjs/LineStyle.js.map +1 -1
- package/lib/cjs/LocalHub.js +1 -1
- package/lib/cjs/LocalHub.js.map +1 -1
- package/lib/cjs/LocalhostIpcHost.js.map +1 -1
- package/lib/cjs/LockControl.js.map +1 -1
- package/lib/cjs/Material.js.map +1 -1
- package/lib/cjs/Model.js.map +1 -1
- package/lib/cjs/NativeAppStorage.js.map +1 -1
- package/lib/cjs/NativeHost.js.map +1 -1
- package/lib/cjs/NavigationRelationship.js.map +1 -1
- package/lib/cjs/PartialChangeUnifier.js +7 -7
- package/lib/cjs/PartialChangeUnifier.js.map +1 -1
- package/lib/cjs/PromiseMemoizer.js.map +1 -1
- package/lib/cjs/PropertyStore.js.map +1 -1
- package/lib/cjs/Relationship.js.map +1 -1
- package/lib/cjs/RpcBackend.js.map +1 -1
- package/lib/cjs/SQLiteDb.js.map +1 -1
- package/lib/cjs/Schema.js.map +1 -1
- package/lib/cjs/SchemaSync.js.map +1 -1
- package/lib/cjs/SchemaUtils.js.map +1 -1
- package/lib/cjs/SheetIndex.js.map +1 -1
- package/lib/cjs/SqliteChangesetReader.js.map +1 -1
- package/lib/cjs/SqliteStatement.js.map +1 -1
- package/lib/cjs/StashManager.js.map +1 -1
- package/lib/cjs/Texture.js.map +1 -1
- package/lib/cjs/TileStorage.js.map +1 -1
- package/lib/cjs/TxnManager.js.map +1 -1
- package/lib/cjs/ViewDefinition.js.map +1 -1
- package/lib/cjs/ViewStateHydrator.js.map +1 -1
- package/lib/cjs/ViewStore.js.map +1 -1
- package/lib/cjs/annotations/ElementDrivesTextAnnotation.js.map +1 -1
- package/lib/cjs/annotations/FrameGeometry.js.map +1 -1
- package/lib/cjs/annotations/LeaderGeometry.js.map +1 -1
- package/lib/cjs/annotations/TextAnnotationElement.js.map +1 -1
- package/lib/cjs/annotations/TextAnnotationGeometry.js.map +1 -1
- package/lib/cjs/annotations/TextBlockGeometry.js.map +1 -1
- package/lib/cjs/annotations/TextBlockLayout.js.map +1 -1
- package/lib/cjs/assets/IModelChange.02.00.00.ecschema.xml +90 -90
- package/lib/cjs/assets/Settings/Schemas/Base.Schema.json +36 -36
- package/lib/cjs/assets/Settings/Schemas/Gcs.schema.json +28 -28
- package/lib/cjs/assets/Settings/Schemas/Workspace.Schema.json +94 -94
- package/lib/cjs/assets/Settings/backend.setting.json5 +21 -21
- package/lib/cjs/core-backend.js.map +1 -1
- package/lib/cjs/domains/FunctionalElements.js.map +1 -1
- package/lib/cjs/domains/FunctionalSchema.js.map +1 -1
- package/lib/cjs/domains/GenericElements.js.map +1 -1
- package/lib/cjs/domains/GenericSchema.js.map +1 -1
- package/lib/cjs/internal/ChangesetConflictArgs.js.map +1 -1
- package/lib/cjs/internal/ChannelAdmin.js.map +1 -1
- package/lib/cjs/internal/ElementLRUCache.js.map +1 -1
- package/lib/cjs/internal/FontFileImpl.js.map +1 -1
- package/lib/cjs/internal/HubMock.js.map +1 -1
- package/lib/cjs/internal/IModelDbFontsImpl.js.map +1 -1
- package/lib/cjs/internal/IntegrityCheck.js.map +1 -1
- package/lib/cjs/internal/NativePlatform.js.map +1 -1
- package/lib/cjs/internal/NoLocks.js.map +1 -1
- package/lib/cjs/internal/OnlineStatus.js.map +1 -1
- package/lib/cjs/internal/ServerBasedLocks.js +33 -33
- package/lib/cjs/internal/ServerBasedLocks.js.map +1 -1
- package/lib/cjs/internal/Symbols.js.map +1 -1
- package/lib/cjs/internal/annotations/fields.js.map +1 -1
- package/lib/cjs/internal/cross-package.js.map +1 -1
- package/lib/cjs/internal/workspace/SettingsEditorImpl.js.map +1 -1
- package/lib/cjs/internal/workspace/SettingsImpl.js.map +1 -1
- package/lib/cjs/internal/workspace/SettingsSchemasImpl.js.map +1 -1
- package/lib/cjs/internal/workspace/WorkspaceImpl.js.map +1 -1
- package/lib/cjs/internal/workspace/WorkspaceSqliteDb.js.map +1 -1
- package/lib/cjs/rpc/multipart.js.map +1 -1
- package/lib/cjs/rpc/tracing.js.map +1 -1
- package/lib/cjs/rpc/web/logging.js.map +1 -1
- package/lib/cjs/rpc/web/request.js.map +1 -1
- package/lib/cjs/rpc/web/response.js.map +1 -1
- package/lib/cjs/rpc-impl/DevToolsRpcImpl.js.map +1 -1
- package/lib/cjs/rpc-impl/IModelReadRpcImpl.js.map +1 -1
- package/lib/cjs/rpc-impl/IModelTileRpcImpl.js.map +1 -1
- package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js.map +1 -1
- package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.js.map +1 -1
- package/lib/cjs/workspace/Settings.js.map +1 -1
- package/lib/cjs/workspace/SettingsDb.js.map +1 -1
- package/lib/cjs/workspace/SettingsEditor.js.map +1 -1
- package/lib/cjs/workspace/SettingsSchemas.js.map +1 -1
- package/lib/cjs/workspace/Workspace.js.map +1 -1
- package/lib/cjs/workspace/WorkspaceEditor.js.map +1 -1
- package/lib/esm/BackendHubAccess.js.map +1 -1
- package/lib/esm/BackendLoggerCategory.js.map +1 -1
- package/lib/esm/BisCoreSchema.js.map +1 -1
- package/lib/esm/BlobContainerService.js.map +1 -1
- package/lib/esm/BriefcaseManager.js.map +1 -1
- package/lib/esm/CatalogDb.js.map +1 -1
- package/lib/esm/Category.js.map +1 -1
- package/lib/esm/ChangeSummaryManager.js +2 -2
- package/lib/esm/ChangeSummaryManager.js.map +1 -1
- package/lib/esm/ChangedElementsDb.js.map +1 -1
- package/lib/esm/ChangesetECAdaptor.js +248 -248
- package/lib/esm/ChangesetECAdaptor.js.map +1 -1
- package/lib/esm/ChangesetReader.js +3 -3
- package/lib/esm/ChangesetReader.js.map +1 -1
- package/lib/esm/ChangesetReaderTypes.js.map +1 -1
- package/lib/esm/ChannelControl.js.map +1 -1
- package/lib/esm/CheckpointManager.js.map +1 -1
- package/lib/esm/ClassRegistry.js +5 -5
- package/lib/esm/ClassRegistry.js.map +1 -1
- package/lib/esm/CloudSqlite.js.map +1 -1
- package/lib/esm/CodeService.js.map +1 -1
- package/lib/esm/CodeSpecs.js.map +1 -1
- package/lib/esm/ConcurrentQuery.js.map +1 -1
- package/lib/esm/CustomViewState3dCreator.js.map +1 -1
- package/lib/esm/DevTools.js.map +1 -1
- package/lib/esm/DisplayStyle.js.map +1 -1
- package/lib/esm/ECDb.js.map +1 -1
- package/lib/esm/ECSchemaXmlContext.js.map +1 -1
- package/lib/esm/ECSqlRowExecutor.js.map +1 -1
- package/lib/esm/ECSqlStatement.js.map +1 -1
- package/lib/esm/ECSqlSyncReader.js.map +1 -1
- package/lib/esm/EditTxn.js.map +1 -1
- package/lib/esm/Element.js.map +1 -1
- package/lib/esm/ElementAspect.js.map +1 -1
- package/lib/esm/ElementGraphics.js.map +1 -1
- package/lib/esm/ElementTreeWalker.js.map +1 -1
- package/lib/esm/Entity.js.map +1 -1
- package/lib/esm/EntityReferences.js.map +1 -1
- package/lib/esm/ExportGraphics.js.map +1 -1
- package/lib/esm/ExternalSource.js.map +1 -1
- package/lib/esm/FontFile.js.map +1 -1
- package/lib/esm/GeoCoordConfig.js.map +1 -1
- package/lib/esm/GeographicCRSServices.js.map +1 -1
- package/lib/esm/GeometrySummary.js +47 -47
- package/lib/esm/GeometrySummary.js.map +1 -1
- package/lib/esm/IModelDb.js +8 -8
- package/lib/esm/IModelDb.js.map +1 -1
- package/lib/esm/IModelDbFonts.js.map +1 -1
- package/lib/esm/IModelElementCloneContext.js.map +1 -1
- package/lib/esm/IModelHost.js.map +1 -1
- package/lib/esm/IModelIncrementalSchemaLocater.js.map +1 -1
- package/lib/esm/IModelJsFs.js.map +1 -1
- package/lib/esm/ImageSourceConversion.js.map +1 -1
- package/lib/esm/IpcHost.js.map +1 -1
- package/lib/esm/LineStyle.js.map +1 -1
- package/lib/esm/LocalHub.js +1 -1
- package/lib/esm/LocalHub.js.map +1 -1
- package/lib/esm/LocalhostIpcHost.js.map +1 -1
- package/lib/esm/LockControl.js.map +1 -1
- package/lib/esm/Material.js.map +1 -1
- package/lib/esm/Model.js.map +1 -1
- package/lib/esm/NativeAppStorage.js.map +1 -1
- package/lib/esm/NativeHost.js.map +1 -1
- package/lib/esm/NavigationRelationship.js.map +1 -1
- package/lib/esm/PartialChangeUnifier.js +7 -7
- package/lib/esm/PartialChangeUnifier.js.map +1 -1
- package/lib/esm/PromiseMemoizer.js.map +1 -1
- package/lib/esm/PropertyStore.js.map +1 -1
- package/lib/esm/Relationship.js.map +1 -1
- package/lib/esm/RpcBackend.js.map +1 -1
- package/lib/esm/SQLiteDb.js.map +1 -1
- package/lib/esm/Schema.js.map +1 -1
- package/lib/esm/SchemaSync.js.map +1 -1
- package/lib/esm/SchemaUtils.js.map +1 -1
- package/lib/esm/SheetIndex.js.map +1 -1
- package/lib/esm/SqliteChangesetReader.js.map +1 -1
- package/lib/esm/SqliteStatement.js.map +1 -1
- package/lib/esm/StashManager.js.map +1 -1
- package/lib/esm/Texture.js.map +1 -1
- package/lib/esm/TileStorage.js.map +1 -1
- package/lib/esm/TxnManager.js.map +1 -1
- package/lib/esm/ViewDefinition.js.map +1 -1
- package/lib/esm/ViewStateHydrator.js.map +1 -1
- package/lib/esm/ViewStore.js.map +1 -1
- package/lib/esm/annotations/ElementDrivesTextAnnotation.js.map +1 -1
- package/lib/esm/annotations/FrameGeometry.js.map +1 -1
- package/lib/esm/annotations/LeaderGeometry.js.map +1 -1
- package/lib/esm/annotations/TextAnnotationElement.js.map +1 -1
- package/lib/esm/annotations/TextAnnotationGeometry.js.map +1 -1
- package/lib/esm/annotations/TextBlockGeometry.js.map +1 -1
- package/lib/esm/annotations/TextBlockLayout.js.map +1 -1
- package/lib/esm/core-backend.js.map +1 -1
- package/lib/esm/domains/FunctionalElements.js.map +1 -1
- package/lib/esm/domains/FunctionalSchema.js.map +1 -1
- package/lib/esm/domains/GenericElements.js.map +1 -1
- package/lib/esm/domains/GenericSchema.js.map +1 -1
- package/lib/esm/internal/ChangesetConflictArgs.js.map +1 -1
- package/lib/esm/internal/ChannelAdmin.js.map +1 -1
- package/lib/esm/internal/ElementLRUCache.js.map +1 -1
- package/lib/esm/internal/FontFileImpl.js.map +1 -1
- package/lib/esm/internal/HubMock.js.map +1 -1
- package/lib/esm/internal/IModelDbFontsImpl.js.map +1 -1
- package/lib/esm/internal/IntegrityCheck.js.map +1 -1
- package/lib/esm/internal/NativePlatform.js.map +1 -1
- package/lib/esm/internal/NoLocks.js.map +1 -1
- package/lib/esm/internal/OnlineStatus.js.map +1 -1
- package/lib/esm/internal/ServerBasedLocks.js +33 -33
- package/lib/esm/internal/ServerBasedLocks.js.map +1 -1
- package/lib/esm/internal/Symbols.js.map +1 -1
- package/lib/esm/internal/annotations/fields.js.map +1 -1
- package/lib/esm/internal/cross-package.js.map +1 -1
- package/lib/esm/internal/workspace/SettingsEditorImpl.js.map +1 -1
- package/lib/esm/internal/workspace/SettingsImpl.js.map +1 -1
- package/lib/esm/internal/workspace/SettingsSchemasImpl.js.map +1 -1
- package/lib/esm/internal/workspace/WorkspaceImpl.js.map +1 -1
- package/lib/esm/internal/workspace/WorkspaceSqliteDb.js.map +1 -1
- package/lib/esm/rpc/multipart.js.map +1 -1
- package/lib/esm/rpc/tracing.js.map +1 -1
- package/lib/esm/rpc/web/logging.js.map +1 -1
- package/lib/esm/rpc/web/request.js.map +1 -1
- package/lib/esm/rpc/web/response.js.map +1 -1
- package/lib/esm/rpc-impl/DevToolsRpcImpl.js.map +1 -1
- package/lib/esm/rpc-impl/IModelReadRpcImpl.js.map +1 -1
- package/lib/esm/rpc-impl/IModelTileRpcImpl.js.map +1 -1
- package/lib/esm/rpc-impl/RpcBriefcaseUtility.js.map +1 -1
- package/lib/esm/rpc-impl/SnapshotIModelRpcImpl.js.map +1 -1
- package/lib/esm/test/AdvancedEqual.js.map +1 -1
- package/lib/esm/test/AnnotationTestUtils.js.map +1 -1
- package/lib/esm/test/AttachDb.test.js +11 -11
- package/lib/esm/test/AttachDb.test.js.map +1 -1
- package/lib/esm/test/ElementDrivesElement.test.js +23 -23
- package/lib/esm/test/ElementDrivesElement.test.js.map +1 -1
- package/lib/esm/test/ElementLRUCache.test.js.map +1 -1
- package/lib/esm/test/GeometryTestUtil.js.map +1 -1
- package/lib/esm/test/IModelHost.test.js.map +1 -1
- package/lib/esm/test/IModelTestUtils.js.map +1 -1
- package/lib/esm/test/ImageSourceConversion.test.js.map +1 -1
- package/lib/esm/test/IpcHost.test.js.map +1 -1
- package/lib/esm/test/KnownTestLocations.js.map +1 -1
- package/lib/esm/test/PrintElementTree.js.map +1 -1
- package/lib/esm/test/PropertyDb.test.js.map +1 -1
- package/lib/esm/test/RevisionUtility.js.map +1 -1
- package/lib/esm/test/SchemaChangesetCanBeReversed.test.js +51 -51
- package/lib/esm/test/SchemaChangesetCanBeReversed.test.js.map +1 -1
- package/lib/esm/test/SchemaUtils.test.js +25 -25
- package/lib/esm/test/SchemaUtils.test.js.map +1 -1
- package/lib/esm/test/SequentialLogMatcher.js.map +1 -1
- package/lib/esm/test/SquashSchemaAndDataChanges.test.js +129 -129
- package/lib/esm/test/SquashSchemaAndDataChanges.test.js.map +1 -1
- package/lib/esm/test/TestChangeSetUtility.js.map +1 -1
- package/lib/esm/test/TestEditTxn.js.map +1 -1
- package/lib/esm/test/TestUtils.js.map +1 -1
- package/lib/esm/test/annotations/Fields.test.js +53 -53
- package/lib/esm/test/annotations/Fields.test.js.map +1 -1
- package/lib/esm/test/annotations/FrameGeometry.test.js.map +1 -1
- package/lib/esm/test/annotations/LeaderGeometry.test.js.map +1 -1
- package/lib/esm/test/annotations/TextAnnotation.test.js.map +1 -1
- package/lib/esm/test/annotations/TextBlock.test.js.map +1 -1
- package/lib/esm/test/assets/IncrementalSchemaLocater/configs/old.config.js.map +1 -1
- package/lib/esm/test/assets/IncrementalSchemaLocater/configs/simple.config.js.map +1 -1
- package/lib/esm/test/categories/Category.test.js.map +1 -1
- package/lib/esm/test/codespec/CodeSpec.test.js.map +1 -1
- package/lib/esm/test/ecdb/CTE.test.js +88 -88
- package/lib/esm/test/ecdb/CTE.test.js.map +1 -1
- package/lib/esm/test/ecdb/ConcurrentQuery.test.js +19 -19
- package/lib/esm/test/ecdb/ConcurrentQuery.test.js.map +1 -1
- package/lib/esm/test/ecdb/ConcurrentQueryLoad.test.js +15 -15
- package/lib/esm/test/ecdb/ConcurrentQueryLoad.test.js.map +1 -1
- package/lib/esm/test/ecdb/ECDb.test.js +72 -72
- package/lib/esm/test/ecdb/ECDb.test.js.map +1 -1
- package/lib/esm/test/ecdb/ECDbTestHelper.js.map +1 -1
- package/lib/esm/test/ecdb/ECSchemaXmlContext.test.js.map +1 -1
- package/lib/esm/test/ecdb/ECSqlAst.test.js +65 -65
- package/lib/esm/test/ecdb/ECSqlAst.test.js.map +1 -1
- package/lib/esm/test/ecdb/ECSqlQuery.test.js +4 -4
- package/lib/esm/test/ecdb/ECSqlQuery.test.js.map +1 -1
- package/lib/esm/test/ecdb/ECSqlStatement.test.js +332 -332
- package/lib/esm/test/ecdb/ECSqlStatement.test.js.map +1 -1
- package/lib/esm/test/ecdb/ECSqlSyncReader.test.js.map +1 -1
- package/lib/esm/test/ecdb/QueryReaders.test.js +31 -31
- package/lib/esm/test/ecdb/QueryReaders.test.js.map +1 -1
- package/lib/esm/test/ecdb/SqliteStatement.test.js.map +1 -1
- package/lib/esm/test/ecsql/dataset/ECSqlDatasets.js.map +1 -1
- package/lib/esm/test/ecsql/src/ECSqlTestGenerator.js +21 -21
- package/lib/esm/test/ecsql/src/ECSqlTestGenerator.js.map +1 -1
- package/lib/esm/test/ecsql/src/ECSqlTestParser.js.map +1 -1
- package/lib/esm/test/ecsql/src/ECSqlTestRunner.test.js.map +1 -1
- package/lib/esm/test/element/DeleteDefinitionElements.test.js.map +1 -1
- package/lib/esm/test/element/ElementAspect.test.js +22 -22
- package/lib/esm/test/element/ElementAspect.test.js.map +1 -1
- package/lib/esm/test/element/ElementDependencyGraph.test.js.map +1 -1
- package/lib/esm/test/element/ElementRoundTrip.test.js +139 -139
- package/lib/esm/test/element/ElementRoundTrip.test.js.map +1 -1
- package/lib/esm/test/element/ExcludedElements.test.js.map +1 -1
- package/lib/esm/test/element/ExternalSource.test.js.map +1 -1
- package/lib/esm/test/element/NullStructArray.test.js +13 -13
- package/lib/esm/test/element/NullStructArray.test.js.map +1 -1
- package/lib/esm/test/element/ProjectInformationRecord.test.js.map +1 -1
- package/lib/esm/test/element/SheetInformationAspect.test.js.map +1 -1
- package/lib/esm/test/element/UrlLink.test.js.map +1 -1
- package/lib/esm/test/font/FontFile.test.js.map +1 -1
- package/lib/esm/test/font/IModelDbFonts.test.js.map +1 -1
- package/lib/esm/test/hubaccess/ApplyChangeset.test.js +32 -32
- package/lib/esm/test/hubaccess/ApplyChangeset.test.js.map +1 -1
- package/lib/esm/test/hubaccess/BriefcaseManager.test.js.map +1 -1
- package/lib/esm/test/hubaccess/CheckpointManager.test.js.map +1 -1
- package/lib/esm/test/hubaccess/Rebase.test.js +56 -56
- package/lib/esm/test/hubaccess/Rebase.test.js.map +1 -1
- package/lib/esm/test/hubaccess/SemanticRebase.test.js +345 -345
- package/lib/esm/test/hubaccess/SemanticRebase.test.js.map +1 -1
- package/lib/esm/test/imageData.js.map +1 -1
- package/lib/esm/test/imodel/Code.test.js.map +1 -1
- package/lib/esm/test/imodel/ElementTreeWalker.test.js.map +1 -1
- package/lib/esm/test/imodel/GetTextureImage.test.js.map +1 -1
- package/lib/esm/test/imodel/IModel.test.js +44 -44
- package/lib/esm/test/imodel/IModel.test.js.map +1 -1
- package/lib/esm/test/imodel/ProjectExtents.test.js.map +1 -1
- package/lib/esm/test/imodel/SchemaXmlImport.test.js +21 -21
- package/lib/esm/test/imodel/SchemaXmlImport.test.js.map +1 -1
- package/lib/esm/test/incrementalSchemaLocater/ECSqlQueries.test.js.map +1 -1
- package/lib/esm/test/incrementalSchemaLocater/IncrementalLoading.test.js.map +1 -1
- package/lib/esm/test/incrementalSchemaLocater/TestContext.js.map +1 -1
- package/lib/esm/test/index.js.map +1 -1
- package/lib/esm/test/misc/DevTools.test.js.map +1 -1
- package/lib/esm/test/misc/EntitySubClasses.test.js.map +1 -1
- package/lib/esm/test/misc/GeoServices.test.js.map +1 -1
- package/lib/esm/test/misc/PromiseMemoizer.test.js.map +1 -1
- package/lib/esm/test/native/DgnDbWorker.test.js.map +1 -1
- package/lib/esm/test/rpc/response.test.js.map +1 -1
- package/lib/esm/test/schema/ClassRegistry.test.js +99 -99
- package/lib/esm/test/schema/ClassRegistry.test.js.map +1 -1
- package/lib/esm/test/schema/FunctionalDomain.test.js.map +1 -1
- package/lib/esm/test/schema/GenericDomain.test.js.map +1 -1
- package/lib/esm/test/schema/IModelSchemaContext.test.js +9 -9
- package/lib/esm/test/schema/IModelSchemaContext.test.js.map +1 -1
- package/lib/esm/test/schema/SchemaImportCallbacks.test.js +19 -19
- package/lib/esm/test/schema/SchemaImportCallbacks.test.js.map +1 -1
- package/lib/esm/test/schema/SchemaViewHidden.test.js +109 -109
- package/lib/esm/test/schema/SchemaViewHidden.test.js.map +1 -1
- package/lib/esm/test/schema/SchemaViewKoQ.test.js +13 -13
- package/lib/esm/test/schema/SchemaViewKoQ.test.js.map +1 -1
- package/lib/esm/test/schema/SchemaViewLifecycle.test.js +15 -15
- package/lib/esm/test/schema/SchemaViewLifecycle.test.js.map +1 -1
- package/lib/esm/test/schema/SchemaViewValidation.test.js +8 -8
- package/lib/esm/test/schema/SchemaViewValidation.test.js.map +1 -1
- package/lib/esm/test/sheetindex/SheetIndex.test.js.map +1 -1
- package/lib/esm/test/standalone/ChangeMerge.test.js.map +1 -1
- package/lib/esm/test/standalone/ChangesetReader.test.js +296 -296
- package/lib/esm/test/standalone/ChangesetReader.test.js.map +1 -1
- package/lib/esm/test/standalone/CustomViewState3dCreator.test.js.map +1 -1
- package/lib/esm/test/standalone/DeleteElements.test.js.map +1 -1
- package/lib/esm/test/standalone/DisplayStyle.test.js.map +1 -1
- package/lib/esm/test/standalone/Drawing.test.js.map +1 -1
- package/lib/esm/test/standalone/EditTxn.test.js.map +1 -1
- package/lib/esm/test/standalone/ElementGraphics.test.js.map +1 -1
- package/lib/esm/test/standalone/ElementMesh.test.js.map +1 -1
- package/lib/esm/test/standalone/ExportGraphics.test.js +14 -14
- package/lib/esm/test/standalone/ExportGraphics.test.js.map +1 -1
- package/lib/esm/test/standalone/GeometryChangeEvents.test.js.map +1 -1
- package/lib/esm/test/standalone/GeometryStream.test.js.map +1 -1
- package/lib/esm/test/standalone/HubMock.test.js.map +1 -1
- package/lib/esm/test/standalone/IModelLimits.test.js.map +1 -1
- package/lib/esm/test/standalone/IModelWrite.test.js +27 -27
- package/lib/esm/test/standalone/IModelWrite.test.js.map +1 -1
- package/lib/esm/test/standalone/ITwinWorkspace.test.js.map +1 -1
- package/lib/esm/test/standalone/InlineGeometryPartReferences.test.js.map +1 -1
- package/lib/esm/test/standalone/IntegrityCheck.test.js.map +1 -1
- package/lib/esm/test/standalone/MergeConflict.test.js.map +1 -1
- package/lib/esm/test/standalone/NativeAppStorage.test.js.map +1 -1
- package/lib/esm/test/standalone/RenderMaterialElement.test.js.map +1 -1
- package/lib/esm/test/standalone/RenderTimeline.test.js.map +1 -1
- package/lib/esm/test/standalone/SQLiteDb.test.js.map +1 -1
- package/lib/esm/test/standalone/SQliteChangesetReaderAndChangesetECAdaptor.test.js +135 -135
- package/lib/esm/test/standalone/SQliteChangesetReaderAndChangesetECAdaptor.test.js.map +1 -1
- package/lib/esm/test/standalone/SchemaUtils.test.js.map +1 -1
- package/lib/esm/test/standalone/SectionDrawing.test.js.map +1 -1
- package/lib/esm/test/standalone/ServerBasedLocks.test.js.map +1 -1
- package/lib/esm/test/standalone/Setting.test.js.map +1 -1
- package/lib/esm/test/standalone/Settings.test.js.map +1 -1
- package/lib/esm/test/standalone/SettingsSchemas.test.js.map +1 -1
- package/lib/esm/test/standalone/SnapshotDb.test.js.map +1 -1
- package/lib/esm/test/standalone/StandaloneDb.test.js +20 -20
- package/lib/esm/test/standalone/StandaloneDb.test.js.map +1 -1
- package/lib/esm/test/standalone/Texture.test.js.map +1 -1
- package/lib/esm/test/standalone/TileCache.test.js.map +1 -1
- package/lib/esm/test/standalone/TileTree.test.js.map +1 -1
- package/lib/esm/test/standalone/TxnManager.test.js.map +1 -1
- package/lib/esm/test/standalone/ViewDefinition.test.js.map +1 -1
- package/lib/esm/test/standalone/ViewStoreDb.test.js.map +1 -1
- package/lib/esm/test/standalone/Workspace.test.js.map +1 -1
- package/lib/esm/test/standalone/iModelDb.test.js.map +1 -1
- package/lib/esm/test/workspace/SettingsDb.test.js.map +1 -1
- package/lib/esm/workspace/Settings.js.map +1 -1
- package/lib/esm/workspace/SettingsDb.js.map +1 -1
- package/lib/esm/workspace/SettingsEditor.js.map +1 -1
- package/lib/esm/workspace/SettingsSchemas.js.map +1 -1
- package/lib/esm/workspace/Workspace.js.map +1 -1
- package/lib/esm/workspace/WorkspaceEditor.js.map +1 -1
- package/package.json +13 -13
|
@@ -110,12 +110,12 @@ describe("ECSqlStatement", () => {
|
|
|
110
110
|
it("check asynchronous step and stepForInsert methods", async () => {
|
|
111
111
|
const env_1 = { stack: [], error: void 0, hasError: false };
|
|
112
112
|
try {
|
|
113
|
-
const ecdb = __addDisposableResource(env_1, ECDbTestHelper.createECDb(outDir, "asyncmethodtest.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
114
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
115
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
116
|
-
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
117
|
-
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
118
|
-
</ECEntityClass>
|
|
113
|
+
const ecdb = __addDisposableResource(env_1, ECDbTestHelper.createECDb(outDir, "asyncmethodtest.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
114
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
115
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
116
|
+
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
117
|
+
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
118
|
+
</ECEntityClass>
|
|
119
119
|
</ECSchema>`), false);
|
|
120
120
|
assert.isTrue(ecdb.isOpen);
|
|
121
121
|
const r = await ecdb.withCachedWriteStatement("INSERT INTO ts.Foo(n,dt,fooId) VALUES(20,TIMESTAMP '2018-10-18T12:00:00Z',20)", async (stmt) => {
|
|
@@ -136,12 +136,12 @@ describe("ECSqlStatement", () => {
|
|
|
136
136
|
it("concurrent query get meta data", async () => {
|
|
137
137
|
const env_2 = { stack: [], error: void 0, hasError: false };
|
|
138
138
|
try {
|
|
139
|
-
const ecdb = __addDisposableResource(env_2, ECDbTestHelper.createECDb(outDir, "asyncmethodtest.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
140
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
141
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
142
|
-
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
143
|
-
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
144
|
-
</ECEntityClass>
|
|
139
|
+
const ecdb = __addDisposableResource(env_2, ECDbTestHelper.createECDb(outDir, "asyncmethodtest.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
140
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
141
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
142
|
+
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
143
|
+
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
144
|
+
</ECEntityClass>
|
|
145
145
|
</ECSchema>`), false);
|
|
146
146
|
assert.isTrue(ecdb.isOpen);
|
|
147
147
|
await ecdb.withCachedWriteStatement("INSERT INTO ts.Foo(n,dt,fooId) VALUES(20,TIMESTAMP '2018-10-18T12:00:00Z',20)", async (stmt) => {
|
|
@@ -193,10 +193,10 @@ describe("ECSqlStatement", () => {
|
|
|
193
193
|
it("should page results", async () => {
|
|
194
194
|
const env_4 = { stack: [], error: void 0, hasError: false };
|
|
195
195
|
try {
|
|
196
|
-
const ecdb = __addDisposableResource(env_4, ECDbTestHelper.createECDb(outDir, "pagingresultset.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
197
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
198
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
199
|
-
</ECEntityClass>
|
|
196
|
+
const ecdb = __addDisposableResource(env_4, ECDbTestHelper.createECDb(outDir, "pagingresultset.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
197
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
198
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
199
|
+
</ECEntityClass>
|
|
200
200
|
</ECSchema>`), false);
|
|
201
201
|
assert.isTrue(ecdb.isOpen);
|
|
202
202
|
const ROW_COUNT = 27;
|
|
@@ -239,10 +239,10 @@ describe("ECSqlStatement", () => {
|
|
|
239
239
|
it("paging use cache statement queryRows()", async () => {
|
|
240
240
|
const env_5 = { stack: [], error: void 0, hasError: false };
|
|
241
241
|
try {
|
|
242
|
-
const ecdb = __addDisposableResource(env_5, ECDbTestHelper.createECDb(outDir, "pagingresultset.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
243
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
244
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
245
|
-
</ECEntityClass>
|
|
242
|
+
const ecdb = __addDisposableResource(env_5, ECDbTestHelper.createECDb(outDir, "pagingresultset.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
243
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
244
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
245
|
+
</ECEntityClass>
|
|
246
246
|
</ECSchema>`), false);
|
|
247
247
|
assert.isTrue(ecdb.isOpen);
|
|
248
248
|
const ROW_COUNT = 100;
|
|
@@ -279,10 +279,10 @@ describe("ECSqlStatement", () => {
|
|
|
279
279
|
it("should restart query", async () => {
|
|
280
280
|
const env_6 = { stack: [], error: void 0, hasError: false };
|
|
281
281
|
try {
|
|
282
|
-
const ecdb = __addDisposableResource(env_6, ECDbTestHelper.createECDb(outDir, "cancelquery.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
283
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
284
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
285
|
-
</ECEntityClass>
|
|
282
|
+
const ecdb = __addDisposableResource(env_6, ECDbTestHelper.createECDb(outDir, "cancelquery.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
283
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
284
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
285
|
+
</ECEntityClass>
|
|
286
286
|
</ECSchema>`), false);
|
|
287
287
|
assert.isTrue(ecdb.isOpen);
|
|
288
288
|
const ROW_COUNT = 100;
|
|
@@ -344,10 +344,10 @@ describe("ECSqlStatement", () => {
|
|
|
344
344
|
it("should use cache statement for query()", async () => {
|
|
345
345
|
const env_7 = { stack: [], error: void 0, hasError: false };
|
|
346
346
|
try {
|
|
347
|
-
const ecdb = __addDisposableResource(env_7, ECDbTestHelper.createECDb(outDir, "pagingresultset.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
348
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
349
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
350
|
-
</ECEntityClass>
|
|
347
|
+
const ecdb = __addDisposableResource(env_7, ECDbTestHelper.createECDb(outDir, "pagingresultset.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
348
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
349
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
350
|
+
</ECEntityClass>
|
|
351
351
|
</ECSchema>`), false);
|
|
352
352
|
assert.isTrue(ecdb.isOpen);
|
|
353
353
|
const ROW_COUNT = 27;
|
|
@@ -383,10 +383,10 @@ describe("ECSqlStatement", () => {
|
|
|
383
383
|
it("concurrent query binding", async () => {
|
|
384
384
|
const env_8 = { stack: [], error: void 0, hasError: false };
|
|
385
385
|
try {
|
|
386
|
-
const ecdb = __addDisposableResource(env_8, ECDbTestHelper.createECDb(outDir, "pagingresultset.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
387
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
388
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
389
|
-
</ECEntityClass>
|
|
386
|
+
const ecdb = __addDisposableResource(env_8, ECDbTestHelper.createECDb(outDir, "pagingresultset.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
387
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
388
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
389
|
+
</ECEntityClass>
|
|
390
390
|
</ECSchema>`), false);
|
|
391
391
|
assert.isTrue(ecdb.isOpen);
|
|
392
392
|
for (let i = 1; i <= 5; i++) {
|
|
@@ -429,10 +429,10 @@ describe("ECSqlStatement", () => {
|
|
|
429
429
|
it("check HextoId() and IdToHex() ecsql functions", async () => {
|
|
430
430
|
const env_9 = { stack: [], error: void 0, hasError: false };
|
|
431
431
|
try {
|
|
432
|
-
const ecdb = __addDisposableResource(env_9, ECDbTestHelper.createECDb(outDir, "pagingresultset.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
433
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
434
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
435
|
-
</ECEntityClass>
|
|
432
|
+
const ecdb = __addDisposableResource(env_9, ECDbTestHelper.createECDb(outDir, "pagingresultset.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
433
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
434
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
435
|
+
</ECEntityClass>
|
|
436
436
|
</ECSchema>`), false);
|
|
437
437
|
assert.isTrue(ecdb.isOpen);
|
|
438
438
|
for (let i = 1; i <= 2; i++) {
|
|
@@ -459,10 +459,10 @@ describe("ECSqlStatement", () => {
|
|
|
459
459
|
it("should bind BeGuid", async () => {
|
|
460
460
|
const env_10 = { stack: [], error: void 0, hasError: false };
|
|
461
461
|
try {
|
|
462
|
-
const ecdb = __addDisposableResource(env_10, ECDbTestHelper.createECDb(outDir, "pagingresultset.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
463
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
464
|
-
<ECProperty propertyName="guid" typeName="binary" extendedTypeName="BeGuid"/>
|
|
465
|
-
</ECEntityClass>
|
|
462
|
+
const ecdb = __addDisposableResource(env_10, ECDbTestHelper.createECDb(outDir, "pagingresultset.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
463
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
464
|
+
<ECProperty propertyName="guid" typeName="binary" extendedTypeName="BeGuid"/>
|
|
465
|
+
</ECEntityClass>
|
|
466
466
|
</ECSchema>`), false);
|
|
467
467
|
assert.isTrue(ecdb.isOpen);
|
|
468
468
|
const maxRows = 10;
|
|
@@ -631,12 +631,12 @@ describe("ECSqlStatement", () => {
|
|
|
631
631
|
slm.append().error().category("ECDb").message(/String must be a valid ISO 8601 date, time or timestamp/gm);
|
|
632
632
|
slm.append().error().category("ECDb").message(/String must be a valid ISO 8601 date, time or timestamp/gm);
|
|
633
633
|
slm.append().error().category("ECDb").message(/only BindDateTime or BindText can be called for a column of the DateTime type/gm);
|
|
634
|
-
const ecdb = __addDisposableResource(env_12, ECDbTestHelper.createECDb(outDir, "bindnumericanddatestrings.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
635
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
636
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
637
|
-
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
638
|
-
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
639
|
-
</ECEntityClass>
|
|
634
|
+
const ecdb = __addDisposableResource(env_12, ECDbTestHelper.createECDb(outDir, "bindnumericanddatestrings.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
635
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
636
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
637
|
+
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
638
|
+
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
639
|
+
</ECEntityClass>
|
|
640
640
|
</ECSchema>`), false);
|
|
641
641
|
assert.isTrue(ecdb.isOpen);
|
|
642
642
|
const r = ecdb.withCachedWriteStatement("INSERT INTO ts.Foo(n,dt,fooId) VALUES(20,TIMESTAMP '2018-10-18T12:00:00Z',20)", (stmt) => {
|
|
@@ -873,14 +873,14 @@ describe("ECSqlStatement", () => {
|
|
|
873
873
|
it("should bind numbers", async () => {
|
|
874
874
|
const env_13 = { stack: [], error: void 0, hasError: false };
|
|
875
875
|
try {
|
|
876
|
-
const ecdb = __addDisposableResource(env_13, ECDbTestHelper.createECDb(outDir, "bindnumbers.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
877
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
878
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
879
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
880
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
881
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
882
|
-
<ECProperty propertyName="Description" typeName="string"/>
|
|
883
|
-
</ECEntityClass>
|
|
876
|
+
const ecdb = __addDisposableResource(env_13, ECDbTestHelper.createECDb(outDir, "bindnumbers.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
877
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
878
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
879
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
880
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
881
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
882
|
+
<ECProperty propertyName="Description" typeName="string"/>
|
|
883
|
+
</ECEntityClass>
|
|
884
884
|
</ECSchema>`), false);
|
|
885
885
|
assert.isTrue(ecdb.isOpen);
|
|
886
886
|
const doubleVal = 3.5;
|
|
@@ -1317,32 +1317,32 @@ describe("ECSqlStatement", () => {
|
|
|
1317
1317
|
it("should bind primitives", async () => {
|
|
1318
1318
|
const env_14 = { stack: [], error: void 0, hasError: false };
|
|
1319
1319
|
try {
|
|
1320
|
-
const ecdb = __addDisposableResource(env_14, ECDbTestHelper.createECDb(outDir, "bindprimitives.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
1321
|
-
<ECStructClass typeName="MyStruct" modifier="Sealed">
|
|
1322
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
1323
|
-
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
1324
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
1325
|
-
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
1326
|
-
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
1327
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
1328
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
1329
|
-
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
1330
|
-
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
1331
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
1332
|
-
</ECStructClass>
|
|
1333
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1334
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
1335
|
-
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
1336
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
1337
|
-
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
1338
|
-
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
1339
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
1340
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
1341
|
-
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
1342
|
-
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
1343
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
1344
|
-
<ECStructProperty propertyName="Struct" typeName="MyStruct"/>
|
|
1345
|
-
</ECEntityClass>
|
|
1320
|
+
const ecdb = __addDisposableResource(env_14, ECDbTestHelper.createECDb(outDir, "bindprimitives.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
1321
|
+
<ECStructClass typeName="MyStruct" modifier="Sealed">
|
|
1322
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
1323
|
+
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
1324
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
1325
|
+
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
1326
|
+
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
1327
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
1328
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
1329
|
+
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
1330
|
+
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
1331
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
1332
|
+
</ECStructClass>
|
|
1333
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1334
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
1335
|
+
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
1336
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
1337
|
+
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
1338
|
+
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
1339
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
1340
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
1341
|
+
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
1342
|
+
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
1343
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
1344
|
+
<ECStructProperty propertyName="Struct" typeName="MyStruct"/>
|
|
1345
|
+
</ECEntityClass>
|
|
1346
1346
|
</ECSchema>`), false);
|
|
1347
1347
|
assert.isTrue(ecdb.isOpen);
|
|
1348
1348
|
const boolVal = true;
|
|
@@ -1489,22 +1489,22 @@ describe("ECSqlStatement", () => {
|
|
|
1489
1489
|
it("should bind structs", async () => {
|
|
1490
1490
|
const env_15 = { stack: [], error: void 0, hasError: false };
|
|
1491
1491
|
try {
|
|
1492
|
-
const ecdb = __addDisposableResource(env_15, ECDbTestHelper.createECDb(outDir, "bindstructs.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
1493
|
-
<ECStructClass typeName="MyStruct" modifier="Sealed">
|
|
1494
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
1495
|
-
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
1496
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
1497
|
-
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
1498
|
-
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
1499
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
1500
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
1501
|
-
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
1502
|
-
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
1503
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
1504
|
-
</ECStructClass>
|
|
1505
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1506
|
-
<ECStructProperty propertyName="Struct" typeName="MyStruct"/>
|
|
1507
|
-
</ECEntityClass>
|
|
1492
|
+
const ecdb = __addDisposableResource(env_15, ECDbTestHelper.createECDb(outDir, "bindstructs.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
1493
|
+
<ECStructClass typeName="MyStruct" modifier="Sealed">
|
|
1494
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
1495
|
+
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
1496
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
1497
|
+
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
1498
|
+
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
1499
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
1500
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
1501
|
+
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
1502
|
+
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
1503
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
1504
|
+
</ECStructClass>
|
|
1505
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1506
|
+
<ECStructProperty propertyName="Struct" typeName="MyStruct"/>
|
|
1507
|
+
</ECEntityClass>
|
|
1508
1508
|
</ECSchema>`), false);
|
|
1509
1509
|
assert.isTrue(ecdb.isOpen);
|
|
1510
1510
|
const structVal = {
|
|
@@ -1584,16 +1584,16 @@ describe("ECSqlStatement", () => {
|
|
|
1584
1584
|
it("should bind arrays", async () => {
|
|
1585
1585
|
const env_16 = { stack: [], error: void 0, hasError: false };
|
|
1586
1586
|
try {
|
|
1587
|
-
const ecdb = __addDisposableResource(env_16, ECDbTestHelper.createECDb(outDir, "bindarrays.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
1588
|
-
<ECStructClass typeName="Location" modifier="Sealed">
|
|
1589
|
-
<ECProperty propertyName="City" typeName="string"/>
|
|
1590
|
-
<ECProperty propertyName="Zip" typeName="int"/>
|
|
1591
|
-
</ECStructClass>
|
|
1592
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1593
|
-
<ECArrayProperty propertyName="I_Array" typeName="int"/>
|
|
1594
|
-
<ECArrayProperty propertyName="Dt_Array" typeName="dateTime"/>
|
|
1595
|
-
<ECStructArrayProperty propertyName="Addresses" typeName="Location"/>
|
|
1596
|
-
</ECEntityClass>
|
|
1587
|
+
const ecdb = __addDisposableResource(env_16, ECDbTestHelper.createECDb(outDir, "bindarrays.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
1588
|
+
<ECStructClass typeName="Location" modifier="Sealed">
|
|
1589
|
+
<ECProperty propertyName="City" typeName="string"/>
|
|
1590
|
+
<ECProperty propertyName="Zip" typeName="int"/>
|
|
1591
|
+
</ECStructClass>
|
|
1592
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1593
|
+
<ECArrayProperty propertyName="I_Array" typeName="int"/>
|
|
1594
|
+
<ECArrayProperty propertyName="Dt_Array" typeName="dateTime"/>
|
|
1595
|
+
<ECStructArrayProperty propertyName="Addresses" typeName="Location"/>
|
|
1596
|
+
</ECEntityClass>
|
|
1597
1597
|
</ECSchema>`), false);
|
|
1598
1598
|
assert.isTrue(ecdb.isOpen);
|
|
1599
1599
|
const intArray = [1, 2, 3];
|
|
@@ -1681,22 +1681,22 @@ describe("ECSqlStatement", () => {
|
|
|
1681
1681
|
it("should bind navigation", async () => {
|
|
1682
1682
|
const env_17 = { stack: [], error: void 0, hasError: false };
|
|
1683
1683
|
try {
|
|
1684
|
-
const ecdb = __addDisposableResource(env_17, ECDbTestHelper.createECDb(outDir, "bindnavigation.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
1685
|
-
<ECEntityClass typeName="Parent" modifier="Sealed">
|
|
1686
|
-
<ECProperty propertyName="Code" typeName="string"/>
|
|
1687
|
-
</ECEntityClass>
|
|
1688
|
-
<ECEntityClass typeName="Child" modifier="Sealed">
|
|
1689
|
-
<ECProperty propertyName="Name" typeName="string"/>
|
|
1690
|
-
<ECNavigationProperty propertyName="Parent" relationshipName="ParentHasChildren" direction="backward"/>
|
|
1691
|
-
</ECEntityClass>
|
|
1692
|
-
<ECRelationshipClass typeName="ParentHasChildren" modifier="None" strength="embedding">
|
|
1693
|
-
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
1694
|
-
<Class class="Parent"/>
|
|
1695
|
-
</Source>
|
|
1696
|
-
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
1697
|
-
<Class class="Child"/>
|
|
1698
|
-
</Target>
|
|
1699
|
-
</ECRelationshipClass>
|
|
1684
|
+
const ecdb = __addDisposableResource(env_17, ECDbTestHelper.createECDb(outDir, "bindnavigation.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
1685
|
+
<ECEntityClass typeName="Parent" modifier="Sealed">
|
|
1686
|
+
<ECProperty propertyName="Code" typeName="string"/>
|
|
1687
|
+
</ECEntityClass>
|
|
1688
|
+
<ECEntityClass typeName="Child" modifier="Sealed">
|
|
1689
|
+
<ECProperty propertyName="Name" typeName="string"/>
|
|
1690
|
+
<ECNavigationProperty propertyName="Parent" relationshipName="ParentHasChildren" direction="backward"/>
|
|
1691
|
+
</ECEntityClass>
|
|
1692
|
+
<ECRelationshipClass typeName="ParentHasChildren" modifier="None" strength="embedding">
|
|
1693
|
+
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
1694
|
+
<Class class="Parent"/>
|
|
1695
|
+
</Source>
|
|
1696
|
+
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
1697
|
+
<Class class="Child"/>
|
|
1698
|
+
</Target>
|
|
1699
|
+
</ECRelationshipClass>
|
|
1700
1700
|
</ECSchema>`), false);
|
|
1701
1701
|
assert.isTrue(ecdb.isOpen);
|
|
1702
1702
|
const parentId = ecdb.withCachedWriteStatement("INSERT INTO test.Parent(Code) VALUES('Parent 1')", (stmt) => {
|
|
@@ -1791,10 +1791,10 @@ describe("ECSqlStatement", () => {
|
|
|
1791
1791
|
it("should bind Range3d", async () => {
|
|
1792
1792
|
const env_18 = { stack: [], error: void 0, hasError: false };
|
|
1793
1793
|
try {
|
|
1794
|
-
const ecdb = __addDisposableResource(env_18, ECDbTestHelper.createECDb(outDir, "bindrange3d.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
1795
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1796
|
-
<ECProperty propertyName="Range3d" typeName="binary"/>
|
|
1797
|
-
</ECEntityClass>
|
|
1794
|
+
const ecdb = __addDisposableResource(env_18, ECDbTestHelper.createECDb(outDir, "bindrange3d.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
1795
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1796
|
+
<ECProperty propertyName="Range3d" typeName="binary"/>
|
|
1797
|
+
</ECEntityClass>
|
|
1798
1798
|
</ECSchema>`), false);
|
|
1799
1799
|
assert.isTrue(ecdb.isOpen);
|
|
1800
1800
|
const id = ecdb.withCachedWriteStatement("INSERT INTO test.Foo([Range3d]) VALUES(?)", (stmt) => {
|
|
@@ -2022,17 +2022,17 @@ describe("ECSqlStatement", () => {
|
|
|
2022
2022
|
it("check ECSqlBinder life time", async () => {
|
|
2023
2023
|
const env_22 = { stack: [], error: void 0, hasError: false };
|
|
2024
2024
|
try {
|
|
2025
|
-
const ecdb = __addDisposableResource(env_22, ECDbTestHelper.createECDb(outDir, "ecsqlbinderlifetime.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2026
|
-
<ECStructClass typeName="Address" modifier="Sealed">
|
|
2027
|
-
<ECProperty propertyName="Street" typeName="string"/>
|
|
2028
|
-
<ECProperty propertyName="City" typeName="string"/>
|
|
2029
|
-
<ECProperty propertyName="Zip" typeName="int"/>
|
|
2030
|
-
</ECStructClass>
|
|
2031
|
-
<ECEntityClass typeName="Person" modifier="Sealed">
|
|
2032
|
-
<ECProperty propertyName="Name" typeName="string"/>
|
|
2033
|
-
<ECProperty propertyName="Age" typeName="int"/>
|
|
2034
|
-
<ECStructProperty propertyName="Location" typeName="Address"/>
|
|
2035
|
-
</ECEntityClass>
|
|
2025
|
+
const ecdb = __addDisposableResource(env_22, ECDbTestHelper.createECDb(outDir, "ecsqlbinderlifetime.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2026
|
+
<ECStructClass typeName="Address" modifier="Sealed">
|
|
2027
|
+
<ECProperty propertyName="Street" typeName="string"/>
|
|
2028
|
+
<ECProperty propertyName="City" typeName="string"/>
|
|
2029
|
+
<ECProperty propertyName="Zip" typeName="int"/>
|
|
2030
|
+
</ECStructClass>
|
|
2031
|
+
<ECEntityClass typeName="Person" modifier="Sealed">
|
|
2032
|
+
<ECProperty propertyName="Name" typeName="string"/>
|
|
2033
|
+
<ECProperty propertyName="Age" typeName="int"/>
|
|
2034
|
+
<ECStructProperty propertyName="Location" typeName="Address"/>
|
|
2035
|
+
</ECEntityClass>
|
|
2036
2036
|
</ECSchema>`), false);
|
|
2037
2037
|
assert.isTrue(ecdb.isOpen);
|
|
2038
2038
|
let id1 = "", id2 = "";
|
|
@@ -2114,19 +2114,19 @@ describe("ECSqlStatement", () => {
|
|
|
2114
2114
|
it("getRow() with primitives values", async () => {
|
|
2115
2115
|
const env_24 = { stack: [], error: void 0, hasError: false };
|
|
2116
2116
|
try {
|
|
2117
|
-
const ecdb = __addDisposableResource(env_24, ECDbTestHelper.createECDb(outDir, "getprimitives.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2118
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2119
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2120
|
-
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
2121
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
2122
|
-
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
2123
|
-
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
2124
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
2125
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
2126
|
-
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
2127
|
-
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
2128
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
2129
|
-
</ECEntityClass>
|
|
2117
|
+
const ecdb = __addDisposableResource(env_24, ECDbTestHelper.createECDb(outDir, "getprimitives.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2118
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2119
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2120
|
+
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
2121
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
2122
|
+
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
2123
|
+
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
2124
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
2125
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
2126
|
+
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
2127
|
+
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
2128
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
2129
|
+
</ECEntityClass>
|
|
2130
2130
|
</ECSchema>`), false);
|
|
2131
2131
|
assert.isTrue(ecdb.isOpen);
|
|
2132
2132
|
const boolVal = true;
|
|
@@ -2279,10 +2279,10 @@ describe("ECSqlStatement", () => {
|
|
|
2279
2279
|
it("getRow() with abbreviated blobs", async () => {
|
|
2280
2280
|
const env_25 = { stack: [], error: void 0, hasError: false };
|
|
2281
2281
|
try {
|
|
2282
|
-
const ecdb = __addDisposableResource(env_25, ECDbTestHelper.createECDb(outDir, "getblobs.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2283
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2284
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2285
|
-
</ECEntityClass>
|
|
2282
|
+
const ecdb = __addDisposableResource(env_25, ECDbTestHelper.createECDb(outDir, "getblobs.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2283
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2284
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2285
|
+
</ECEntityClass>
|
|
2286
2286
|
</ECSchema>`), false);
|
|
2287
2287
|
assert.isTrue(ecdb.isOpen);
|
|
2288
2288
|
const singleBlobVal = blobVal.slice(0, 1);
|
|
@@ -2384,22 +2384,22 @@ describe("ECSqlStatement", () => {
|
|
|
2384
2384
|
it("getRow() with navigation properties and relationships", async () => {
|
|
2385
2385
|
const env_26 = { stack: [], error: void 0, hasError: false };
|
|
2386
2386
|
try {
|
|
2387
|
-
const ecdb = __addDisposableResource(env_26, ECDbTestHelper.createECDb(outDir, "getnavandrels.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2388
|
-
<ECEntityClass typeName="Parent" modifier="Sealed">
|
|
2389
|
-
<ECProperty propertyName="Code" typeName="string"/>
|
|
2390
|
-
</ECEntityClass>
|
|
2391
|
-
<ECEntityClass typeName="Child" modifier="Sealed">
|
|
2392
|
-
<ECProperty propertyName="Name" typeName="string"/>
|
|
2393
|
-
<ECNavigationProperty propertyName="Parent" relationshipName="ParentHasChildren" direction="backward"/>
|
|
2394
|
-
</ECEntityClass>
|
|
2395
|
-
<ECRelationshipClass typeName="ParentHasChildren" modifier="None" strength="embedding">
|
|
2396
|
-
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
2397
|
-
<Class class="Parent"/>
|
|
2398
|
-
</Source>
|
|
2399
|
-
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
2400
|
-
<Class class="Child"/>
|
|
2401
|
-
</Target>
|
|
2402
|
-
</ECRelationshipClass>
|
|
2387
|
+
const ecdb = __addDisposableResource(env_26, ECDbTestHelper.createECDb(outDir, "getnavandrels.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2388
|
+
<ECEntityClass typeName="Parent" modifier="Sealed">
|
|
2389
|
+
<ECProperty propertyName="Code" typeName="string"/>
|
|
2390
|
+
</ECEntityClass>
|
|
2391
|
+
<ECEntityClass typeName="Child" modifier="Sealed">
|
|
2392
|
+
<ECProperty propertyName="Name" typeName="string"/>
|
|
2393
|
+
<ECNavigationProperty propertyName="Parent" relationshipName="ParentHasChildren" direction="backward"/>
|
|
2394
|
+
</ECEntityClass>
|
|
2395
|
+
<ECRelationshipClass typeName="ParentHasChildren" modifier="None" strength="embedding">
|
|
2396
|
+
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
2397
|
+
<Class class="Parent"/>
|
|
2398
|
+
</Source>
|
|
2399
|
+
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
2400
|
+
<Class class="Child"/>
|
|
2401
|
+
</Target>
|
|
2402
|
+
</ECRelationshipClass>
|
|
2403
2403
|
</ECSchema>`), false);
|
|
2404
2404
|
assert.isTrue(ecdb.isOpen);
|
|
2405
2405
|
let rowCount;
|
|
@@ -2521,22 +2521,22 @@ describe("ECSqlStatement", () => {
|
|
|
2521
2521
|
it("getRow() with structs", async () => {
|
|
2522
2522
|
const env_27 = { stack: [], error: void 0, hasError: false };
|
|
2523
2523
|
try {
|
|
2524
|
-
const ecdb = __addDisposableResource(env_27, ECDbTestHelper.createECDb(outDir, "getstructs.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2525
|
-
<ECStructClass typeName="MyStruct" modifier="Sealed">
|
|
2526
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2527
|
-
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
2528
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
2529
|
-
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
2530
|
-
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
2531
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
2532
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
2533
|
-
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
2534
|
-
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
2535
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
2536
|
-
</ECStructClass>
|
|
2537
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2538
|
-
<ECStructProperty propertyName="Struct" typeName="MyStruct"/>
|
|
2539
|
-
</ECEntityClass>
|
|
2524
|
+
const ecdb = __addDisposableResource(env_27, ECDbTestHelper.createECDb(outDir, "getstructs.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2525
|
+
<ECStructClass typeName="MyStruct" modifier="Sealed">
|
|
2526
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2527
|
+
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
2528
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
2529
|
+
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
2530
|
+
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
2531
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
2532
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
2533
|
+
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
2534
|
+
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
2535
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
2536
|
+
</ECStructClass>
|
|
2537
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2538
|
+
<ECStructProperty propertyName="Struct" typeName="MyStruct"/>
|
|
2539
|
+
</ECEntityClass>
|
|
2540
2540
|
</ECSchema>`), false);
|
|
2541
2541
|
assert.isTrue(ecdb.isOpen);
|
|
2542
2542
|
const boolVal = true;
|
|
@@ -2650,19 +2650,19 @@ describe("ECSqlStatement", () => {
|
|
|
2650
2650
|
slm.append().error().category("ECDb").message(/Failed to prepare function expression/gm);
|
|
2651
2651
|
slm.append().error().category("ECDb").message(/Failed to prepare function expression/gm);
|
|
2652
2652
|
slm.append().error().category("ECDb").message(/Step failed for ECSQL/gm);
|
|
2653
|
-
const ecdb = __addDisposableResource(env_28, ECDbTestHelper.createECDb(outDir, "hexstrfunction.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2654
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2655
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2656
|
-
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
2657
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
2658
|
-
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
2659
|
-
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
2660
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
2661
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
2662
|
-
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
2663
|
-
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
2664
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
2665
|
-
</ECEntityClass>
|
|
2653
|
+
const ecdb = __addDisposableResource(env_28, ECDbTestHelper.createECDb(outDir, "hexstrfunction.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2654
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2655
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2656
|
+
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
2657
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
2658
|
+
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
2659
|
+
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
2660
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
2661
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
2662
|
+
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
2663
|
+
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
2664
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
2665
|
+
</ECEntityClass>
|
|
2666
2666
|
</ECSchema>`), false);
|
|
2667
2667
|
assert.isTrue(ecdb.isOpen);
|
|
2668
2668
|
const expectedRow = {
|
|
@@ -2747,21 +2747,21 @@ describe("ECSqlStatement", () => {
|
|
|
2747
2747
|
it("check ec enums", async () => {
|
|
2748
2748
|
const env_29 = { stack: [], error: void 0, hasError: false };
|
|
2749
2749
|
try {
|
|
2750
|
-
const ecdb = __addDisposableResource(env_29, ECDbTestHelper.createECDb(outDir, "ecenums.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
2751
|
-
<ECEnumeration typeName="Status" backingTypeName="int" isStrict="true">
|
|
2752
|
-
<ECEnumerator name="On" value="1" />
|
|
2753
|
-
<ECEnumerator name="Off" value="2" />
|
|
2754
|
-
</ECEnumeration>
|
|
2755
|
-
<ECEnumeration typeName="Domain" backingTypeName="string" isStrict="true">
|
|
2756
|
-
<ECEnumerator name="Org" value="Org" />
|
|
2757
|
-
<ECEnumerator name="Com" value="Com" />
|
|
2758
|
-
</ECEnumeration>
|
|
2759
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2760
|
-
<ECProperty propertyName="MyStat" typeName="Status"/>
|
|
2761
|
-
<ECArrayProperty propertyName="MyStats" typeName="Status"/>
|
|
2762
|
-
<ECProperty propertyName="MyDomain" typeName="Domain"/>
|
|
2763
|
-
<ECArrayProperty propertyName="MyDomains" typeName="Domain"/>
|
|
2764
|
-
</ECEntityClass>
|
|
2750
|
+
const ecdb = __addDisposableResource(env_29, ECDbTestHelper.createECDb(outDir, "ecenums.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
2751
|
+
<ECEnumeration typeName="Status" backingTypeName="int" isStrict="true">
|
|
2752
|
+
<ECEnumerator name="On" value="1" />
|
|
2753
|
+
<ECEnumerator name="Off" value="2" />
|
|
2754
|
+
</ECEnumeration>
|
|
2755
|
+
<ECEnumeration typeName="Domain" backingTypeName="string" isStrict="true">
|
|
2756
|
+
<ECEnumerator name="Org" value="Org" />
|
|
2757
|
+
<ECEnumerator name="Com" value="Com" />
|
|
2758
|
+
</ECEnumeration>
|
|
2759
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2760
|
+
<ECProperty propertyName="MyStat" typeName="Status"/>
|
|
2761
|
+
<ECArrayProperty propertyName="MyStats" typeName="Status"/>
|
|
2762
|
+
<ECProperty propertyName="MyDomain" typeName="Domain"/>
|
|
2763
|
+
<ECArrayProperty propertyName="MyDomains" typeName="Domain"/>
|
|
2764
|
+
</ECEntityClass>
|
|
2765
2765
|
</ECSchema>`), false);
|
|
2766
2766
|
assert.isTrue(ecdb.isOpen);
|
|
2767
2767
|
const id = ecdb.withCachedWriteStatement("INSERT INTO test.Foo(MyStat,MyStats,MyDomain,MyDomains) VALUES(test.Status.[On],?,test.Domain.Org,?)", (stmt) => {
|
|
@@ -2865,21 +2865,21 @@ describe("ECSqlStatement", () => {
|
|
|
2865
2865
|
const slm = new SequentialLogMatcher();
|
|
2866
2866
|
slm.append().error().category("ECDb").message(/The value 9 cannot be broken down into a combination of ECEnumerators/gm);
|
|
2867
2867
|
slm.append().error().category("ECDb").message(/The value 'gov,de' cannot be broken down into a combination of ECEnumerators/gm);
|
|
2868
|
-
const ecdb = __addDisposableResource(env_30, ECDbTestHelper.createECDb(outDir, "oredecenums.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
2869
|
-
<ECEnumeration typeName="Color" backingTypeName="int" isStrict="true">
|
|
2870
|
-
<ECEnumerator name="Red" value="1" />
|
|
2871
|
-
<ECEnumerator name="Yellow" value="2" />
|
|
2872
|
-
<ECEnumerator name="Blue" value="4" />
|
|
2873
|
-
</ECEnumeration>
|
|
2874
|
-
<ECEnumeration typeName="Domain" backingTypeName="string" isStrict="true">
|
|
2875
|
-
<ECEnumerator name="Org" value="org" />
|
|
2876
|
-
<ECEnumerator name="Com" value="com" />
|
|
2877
|
-
<ECEnumerator name="Gov" value="gov" />
|
|
2878
|
-
</ECEnumeration>
|
|
2879
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2880
|
-
<ECProperty propertyName="MyColor" typeName="Color"/>
|
|
2881
|
-
<ECProperty propertyName="MyDomain" typeName="Domain"/>
|
|
2882
|
-
</ECEntityClass>
|
|
2868
|
+
const ecdb = __addDisposableResource(env_30, ECDbTestHelper.createECDb(outDir, "oredecenums.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
2869
|
+
<ECEnumeration typeName="Color" backingTypeName="int" isStrict="true">
|
|
2870
|
+
<ECEnumerator name="Red" value="1" />
|
|
2871
|
+
<ECEnumerator name="Yellow" value="2" />
|
|
2872
|
+
<ECEnumerator name="Blue" value="4" />
|
|
2873
|
+
</ECEnumeration>
|
|
2874
|
+
<ECEnumeration typeName="Domain" backingTypeName="string" isStrict="true">
|
|
2875
|
+
<ECEnumerator name="Org" value="org" />
|
|
2876
|
+
<ECEnumerator name="Com" value="com" />
|
|
2877
|
+
<ECEnumerator name="Gov" value="gov" />
|
|
2878
|
+
</ECEnumeration>
|
|
2879
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2880
|
+
<ECProperty propertyName="MyColor" typeName="Color"/>
|
|
2881
|
+
<ECProperty propertyName="MyDomain" typeName="Domain"/>
|
|
2882
|
+
</ECEntityClass>
|
|
2883
2883
|
</ECSchema>`), false);
|
|
2884
2884
|
assert.isTrue(ecdb.isOpen);
|
|
2885
2885
|
const ids = ecdb.withCachedWriteStatement("INSERT INTO test.Foo(MyColor,MyDomain) VALUES(?,?)", (stmt) => {
|
|
@@ -3010,12 +3010,12 @@ describe("ECSqlStatement", () => {
|
|
|
3010
3010
|
it("should get native sql", async () => {
|
|
3011
3011
|
const env_31 = { stack: [], error: void 0, hasError: false };
|
|
3012
3012
|
try {
|
|
3013
|
-
const ecdb = __addDisposableResource(env_31, ECDbTestHelper.createECDb(outDir, "asyncmethodtest.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
3014
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
3015
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
3016
|
-
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
3017
|
-
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
3018
|
-
</ECEntityClass>
|
|
3013
|
+
const ecdb = __addDisposableResource(env_31, ECDbTestHelper.createECDb(outDir, "asyncmethodtest.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
3014
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
3015
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
3016
|
+
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
3017
|
+
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
3018
|
+
</ECEntityClass>
|
|
3019
3019
|
</ECSchema>`), false);
|
|
3020
3020
|
assert.isTrue(ecdb.isOpen);
|
|
3021
3021
|
const r = await ecdb.withCachedWriteStatement("INSERT INTO ts.Foo(n,dt,fooId) VALUES(20,TIMESTAMP '2018-10-18T12:00:00Z',20)", async (stmt) => {
|
|
@@ -3038,10 +3038,10 @@ describe("ECSqlStatement", () => {
|
|
|
3038
3038
|
it("check column info", async () => {
|
|
3039
3039
|
const env_32 = { stack: [], error: void 0, hasError: false };
|
|
3040
3040
|
try {
|
|
3041
|
-
const ecdb = __addDisposableResource(env_32, ECDbTestHelper.createECDb(outDir, "columnInfo.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
3042
|
-
<ECEntityClass typeName="MyClass" modifier="Sealed">
|
|
3043
|
-
<ECProperty propertyName="MyProperty" typeName="string"/>
|
|
3044
|
-
</ECEntityClass>
|
|
3041
|
+
const ecdb = __addDisposableResource(env_32, ECDbTestHelper.createECDb(outDir, "columnInfo.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
3042
|
+
<ECEntityClass typeName="MyClass" modifier="Sealed">
|
|
3043
|
+
<ECProperty propertyName="MyProperty" typeName="string"/>
|
|
3044
|
+
</ECEntityClass>
|
|
3045
3045
|
</ECSchema>`), false);
|
|
3046
3046
|
assert.isTrue(ecdb.isOpen);
|
|
3047
3047
|
const id = ecdb.withCachedWriteStatement("INSERT INTO test.MyClass(MyProperty) VALUES('Value')", (stmt) => {
|
|
@@ -3089,36 +3089,36 @@ describe("ECSqlStatement", () => {
|
|
|
3089
3089
|
it("check access string metadata in nested struct", async () => {
|
|
3090
3090
|
const env_33 = { stack: [], error: void 0, hasError: false };
|
|
3091
3091
|
try {
|
|
3092
|
-
const ecdb = __addDisposableResource(env_33, ECDbTestHelper.createECDb(outDir, "columnInfo.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
3093
|
-
<ECSchemaReference name="ECDbMap" version="02.00.00" alias="ecdbmap"/>
|
|
3094
|
-
<ECStructClass typeName="InnerStruct">
|
|
3095
|
-
<ECProperty propertyName="a" typeName="string"/>
|
|
3096
|
-
<ECProperty propertyName="b" typeName="string"/>
|
|
3097
|
-
</ECStructClass>
|
|
3098
|
-
<ECStructClass typeName="OuterStruct">
|
|
3099
|
-
<ECStructProperty propertyName="c" typeName="InnerStruct"/>
|
|
3100
|
-
<ECProperty propertyName="d" typeName="string"/>
|
|
3101
|
-
</ECStructClass>
|
|
3102
|
-
<ECEntityClass typeName="Z">
|
|
3103
|
-
<ECCustomAttributes>
|
|
3104
|
-
<ClassMap xmlns="ECDbMap.02.00.00">
|
|
3105
|
-
<MapStrategy>TablePerHierarchy</MapStrategy>
|
|
3106
|
-
</ClassMap>
|
|
3107
|
-
<ShareColumns xmlns="ECDbMap.02.00.00">
|
|
3108
|
-
<MaxSharedColumnsBeforeOverflow>32</MaxSharedColumnsBeforeOverflow>
|
|
3109
|
-
</ShareColumns>
|
|
3110
|
-
</ECCustomAttributes>
|
|
3111
|
-
</ECEntityClass>
|
|
3112
|
-
<ECEntityClass typeName="A">
|
|
3113
|
-
<BaseClass>Z</BaseClass>
|
|
3114
|
-
<ECStructProperty propertyName="f" typeName="OuterStruct"/>
|
|
3115
|
-
<ECProperty propertyName="g" typeName="string"/>
|
|
3116
|
-
</ECEntityClass>
|
|
3117
|
-
<ECEntityClass typeName="B">
|
|
3118
|
-
<BaseClass>Z</BaseClass>
|
|
3119
|
-
<ECStructProperty propertyName="h" typeName="InnerStruct" />
|
|
3120
|
-
<ECProperty propertyName="i" typeName="string"/>
|
|
3121
|
-
</ECEntityClass>
|
|
3092
|
+
const ecdb = __addDisposableResource(env_33, ECDbTestHelper.createECDb(outDir, "columnInfo.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
3093
|
+
<ECSchemaReference name="ECDbMap" version="02.00.00" alias="ecdbmap"/>
|
|
3094
|
+
<ECStructClass typeName="InnerStruct">
|
|
3095
|
+
<ECProperty propertyName="a" typeName="string"/>
|
|
3096
|
+
<ECProperty propertyName="b" typeName="string"/>
|
|
3097
|
+
</ECStructClass>
|
|
3098
|
+
<ECStructClass typeName="OuterStruct">
|
|
3099
|
+
<ECStructProperty propertyName="c" typeName="InnerStruct"/>
|
|
3100
|
+
<ECProperty propertyName="d" typeName="string"/>
|
|
3101
|
+
</ECStructClass>
|
|
3102
|
+
<ECEntityClass typeName="Z">
|
|
3103
|
+
<ECCustomAttributes>
|
|
3104
|
+
<ClassMap xmlns="ECDbMap.02.00.00">
|
|
3105
|
+
<MapStrategy>TablePerHierarchy</MapStrategy>
|
|
3106
|
+
</ClassMap>
|
|
3107
|
+
<ShareColumns xmlns="ECDbMap.02.00.00">
|
|
3108
|
+
<MaxSharedColumnsBeforeOverflow>32</MaxSharedColumnsBeforeOverflow>
|
|
3109
|
+
</ShareColumns>
|
|
3110
|
+
</ECCustomAttributes>
|
|
3111
|
+
</ECEntityClass>
|
|
3112
|
+
<ECEntityClass typeName="A">
|
|
3113
|
+
<BaseClass>Z</BaseClass>
|
|
3114
|
+
<ECStructProperty propertyName="f" typeName="OuterStruct"/>
|
|
3115
|
+
<ECProperty propertyName="g" typeName="string"/>
|
|
3116
|
+
</ECEntityClass>
|
|
3117
|
+
<ECEntityClass typeName="B">
|
|
3118
|
+
<BaseClass>Z</BaseClass>
|
|
3119
|
+
<ECStructProperty propertyName="h" typeName="InnerStruct" />
|
|
3120
|
+
<ECProperty propertyName="i" typeName="string"/>
|
|
3121
|
+
</ECEntityClass>
|
|
3122
3122
|
</ECSchema>`), false);
|
|
3123
3123
|
assert.isTrue(ecdb.isOpen);
|
|
3124
3124
|
ecdb.withCachedWriteStatement("INSERT INTO Test.A (f.c.a, f.c.b, f.d, g) VALUES ('f.c.a' ,'f.c.b', 'f.d', 'g')", (stmt) => {
|
|
@@ -3232,26 +3232,26 @@ describe("ECSqlStatement", () => {
|
|
|
3232
3232
|
it("ecsql statements with QueryBinder", async () => {
|
|
3233
3233
|
const env_34 = { stack: [], error: void 0, hasError: false };
|
|
3234
3234
|
try {
|
|
3235
|
-
const ecdb = __addDisposableResource(env_34, ECDbTestHelper.createECDb(outDir, "test.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
3236
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
3237
|
-
<ECProperty propertyName="booleanProperty" typeName="boolean"/>
|
|
3238
|
-
<ECProperty propertyName="blobProperty" typeName="binary"/>
|
|
3239
|
-
<ECProperty propertyName="doubleProperty" typeName="double"/>
|
|
3240
|
-
<ECProperty propertyName="customIdProperty" typeName="string"/>
|
|
3241
|
-
<ECProperty propertyName="customIdSetProperty" typeName="string"/>
|
|
3242
|
-
<ECProperty propertyName="intProperty" typeName="int"/>
|
|
3243
|
-
<ECProperty propertyName="longProperty" typeName="long"/>
|
|
3244
|
-
<ECProperty propertyName="stringProperty" typeName="string"/>
|
|
3245
|
-
<ECProperty propertyName="nullProperty" typeName="int"/>
|
|
3246
|
-
<ECProperty propertyName="point2dProperty" typeName="point2d"/>
|
|
3247
|
-
<ECProperty propertyName="point3dProperty" typeName="point3d"/>
|
|
3248
|
-
</ECEntityClass>
|
|
3249
|
-
<ECStructClass typeName="Bar" modifier="Sealed">
|
|
3250
|
-
<ECProperty propertyName="structClassProperty" typeName="string"/>
|
|
3251
|
-
</ECStructClass>
|
|
3252
|
-
<ECEntityClass typeName="Baz" modifier="Sealed">
|
|
3253
|
-
<ECStructProperty propertyName="structProperty" typeName="Bar"/>
|
|
3254
|
-
</ECEntityClass>
|
|
3235
|
+
const ecdb = __addDisposableResource(env_34, ECDbTestHelper.createECDb(outDir, "test.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
3236
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
3237
|
+
<ECProperty propertyName="booleanProperty" typeName="boolean"/>
|
|
3238
|
+
<ECProperty propertyName="blobProperty" typeName="binary"/>
|
|
3239
|
+
<ECProperty propertyName="doubleProperty" typeName="double"/>
|
|
3240
|
+
<ECProperty propertyName="customIdProperty" typeName="string"/>
|
|
3241
|
+
<ECProperty propertyName="customIdSetProperty" typeName="string"/>
|
|
3242
|
+
<ECProperty propertyName="intProperty" typeName="int"/>
|
|
3243
|
+
<ECProperty propertyName="longProperty" typeName="long"/>
|
|
3244
|
+
<ECProperty propertyName="stringProperty" typeName="string"/>
|
|
3245
|
+
<ECProperty propertyName="nullProperty" typeName="int"/>
|
|
3246
|
+
<ECProperty propertyName="point2dProperty" typeName="point2d"/>
|
|
3247
|
+
<ECProperty propertyName="point3dProperty" typeName="point3d"/>
|
|
3248
|
+
</ECEntityClass>
|
|
3249
|
+
<ECStructClass typeName="Bar" modifier="Sealed">
|
|
3250
|
+
<ECProperty propertyName="structClassProperty" typeName="string"/>
|
|
3251
|
+
</ECStructClass>
|
|
3252
|
+
<ECEntityClass typeName="Baz" modifier="Sealed">
|
|
3253
|
+
<ECStructProperty propertyName="structProperty" typeName="Bar"/>
|
|
3254
|
+
</ECEntityClass>
|
|
3255
3255
|
</ECSchema>`), false);
|
|
3256
3256
|
assert.isTrue(ecdb.isOpen);
|
|
3257
3257
|
const booleanValue = true;
|
|
@@ -3265,7 +3265,7 @@ describe("ECSqlStatement", () => {
|
|
|
3265
3265
|
const point2dValue = new Point2d(10, 20);
|
|
3266
3266
|
const point3dValue = new Point3d(15, 30, 45);
|
|
3267
3267
|
const structValue = { structClassProperty: "test string value for struct property" };
|
|
3268
|
-
let r = await ecdb.withCachedWriteStatement(`INSERT INTO ts.Foo(booleanProperty, blobProperty, doubleProperty, customIdProperty, customIdSetProperty, intProperty, longProperty, stringProperty, nullProperty, point2dProperty, point3dProperty)
|
|
3268
|
+
let r = await ecdb.withCachedWriteStatement(`INSERT INTO ts.Foo(booleanProperty, blobProperty, doubleProperty, customIdProperty, customIdSetProperty, intProperty, longProperty, stringProperty, nullProperty, point2dProperty, point3dProperty)
|
|
3269
3269
|
VALUES(:booleanValue, :blobValue, :doubleValue, :customIdValue, :customIdSetValue, :intValue, :longValue, :stringValue, :nullValue, :point2dValue, :point3dValue)`, async (stmt) => {
|
|
3270
3270
|
stmt.bindBoolean("booleanValue", booleanValue);
|
|
3271
3271
|
stmt.bindBlob("blobValue", blobValue);
|
|
@@ -3294,8 +3294,8 @@ describe("ECSqlStatement", () => {
|
|
|
3294
3294
|
params.bindPoint2d("point2dValue", point2dValue);
|
|
3295
3295
|
params.bindPoint3d("point3dValue", point3dValue);
|
|
3296
3296
|
params.bindIdSet("customIdSetValue", customIdSetValue);
|
|
3297
|
-
let reader = ecdb.createQueryReader(`SELECT booleanProperty, blobProperty, doubleProperty, customIdProperty, customIdSetProperty, intProperty, longProperty, stringProperty, nullProperty, point2dProperty, point3dProperty FROM ts.Foo
|
|
3298
|
-
WHERE booleanProperty = :booleanValue AND blobProperty = :blobValue AND doubleProperty = :doubleValue AND customIdProperty = :customIdValue AND InVirtualSet(:customIdSetValue, customIdSetProperty) AND
|
|
3297
|
+
let reader = ecdb.createQueryReader(`SELECT booleanProperty, blobProperty, doubleProperty, customIdProperty, customIdSetProperty, intProperty, longProperty, stringProperty, nullProperty, point2dProperty, point3dProperty FROM ts.Foo
|
|
3298
|
+
WHERE booleanProperty = :booleanValue AND blobProperty = :blobValue AND doubleProperty = :doubleValue AND customIdProperty = :customIdValue AND InVirtualSet(:customIdSetValue, customIdSetProperty) AND
|
|
3299
3299
|
intProperty = :intValue AND longProperty = :longValue AND stringProperty = :stringValue AND point2dProperty = :point2dValue AND point3dProperty = :point3dValue`, params);
|
|
3300
3300
|
const row = (await reader.toArray())[0];
|
|
3301
3301
|
assert.isNotNull(row);
|
|
@@ -3337,12 +3337,12 @@ describe("ECSqlStatement", () => {
|
|
|
3337
3337
|
it("Statement closed with WithWriteStatement", async () => {
|
|
3338
3338
|
const env_35 = { stack: [], error: void 0, hasError: false };
|
|
3339
3339
|
try {
|
|
3340
|
-
const ecdb = __addDisposableResource(env_35, ECDbTestHelper.createECDb(outDir, "test_hang.ecdb", `<?xml version="1.0" encoding="UTF-8"?>
|
|
3341
|
-
<ECSchema schemaName="TestSchema" alias="Test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
3342
|
-
<ECEntityClass typeName="X">
|
|
3343
|
-
<ECProperty propertyName="Label" typeName="string" />
|
|
3344
|
-
</ECEntityClass>
|
|
3345
|
-
</ECSchema>
|
|
3340
|
+
const ecdb = __addDisposableResource(env_35, ECDbTestHelper.createECDb(outDir, "test_hang.ecdb", `<?xml version="1.0" encoding="UTF-8"?>
|
|
3341
|
+
<ECSchema schemaName="TestSchema" alias="Test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
3342
|
+
<ECEntityClass typeName="X">
|
|
3343
|
+
<ECProperty propertyName="Label" typeName="string" />
|
|
3344
|
+
</ECEntityClass>
|
|
3345
|
+
</ECSchema>
|
|
3346
3346
|
`), false);
|
|
3347
3347
|
assert.isTrue(ecdb.isOpen);
|
|
3348
3348
|
ecdb.withWriteStatement(`INSERT INTO Test.X (Label) VALUES (?)`, (stmt) => {
|
|
@@ -3373,40 +3373,40 @@ describe("ECSqlStatement", () => {
|
|
|
3373
3373
|
let childHasFriendsClassId;
|
|
3374
3374
|
let validRelClassId;
|
|
3375
3375
|
before(async () => {
|
|
3376
|
-
ecdb = ECDbTestHelper.createECDb(outDir, "bindnavigation.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
3377
|
-
|
|
3378
|
-
<ECEntityClass typeName="Parent" modifier="Sealed">
|
|
3379
|
-
<ECProperty propertyName="Code" typeName="string"/>
|
|
3380
|
-
</ECEntityClass>
|
|
3381
|
-
|
|
3382
|
-
<ECEntityClass typeName="ChildTemplate" modifier="Abstract">
|
|
3383
|
-
<ECProperty propertyName="Name" typeName="string"/>
|
|
3384
|
-
<ECNavigationProperty propertyName="Parent" relationshipName="ParentHasChildren" direction="backward"/>
|
|
3385
|
-
</ECEntityClass>
|
|
3386
|
-
|
|
3387
|
-
<ECEntityClass typeName="Child" modifier="Sealed">
|
|
3388
|
-
<BaseClass>ChildTemplate</BaseClass>
|
|
3389
|
-
<ECProperty propertyName="Age" typeName="int"/>
|
|
3390
|
-
<ECNavigationProperty propertyName="Friends" relationshipName="ChildHasFriends" direction="backward"/>
|
|
3391
|
-
</ECEntityClass>
|
|
3392
|
-
|
|
3393
|
-
<ECRelationshipClass typeName="ParentHasChildren" modifier="None" strength="embedding">
|
|
3394
|
-
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
3395
|
-
<Class class="Parent"/>
|
|
3396
|
-
</Source>
|
|
3397
|
-
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
3398
|
-
<Class class="ChildTemplate"/>
|
|
3399
|
-
</Target>
|
|
3400
|
-
</ECRelationshipClass>
|
|
3401
|
-
|
|
3402
|
-
<ECRelationshipClass typeName="ChildHasFriends" modifier="None" strength="embedding">
|
|
3403
|
-
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
3404
|
-
<Class class="Child"/>
|
|
3405
|
-
</Source>
|
|
3406
|
-
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
3407
|
-
<Class class="Child"/>
|
|
3408
|
-
</Target>
|
|
3409
|
-
</ECRelationshipClass>
|
|
3376
|
+
ecdb = ECDbTestHelper.createECDb(outDir, "bindnavigation.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
3377
|
+
|
|
3378
|
+
<ECEntityClass typeName="Parent" modifier="Sealed">
|
|
3379
|
+
<ECProperty propertyName="Code" typeName="string"/>
|
|
3380
|
+
</ECEntityClass>
|
|
3381
|
+
|
|
3382
|
+
<ECEntityClass typeName="ChildTemplate" modifier="Abstract">
|
|
3383
|
+
<ECProperty propertyName="Name" typeName="string"/>
|
|
3384
|
+
<ECNavigationProperty propertyName="Parent" relationshipName="ParentHasChildren" direction="backward"/>
|
|
3385
|
+
</ECEntityClass>
|
|
3386
|
+
|
|
3387
|
+
<ECEntityClass typeName="Child" modifier="Sealed">
|
|
3388
|
+
<BaseClass>ChildTemplate</BaseClass>
|
|
3389
|
+
<ECProperty propertyName="Age" typeName="int"/>
|
|
3390
|
+
<ECNavigationProperty propertyName="Friends" relationshipName="ChildHasFriends" direction="backward"/>
|
|
3391
|
+
</ECEntityClass>
|
|
3392
|
+
|
|
3393
|
+
<ECRelationshipClass typeName="ParentHasChildren" modifier="None" strength="embedding">
|
|
3394
|
+
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
3395
|
+
<Class class="Parent"/>
|
|
3396
|
+
</Source>
|
|
3397
|
+
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
3398
|
+
<Class class="ChildTemplate"/>
|
|
3399
|
+
</Target>
|
|
3400
|
+
</ECRelationshipClass>
|
|
3401
|
+
|
|
3402
|
+
<ECRelationshipClass typeName="ChildHasFriends" modifier="None" strength="embedding">
|
|
3403
|
+
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
3404
|
+
<Class class="Child"/>
|
|
3405
|
+
</Source>
|
|
3406
|
+
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
3407
|
+
<Class class="Child"/>
|
|
3408
|
+
</Target>
|
|
3409
|
+
</ECRelationshipClass>
|
|
3410
3410
|
</ECSchema>`);
|
|
3411
3411
|
assert.isTrue(ecdb.isOpen);
|
|
3412
3412
|
let reader = ecdb.createQueryReader("SELECT ECInstanceId FROM meta.ECClassDef WHERE Name='Parent'");
|