@itwin/core-backend 5.10.0-dev.5 → 5.10.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/CHANGELOG.md +28 -1
- 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.d.ts +14 -62
- package/lib/cjs/BriefcaseManager.d.ts.map +1 -1
- package/lib/cjs/BriefcaseManager.js +29 -162
- package/lib/cjs/BriefcaseManager.js.map +1 -1
- package/lib/cjs/CatalogDb.js.map +1 -1
- package/lib/cjs/Category.d.ts +4 -4
- 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.d.ts +6 -6
- package/lib/cjs/ChangesetECAdaptor.js +252 -252
- package/lib/cjs/ChangesetECAdaptor.js.map +1 -1
- 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.d.ts +3 -3
- 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.d.ts +2 -2
- 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.d.ts +10 -10
- package/lib/cjs/Element.d.ts.map +1 -1
- package/lib/cjs/Element.js +2 -2
- package/lib/cjs/Element.js.map +1 -1
- package/lib/cjs/ElementAspect.d.ts +1 -1
- package/lib/cjs/ElementAspect.js.map +1 -1
- package/lib/cjs/ElementGraphics.js.map +1 -1
- package/lib/cjs/ElementTreeWalker.d.ts +5 -5
- 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.d.ts +2 -2
- package/lib/cjs/ExternalSource.d.ts.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.d.ts +22 -22
- package/lib/cjs/IModelDb.js +28 -28
- 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.d.ts +2 -0
- package/lib/cjs/IModelJsFs.d.ts.map +1 -1
- package/lib/cjs/IModelJsFs.js +14 -0
- 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.d.ts +6 -6
- 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.d.ts +1 -1
- package/lib/cjs/Material.js.map +1 -1
- package/lib/cjs/Model.d.ts +6 -6
- package/lib/cjs/Model.d.ts.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.d.ts +10 -10
- package/lib/cjs/Relationship.js +6 -6
- 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.d.ts +4 -4
- package/lib/cjs/SheetIndex.d.ts.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.d.ts +1 -1
- package/lib/cjs/Texture.js.map +1 -1
- package/lib/cjs/TileStorage.js.map +1 -1
- package/lib/cjs/TxnManager.d.ts +3 -0
- package/lib/cjs/TxnManager.d.ts.map +1 -1
- package/lib/cjs/TxnManager.js +95 -13
- package/lib/cjs/TxnManager.js.map +1 -1
- package/lib/cjs/ViewDefinition.d.ts +6 -6
- package/lib/cjs/ViewDefinition.d.ts.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.d.ts +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 +32 -32
- package/lib/cjs/assets/Settings/Schemas/Gcs.schema.json +27 -27
- 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.d.ts +1 -1
- package/lib/cjs/domains/FunctionalElements.d.ts.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.d.ts +2 -2
- package/lib/cjs/domains/GenericElements.d.ts.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.d.ts +2 -2
- package/lib/cjs/internal/ChannelAdmin.d.ts.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.d.ts +14 -62
- package/lib/esm/BriefcaseManager.d.ts.map +1 -1
- package/lib/esm/BriefcaseManager.js +30 -163
- package/lib/esm/BriefcaseManager.js.map +1 -1
- package/lib/esm/CatalogDb.js.map +1 -1
- package/lib/esm/Category.d.ts +4 -4
- 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.d.ts +6 -6
- package/lib/esm/ChangesetECAdaptor.js +252 -252
- package/lib/esm/ChangesetECAdaptor.js.map +1 -1
- 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.d.ts +3 -3
- 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.d.ts +2 -2
- 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.d.ts +10 -10
- package/lib/esm/Element.d.ts.map +1 -1
- package/lib/esm/Element.js +2 -2
- package/lib/esm/Element.js.map +1 -1
- package/lib/esm/ElementAspect.d.ts +1 -1
- package/lib/esm/ElementAspect.js.map +1 -1
- package/lib/esm/ElementGraphics.js.map +1 -1
- package/lib/esm/ElementTreeWalker.d.ts +5 -5
- 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.d.ts +2 -2
- package/lib/esm/ExternalSource.d.ts.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.d.ts +22 -22
- package/lib/esm/IModelDb.js +28 -28
- 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.d.ts +2 -0
- package/lib/esm/IModelJsFs.d.ts.map +1 -1
- package/lib/esm/IModelJsFs.js +14 -0
- 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.d.ts +6 -6
- 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.d.ts +1 -1
- package/lib/esm/Material.js.map +1 -1
- package/lib/esm/Model.d.ts +6 -6
- package/lib/esm/Model.d.ts.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.d.ts +10 -10
- package/lib/esm/Relationship.js +6 -6
- 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.d.ts +4 -4
- package/lib/esm/SheetIndex.d.ts.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.d.ts +1 -1
- package/lib/esm/Texture.js.map +1 -1
- package/lib/esm/TileStorage.js.map +1 -1
- package/lib/esm/TxnManager.d.ts +3 -0
- package/lib/esm/TxnManager.d.ts.map +1 -1
- package/lib/esm/TxnManager.js +96 -14
- package/lib/esm/TxnManager.js.map +1 -1
- package/lib/esm/ViewDefinition.d.ts +6 -6
- package/lib/esm/ViewDefinition.d.ts.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.d.ts +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.d.ts +1 -1
- package/lib/esm/domains/FunctionalElements.d.ts.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.d.ts +2 -2
- package/lib/esm/domains/GenericElements.d.ts.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.d.ts +2 -2
- package/lib/esm/internal/ChannelAdmin.d.ts.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/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 +2387 -213
- 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/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 +246 -246
- 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 +14 -14
|
@@ -107,12 +107,12 @@ describe("ECSqlStatement", () => {
|
|
|
107
107
|
it("check asynchronous step and stepForInsert methods", async () => {
|
|
108
108
|
const env_1 = { stack: [], error: void 0, hasError: false };
|
|
109
109
|
try {
|
|
110
|
-
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">
|
|
111
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
112
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
113
|
-
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
114
|
-
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
115
|
-
</ECEntityClass>
|
|
110
|
+
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">
|
|
111
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
112
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
113
|
+
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
114
|
+
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
115
|
+
</ECEntityClass>
|
|
116
116
|
</ECSchema>`), false);
|
|
117
117
|
assert.isTrue(ecdb.isOpen);
|
|
118
118
|
const r = await ecdb.withCachedWriteStatement("INSERT INTO ts.Foo(n,dt,fooId) VALUES(20,TIMESTAMP '2018-10-18T12:00:00Z',20)", async (stmt) => {
|
|
@@ -133,12 +133,12 @@ describe("ECSqlStatement", () => {
|
|
|
133
133
|
it("concurrent query get meta data", async () => {
|
|
134
134
|
const env_2 = { stack: [], error: void 0, hasError: false };
|
|
135
135
|
try {
|
|
136
|
-
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">
|
|
137
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
138
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
139
|
-
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
140
|
-
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
141
|
-
</ECEntityClass>
|
|
136
|
+
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">
|
|
137
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
138
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
139
|
+
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
140
|
+
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
141
|
+
</ECEntityClass>
|
|
142
142
|
</ECSchema>`), false);
|
|
143
143
|
assert.isTrue(ecdb.isOpen);
|
|
144
144
|
await ecdb.withCachedWriteStatement("INSERT INTO ts.Foo(n,dt,fooId) VALUES(20,TIMESTAMP '2018-10-18T12:00:00Z',20)", async (stmt) => {
|
|
@@ -190,10 +190,10 @@ describe("ECSqlStatement", () => {
|
|
|
190
190
|
it("should page results", async () => {
|
|
191
191
|
const env_4 = { stack: [], error: void 0, hasError: false };
|
|
192
192
|
try {
|
|
193
|
-
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">
|
|
194
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
195
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
196
|
-
</ECEntityClass>
|
|
193
|
+
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">
|
|
194
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
195
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
196
|
+
</ECEntityClass>
|
|
197
197
|
</ECSchema>`), false);
|
|
198
198
|
assert.isTrue(ecdb.isOpen);
|
|
199
199
|
const ROW_COUNT = 27;
|
|
@@ -236,10 +236,10 @@ describe("ECSqlStatement", () => {
|
|
|
236
236
|
it("paging use cache statement queryRows()", async () => {
|
|
237
237
|
const env_5 = { stack: [], error: void 0, hasError: false };
|
|
238
238
|
try {
|
|
239
|
-
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">
|
|
240
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
241
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
242
|
-
</ECEntityClass>
|
|
239
|
+
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">
|
|
240
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
241
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
242
|
+
</ECEntityClass>
|
|
243
243
|
</ECSchema>`), false);
|
|
244
244
|
assert.isTrue(ecdb.isOpen);
|
|
245
245
|
const ROW_COUNT = 100;
|
|
@@ -275,10 +275,10 @@ describe("ECSqlStatement", () => {
|
|
|
275
275
|
it("should restart query", async () => {
|
|
276
276
|
const env_6 = { stack: [], error: void 0, hasError: false };
|
|
277
277
|
try {
|
|
278
|
-
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">
|
|
279
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
280
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
281
|
-
</ECEntityClass>
|
|
278
|
+
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">
|
|
279
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
280
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
281
|
+
</ECEntityClass>
|
|
282
282
|
</ECSchema>`), false);
|
|
283
283
|
assert.isTrue(ecdb.isOpen);
|
|
284
284
|
const ROW_COUNT = 100;
|
|
@@ -339,10 +339,10 @@ describe("ECSqlStatement", () => {
|
|
|
339
339
|
it("should use cache statement for query()", async () => {
|
|
340
340
|
const env_7 = { stack: [], error: void 0, hasError: false };
|
|
341
341
|
try {
|
|
342
|
-
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">
|
|
343
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
344
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
345
|
-
</ECEntityClass>
|
|
342
|
+
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">
|
|
343
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
344
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
345
|
+
</ECEntityClass>
|
|
346
346
|
</ECSchema>`), false);
|
|
347
347
|
assert.isTrue(ecdb.isOpen);
|
|
348
348
|
const ROW_COUNT = 27;
|
|
@@ -377,10 +377,10 @@ describe("ECSqlStatement", () => {
|
|
|
377
377
|
it("concurrent query binding", async () => {
|
|
378
378
|
const env_8 = { stack: [], error: void 0, hasError: false };
|
|
379
379
|
try {
|
|
380
|
-
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">
|
|
381
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
382
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
383
|
-
</ECEntityClass>
|
|
380
|
+
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">
|
|
381
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
382
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
383
|
+
</ECEntityClass>
|
|
384
384
|
</ECSchema>`), false);
|
|
385
385
|
assert.isTrue(ecdb.isOpen);
|
|
386
386
|
for (let i = 1; i <= 5; i++) {
|
|
@@ -420,10 +420,10 @@ describe("ECSqlStatement", () => {
|
|
|
420
420
|
it("check HextoId() and IdToHex() ecsql functions", async () => {
|
|
421
421
|
const env_9 = { stack: [], error: void 0, hasError: false };
|
|
422
422
|
try {
|
|
423
|
-
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">
|
|
424
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
425
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
426
|
-
</ECEntityClass>
|
|
423
|
+
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">
|
|
424
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
425
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
426
|
+
</ECEntityClass>
|
|
427
427
|
</ECSchema>`), false);
|
|
428
428
|
assert.isTrue(ecdb.isOpen);
|
|
429
429
|
for (let i = 1; i <= 2; i++) {
|
|
@@ -449,10 +449,10 @@ describe("ECSqlStatement", () => {
|
|
|
449
449
|
it("should bind BeGuid", async () => {
|
|
450
450
|
const env_10 = { stack: [], error: void 0, hasError: false };
|
|
451
451
|
try {
|
|
452
|
-
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">
|
|
453
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
454
|
-
<ECProperty propertyName="guid" typeName="binary" extendedTypeName="BeGuid"/>
|
|
455
|
-
</ECEntityClass>
|
|
452
|
+
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">
|
|
453
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
454
|
+
<ECProperty propertyName="guid" typeName="binary" extendedTypeName="BeGuid"/>
|
|
455
|
+
</ECEntityClass>
|
|
456
456
|
</ECSchema>`), false);
|
|
457
457
|
assert.isTrue(ecdb.isOpen);
|
|
458
458
|
const maxRows = 10;
|
|
@@ -621,12 +621,12 @@ describe("ECSqlStatement", () => {
|
|
|
621
621
|
slm.append().error().category("ECDb").message(/String must be a valid ISO 8601 date, time or timestamp/gm);
|
|
622
622
|
slm.append().error().category("ECDb").message(/String must be a valid ISO 8601 date, time or timestamp/gm);
|
|
623
623
|
slm.append().error().category("ECDb").message(/only BindDateTime or BindText can be called for a column of the DateTime type/gm);
|
|
624
|
-
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">
|
|
625
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
626
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
627
|
-
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
628
|
-
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
629
|
-
</ECEntityClass>
|
|
624
|
+
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">
|
|
625
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
626
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
627
|
+
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
628
|
+
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
629
|
+
</ECEntityClass>
|
|
630
630
|
</ECSchema>`), false);
|
|
631
631
|
assert.isTrue(ecdb.isOpen);
|
|
632
632
|
const r = ecdb.withCachedWriteStatement("INSERT INTO ts.Foo(n,dt,fooId) VALUES(20,TIMESTAMP '2018-10-18T12:00:00Z',20)", (stmt) => {
|
|
@@ -863,14 +863,14 @@ describe("ECSqlStatement", () => {
|
|
|
863
863
|
it("should bind numbers", async () => {
|
|
864
864
|
const env_13 = { stack: [], error: void 0, hasError: false };
|
|
865
865
|
try {
|
|
866
|
-
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">
|
|
867
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
868
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
869
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
870
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
871
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
872
|
-
<ECProperty propertyName="Description" typeName="string"/>
|
|
873
|
-
</ECEntityClass>
|
|
866
|
+
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">
|
|
867
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
868
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
869
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
870
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
871
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
872
|
+
<ECProperty propertyName="Description" typeName="string"/>
|
|
873
|
+
</ECEntityClass>
|
|
874
874
|
</ECSchema>`), false);
|
|
875
875
|
assert.isTrue(ecdb.isOpen);
|
|
876
876
|
const doubleVal = 3.5;
|
|
@@ -1307,32 +1307,32 @@ describe("ECSqlStatement", () => {
|
|
|
1307
1307
|
it("should bind primitives", async () => {
|
|
1308
1308
|
const env_14 = { stack: [], error: void 0, hasError: false };
|
|
1309
1309
|
try {
|
|
1310
|
-
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">
|
|
1311
|
-
<ECStructClass typeName="MyStruct" modifier="Sealed">
|
|
1312
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
1313
|
-
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
1314
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
1315
|
-
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
1316
|
-
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
1317
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
1318
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
1319
|
-
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
1320
|
-
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
1321
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
1322
|
-
</ECStructClass>
|
|
1323
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1324
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
1325
|
-
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
1326
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
1327
|
-
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
1328
|
-
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
1329
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
1330
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
1331
|
-
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
1332
|
-
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
1333
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
1334
|
-
<ECStructProperty propertyName="Struct" typeName="MyStruct"/>
|
|
1335
|
-
</ECEntityClass>
|
|
1310
|
+
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">
|
|
1311
|
+
<ECStructClass typeName="MyStruct" modifier="Sealed">
|
|
1312
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
1313
|
+
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
1314
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
1315
|
+
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
1316
|
+
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
1317
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
1318
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
1319
|
+
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
1320
|
+
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
1321
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
1322
|
+
</ECStructClass>
|
|
1323
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1324
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
1325
|
+
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
1326
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
1327
|
+
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
1328
|
+
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
1329
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
1330
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
1331
|
+
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
1332
|
+
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
1333
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
1334
|
+
<ECStructProperty propertyName="Struct" typeName="MyStruct"/>
|
|
1335
|
+
</ECEntityClass>
|
|
1336
1336
|
</ECSchema>`), false);
|
|
1337
1337
|
assert.isTrue(ecdb.isOpen);
|
|
1338
1338
|
const boolVal = true;
|
|
@@ -1479,22 +1479,22 @@ describe("ECSqlStatement", () => {
|
|
|
1479
1479
|
it("should bind structs", async () => {
|
|
1480
1480
|
const env_15 = { stack: [], error: void 0, hasError: false };
|
|
1481
1481
|
try {
|
|
1482
|
-
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">
|
|
1483
|
-
<ECStructClass typeName="MyStruct" modifier="Sealed">
|
|
1484
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
1485
|
-
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
1486
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
1487
|
-
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
1488
|
-
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
1489
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
1490
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
1491
|
-
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
1492
|
-
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
1493
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
1494
|
-
</ECStructClass>
|
|
1495
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1496
|
-
<ECStructProperty propertyName="Struct" typeName="MyStruct"/>
|
|
1497
|
-
</ECEntityClass>
|
|
1482
|
+
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">
|
|
1483
|
+
<ECStructClass typeName="MyStruct" modifier="Sealed">
|
|
1484
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
1485
|
+
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
1486
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
1487
|
+
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
1488
|
+
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
1489
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
1490
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
1491
|
+
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
1492
|
+
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
1493
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
1494
|
+
</ECStructClass>
|
|
1495
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1496
|
+
<ECStructProperty propertyName="Struct" typeName="MyStruct"/>
|
|
1497
|
+
</ECEntityClass>
|
|
1498
1498
|
</ECSchema>`), false);
|
|
1499
1499
|
assert.isTrue(ecdb.isOpen);
|
|
1500
1500
|
const structVal = {
|
|
@@ -1574,16 +1574,16 @@ describe("ECSqlStatement", () => {
|
|
|
1574
1574
|
it("should bind arrays", async () => {
|
|
1575
1575
|
const env_16 = { stack: [], error: void 0, hasError: false };
|
|
1576
1576
|
try {
|
|
1577
|
-
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">
|
|
1578
|
-
<ECStructClass typeName="Location" modifier="Sealed">
|
|
1579
|
-
<ECProperty propertyName="City" typeName="string"/>
|
|
1580
|
-
<ECProperty propertyName="Zip" typeName="int"/>
|
|
1581
|
-
</ECStructClass>
|
|
1582
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1583
|
-
<ECArrayProperty propertyName="I_Array" typeName="int"/>
|
|
1584
|
-
<ECArrayProperty propertyName="Dt_Array" typeName="dateTime"/>
|
|
1585
|
-
<ECStructArrayProperty propertyName="Addresses" typeName="Location"/>
|
|
1586
|
-
</ECEntityClass>
|
|
1577
|
+
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">
|
|
1578
|
+
<ECStructClass typeName="Location" modifier="Sealed">
|
|
1579
|
+
<ECProperty propertyName="City" typeName="string"/>
|
|
1580
|
+
<ECProperty propertyName="Zip" typeName="int"/>
|
|
1581
|
+
</ECStructClass>
|
|
1582
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1583
|
+
<ECArrayProperty propertyName="I_Array" typeName="int"/>
|
|
1584
|
+
<ECArrayProperty propertyName="Dt_Array" typeName="dateTime"/>
|
|
1585
|
+
<ECStructArrayProperty propertyName="Addresses" typeName="Location"/>
|
|
1586
|
+
</ECEntityClass>
|
|
1587
1587
|
</ECSchema>`), false);
|
|
1588
1588
|
assert.isTrue(ecdb.isOpen);
|
|
1589
1589
|
const intArray = [1, 2, 3];
|
|
@@ -1671,22 +1671,22 @@ describe("ECSqlStatement", () => {
|
|
|
1671
1671
|
it("should bind navigation", async () => {
|
|
1672
1672
|
const env_17 = { stack: [], error: void 0, hasError: false };
|
|
1673
1673
|
try {
|
|
1674
|
-
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">
|
|
1675
|
-
<ECEntityClass typeName="Parent" modifier="Sealed">
|
|
1676
|
-
<ECProperty propertyName="Code" typeName="string"/>
|
|
1677
|
-
</ECEntityClass>
|
|
1678
|
-
<ECEntityClass typeName="Child" modifier="Sealed">
|
|
1679
|
-
<ECProperty propertyName="Name" typeName="string"/>
|
|
1680
|
-
<ECNavigationProperty propertyName="Parent" relationshipName="ParentHasChildren" direction="backward"/>
|
|
1681
|
-
</ECEntityClass>
|
|
1682
|
-
<ECRelationshipClass typeName="ParentHasChildren" modifier="None" strength="embedding">
|
|
1683
|
-
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
1684
|
-
<Class class="Parent"/>
|
|
1685
|
-
</Source>
|
|
1686
|
-
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
1687
|
-
<Class class="Child"/>
|
|
1688
|
-
</Target>
|
|
1689
|
-
</ECRelationshipClass>
|
|
1674
|
+
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">
|
|
1675
|
+
<ECEntityClass typeName="Parent" modifier="Sealed">
|
|
1676
|
+
<ECProperty propertyName="Code" typeName="string"/>
|
|
1677
|
+
</ECEntityClass>
|
|
1678
|
+
<ECEntityClass typeName="Child" modifier="Sealed">
|
|
1679
|
+
<ECProperty propertyName="Name" typeName="string"/>
|
|
1680
|
+
<ECNavigationProperty propertyName="Parent" relationshipName="ParentHasChildren" direction="backward"/>
|
|
1681
|
+
</ECEntityClass>
|
|
1682
|
+
<ECRelationshipClass typeName="ParentHasChildren" modifier="None" strength="embedding">
|
|
1683
|
+
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
1684
|
+
<Class class="Parent"/>
|
|
1685
|
+
</Source>
|
|
1686
|
+
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
1687
|
+
<Class class="Child"/>
|
|
1688
|
+
</Target>
|
|
1689
|
+
</ECRelationshipClass>
|
|
1690
1690
|
</ECSchema>`), false);
|
|
1691
1691
|
assert.isTrue(ecdb.isOpen);
|
|
1692
1692
|
const parentId = ecdb.withCachedWriteStatement("INSERT INTO test.Parent(Code) VALUES('Parent 1')", (stmt) => {
|
|
@@ -1781,10 +1781,10 @@ describe("ECSqlStatement", () => {
|
|
|
1781
1781
|
it("should bind Range3d", async () => {
|
|
1782
1782
|
const env_18 = { stack: [], error: void 0, hasError: false };
|
|
1783
1783
|
try {
|
|
1784
|
-
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">
|
|
1785
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1786
|
-
<ECProperty propertyName="Range3d" typeName="binary"/>
|
|
1787
|
-
</ECEntityClass>
|
|
1784
|
+
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">
|
|
1785
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1786
|
+
<ECProperty propertyName="Range3d" typeName="binary"/>
|
|
1787
|
+
</ECEntityClass>
|
|
1788
1788
|
</ECSchema>`), false);
|
|
1789
1789
|
assert.isTrue(ecdb.isOpen);
|
|
1790
1790
|
const id = ecdb.withCachedWriteStatement("INSERT INTO test.Foo([Range3d]) VALUES(?)", (stmt) => {
|
|
@@ -2012,17 +2012,17 @@ describe("ECSqlStatement", () => {
|
|
|
2012
2012
|
it("check ECSqlBinder life time", async () => {
|
|
2013
2013
|
const env_22 = { stack: [], error: void 0, hasError: false };
|
|
2014
2014
|
try {
|
|
2015
|
-
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">
|
|
2016
|
-
<ECStructClass typeName="Address" modifier="Sealed">
|
|
2017
|
-
<ECProperty propertyName="Street" typeName="string"/>
|
|
2018
|
-
<ECProperty propertyName="City" typeName="string"/>
|
|
2019
|
-
<ECProperty propertyName="Zip" typeName="int"/>
|
|
2020
|
-
</ECStructClass>
|
|
2021
|
-
<ECEntityClass typeName="Person" modifier="Sealed">
|
|
2022
|
-
<ECProperty propertyName="Name" typeName="string"/>
|
|
2023
|
-
<ECProperty propertyName="Age" typeName="int"/>
|
|
2024
|
-
<ECStructProperty propertyName="Location" typeName="Address"/>
|
|
2025
|
-
</ECEntityClass>
|
|
2015
|
+
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">
|
|
2016
|
+
<ECStructClass typeName="Address" modifier="Sealed">
|
|
2017
|
+
<ECProperty propertyName="Street" typeName="string"/>
|
|
2018
|
+
<ECProperty propertyName="City" typeName="string"/>
|
|
2019
|
+
<ECProperty propertyName="Zip" typeName="int"/>
|
|
2020
|
+
</ECStructClass>
|
|
2021
|
+
<ECEntityClass typeName="Person" modifier="Sealed">
|
|
2022
|
+
<ECProperty propertyName="Name" typeName="string"/>
|
|
2023
|
+
<ECProperty propertyName="Age" typeName="int"/>
|
|
2024
|
+
<ECStructProperty propertyName="Location" typeName="Address"/>
|
|
2025
|
+
</ECEntityClass>
|
|
2026
2026
|
</ECSchema>`), false);
|
|
2027
2027
|
assert.isTrue(ecdb.isOpen);
|
|
2028
2028
|
let id1 = "", id2 = "";
|
|
@@ -2104,19 +2104,19 @@ describe("ECSqlStatement", () => {
|
|
|
2104
2104
|
it("getRow() with primitives values", async () => {
|
|
2105
2105
|
const env_24 = { stack: [], error: void 0, hasError: false };
|
|
2106
2106
|
try {
|
|
2107
|
-
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">
|
|
2108
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2109
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2110
|
-
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
2111
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
2112
|
-
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
2113
|
-
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
2114
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
2115
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
2116
|
-
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
2117
|
-
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
2118
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
2119
|
-
</ECEntityClass>
|
|
2107
|
+
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">
|
|
2108
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2109
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2110
|
+
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
2111
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
2112
|
+
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
2113
|
+
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
2114
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
2115
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
2116
|
+
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
2117
|
+
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
2118
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
2119
|
+
</ECEntityClass>
|
|
2120
2120
|
</ECSchema>`), false);
|
|
2121
2121
|
assert.isTrue(ecdb.isOpen);
|
|
2122
2122
|
const boolVal = true;
|
|
@@ -2269,10 +2269,10 @@ describe("ECSqlStatement", () => {
|
|
|
2269
2269
|
it("getRow() with abbreviated blobs", async () => {
|
|
2270
2270
|
const env_25 = { stack: [], error: void 0, hasError: false };
|
|
2271
2271
|
try {
|
|
2272
|
-
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">
|
|
2273
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2274
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2275
|
-
</ECEntityClass>
|
|
2272
|
+
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">
|
|
2273
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2274
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2275
|
+
</ECEntityClass>
|
|
2276
2276
|
</ECSchema>`), false);
|
|
2277
2277
|
assert.isTrue(ecdb.isOpen);
|
|
2278
2278
|
const singleBlobVal = blobVal.slice(0, 1);
|
|
@@ -2374,22 +2374,22 @@ describe("ECSqlStatement", () => {
|
|
|
2374
2374
|
it("getRow() with navigation properties and relationships", async () => {
|
|
2375
2375
|
const env_26 = { stack: [], error: void 0, hasError: false };
|
|
2376
2376
|
try {
|
|
2377
|
-
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">
|
|
2378
|
-
<ECEntityClass typeName="Parent" modifier="Sealed">
|
|
2379
|
-
<ECProperty propertyName="Code" typeName="string"/>
|
|
2380
|
-
</ECEntityClass>
|
|
2381
|
-
<ECEntityClass typeName="Child" modifier="Sealed">
|
|
2382
|
-
<ECProperty propertyName="Name" typeName="string"/>
|
|
2383
|
-
<ECNavigationProperty propertyName="Parent" relationshipName="ParentHasChildren" direction="backward"/>
|
|
2384
|
-
</ECEntityClass>
|
|
2385
|
-
<ECRelationshipClass typeName="ParentHasChildren" modifier="None" strength="embedding">
|
|
2386
|
-
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
2387
|
-
<Class class="Parent"/>
|
|
2388
|
-
</Source>
|
|
2389
|
-
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
2390
|
-
<Class class="Child"/>
|
|
2391
|
-
</Target>
|
|
2392
|
-
</ECRelationshipClass>
|
|
2377
|
+
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">
|
|
2378
|
+
<ECEntityClass typeName="Parent" modifier="Sealed">
|
|
2379
|
+
<ECProperty propertyName="Code" typeName="string"/>
|
|
2380
|
+
</ECEntityClass>
|
|
2381
|
+
<ECEntityClass typeName="Child" modifier="Sealed">
|
|
2382
|
+
<ECProperty propertyName="Name" typeName="string"/>
|
|
2383
|
+
<ECNavigationProperty propertyName="Parent" relationshipName="ParentHasChildren" direction="backward"/>
|
|
2384
|
+
</ECEntityClass>
|
|
2385
|
+
<ECRelationshipClass typeName="ParentHasChildren" modifier="None" strength="embedding">
|
|
2386
|
+
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
2387
|
+
<Class class="Parent"/>
|
|
2388
|
+
</Source>
|
|
2389
|
+
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
2390
|
+
<Class class="Child"/>
|
|
2391
|
+
</Target>
|
|
2392
|
+
</ECRelationshipClass>
|
|
2393
2393
|
</ECSchema>`), false);
|
|
2394
2394
|
assert.isTrue(ecdb.isOpen);
|
|
2395
2395
|
let rowCount;
|
|
@@ -2511,22 +2511,22 @@ describe("ECSqlStatement", () => {
|
|
|
2511
2511
|
it("getRow() with structs", async () => {
|
|
2512
2512
|
const env_27 = { stack: [], error: void 0, hasError: false };
|
|
2513
2513
|
try {
|
|
2514
|
-
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">
|
|
2515
|
-
<ECStructClass typeName="MyStruct" modifier="Sealed">
|
|
2516
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2517
|
-
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
2518
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
2519
|
-
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
2520
|
-
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
2521
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
2522
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
2523
|
-
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
2524
|
-
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
2525
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
2526
|
-
</ECStructClass>
|
|
2527
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2528
|
-
<ECStructProperty propertyName="Struct" typeName="MyStruct"/>
|
|
2529
|
-
</ECEntityClass>
|
|
2514
|
+
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">
|
|
2515
|
+
<ECStructClass typeName="MyStruct" modifier="Sealed">
|
|
2516
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2517
|
+
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
2518
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
2519
|
+
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
2520
|
+
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
2521
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
2522
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
2523
|
+
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
2524
|
+
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
2525
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
2526
|
+
</ECStructClass>
|
|
2527
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2528
|
+
<ECStructProperty propertyName="Struct" typeName="MyStruct"/>
|
|
2529
|
+
</ECEntityClass>
|
|
2530
2530
|
</ECSchema>`), false);
|
|
2531
2531
|
assert.isTrue(ecdb.isOpen);
|
|
2532
2532
|
const boolVal = true;
|
|
@@ -2640,19 +2640,19 @@ describe("ECSqlStatement", () => {
|
|
|
2640
2640
|
slm.append().error().category("ECDb").message(/Failed to prepare function expression/gm);
|
|
2641
2641
|
slm.append().error().category("ECDb").message(/Failed to prepare function expression/gm);
|
|
2642
2642
|
slm.append().error().category("ECDb").message(/Step failed for ECSQL/gm);
|
|
2643
|
-
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">
|
|
2644
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2645
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2646
|
-
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
2647
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
2648
|
-
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
2649
|
-
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
2650
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
2651
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
2652
|
-
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
2653
|
-
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
2654
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
2655
|
-
</ECEntityClass>
|
|
2643
|
+
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">
|
|
2644
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2645
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2646
|
+
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
2647
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
2648
|
+
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
2649
|
+
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
2650
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
2651
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
2652
|
+
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
2653
|
+
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
2654
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
2655
|
+
</ECEntityClass>
|
|
2656
2656
|
</ECSchema>`), false);
|
|
2657
2657
|
assert.isTrue(ecdb.isOpen);
|
|
2658
2658
|
const expectedRow = {
|
|
@@ -2737,21 +2737,21 @@ describe("ECSqlStatement", () => {
|
|
|
2737
2737
|
it("check ec enums", async () => {
|
|
2738
2738
|
const env_29 = { stack: [], error: void 0, hasError: false };
|
|
2739
2739
|
try {
|
|
2740
|
-
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">
|
|
2741
|
-
<ECEnumeration typeName="Status" backingTypeName="int" isStrict="true">
|
|
2742
|
-
<ECEnumerator name="On" value="1" />
|
|
2743
|
-
<ECEnumerator name="Off" value="2" />
|
|
2744
|
-
</ECEnumeration>
|
|
2745
|
-
<ECEnumeration typeName="Domain" backingTypeName="string" isStrict="true">
|
|
2746
|
-
<ECEnumerator name="Org" value="Org" />
|
|
2747
|
-
<ECEnumerator name="Com" value="Com" />
|
|
2748
|
-
</ECEnumeration>
|
|
2749
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2750
|
-
<ECProperty propertyName="MyStat" typeName="Status"/>
|
|
2751
|
-
<ECArrayProperty propertyName="MyStats" typeName="Status"/>
|
|
2752
|
-
<ECProperty propertyName="MyDomain" typeName="Domain"/>
|
|
2753
|
-
<ECArrayProperty propertyName="MyDomains" typeName="Domain"/>
|
|
2754
|
-
</ECEntityClass>
|
|
2740
|
+
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">
|
|
2741
|
+
<ECEnumeration typeName="Status" backingTypeName="int" isStrict="true">
|
|
2742
|
+
<ECEnumerator name="On" value="1" />
|
|
2743
|
+
<ECEnumerator name="Off" value="2" />
|
|
2744
|
+
</ECEnumeration>
|
|
2745
|
+
<ECEnumeration typeName="Domain" backingTypeName="string" isStrict="true">
|
|
2746
|
+
<ECEnumerator name="Org" value="Org" />
|
|
2747
|
+
<ECEnumerator name="Com" value="Com" />
|
|
2748
|
+
</ECEnumeration>
|
|
2749
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2750
|
+
<ECProperty propertyName="MyStat" typeName="Status"/>
|
|
2751
|
+
<ECArrayProperty propertyName="MyStats" typeName="Status"/>
|
|
2752
|
+
<ECProperty propertyName="MyDomain" typeName="Domain"/>
|
|
2753
|
+
<ECArrayProperty propertyName="MyDomains" typeName="Domain"/>
|
|
2754
|
+
</ECEntityClass>
|
|
2755
2755
|
</ECSchema>`), false);
|
|
2756
2756
|
assert.isTrue(ecdb.isOpen);
|
|
2757
2757
|
const id = ecdb.withCachedWriteStatement("INSERT INTO test.Foo(MyStat,MyStats,MyDomain,MyDomains) VALUES(test.Status.[On],?,test.Domain.Org,?)", (stmt) => {
|
|
@@ -2855,21 +2855,21 @@ describe("ECSqlStatement", () => {
|
|
|
2855
2855
|
const slm = new SequentialLogMatcher();
|
|
2856
2856
|
slm.append().error().category("ECDb").message(/The value 9 cannot be broken down into a combination of ECEnumerators/gm);
|
|
2857
2857
|
slm.append().error().category("ECDb").message(/The value 'gov,de' cannot be broken down into a combination of ECEnumerators/gm);
|
|
2858
|
-
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">
|
|
2859
|
-
<ECEnumeration typeName="Color" backingTypeName="int" isStrict="true">
|
|
2860
|
-
<ECEnumerator name="Red" value="1" />
|
|
2861
|
-
<ECEnumerator name="Yellow" value="2" />
|
|
2862
|
-
<ECEnumerator name="Blue" value="4" />
|
|
2863
|
-
</ECEnumeration>
|
|
2864
|
-
<ECEnumeration typeName="Domain" backingTypeName="string" isStrict="true">
|
|
2865
|
-
<ECEnumerator name="Org" value="org" />
|
|
2866
|
-
<ECEnumerator name="Com" value="com" />
|
|
2867
|
-
<ECEnumerator name="Gov" value="gov" />
|
|
2868
|
-
</ECEnumeration>
|
|
2869
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2870
|
-
<ECProperty propertyName="MyColor" typeName="Color"/>
|
|
2871
|
-
<ECProperty propertyName="MyDomain" typeName="Domain"/>
|
|
2872
|
-
</ECEntityClass>
|
|
2858
|
+
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">
|
|
2859
|
+
<ECEnumeration typeName="Color" backingTypeName="int" isStrict="true">
|
|
2860
|
+
<ECEnumerator name="Red" value="1" />
|
|
2861
|
+
<ECEnumerator name="Yellow" value="2" />
|
|
2862
|
+
<ECEnumerator name="Blue" value="4" />
|
|
2863
|
+
</ECEnumeration>
|
|
2864
|
+
<ECEnumeration typeName="Domain" backingTypeName="string" isStrict="true">
|
|
2865
|
+
<ECEnumerator name="Org" value="org" />
|
|
2866
|
+
<ECEnumerator name="Com" value="com" />
|
|
2867
|
+
<ECEnumerator name="Gov" value="gov" />
|
|
2868
|
+
</ECEnumeration>
|
|
2869
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2870
|
+
<ECProperty propertyName="MyColor" typeName="Color"/>
|
|
2871
|
+
<ECProperty propertyName="MyDomain" typeName="Domain"/>
|
|
2872
|
+
</ECEntityClass>
|
|
2873
2873
|
</ECSchema>`), false);
|
|
2874
2874
|
assert.isTrue(ecdb.isOpen);
|
|
2875
2875
|
const ids = ecdb.withCachedWriteStatement("INSERT INTO test.Foo(MyColor,MyDomain) VALUES(?,?)", (stmt) => {
|
|
@@ -3000,12 +3000,12 @@ describe("ECSqlStatement", () => {
|
|
|
3000
3000
|
it("should get native sql", async () => {
|
|
3001
3001
|
const env_31 = { stack: [], error: void 0, hasError: false };
|
|
3002
3002
|
try {
|
|
3003
|
-
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">
|
|
3004
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
3005
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
3006
|
-
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
3007
|
-
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
3008
|
-
</ECEntityClass>
|
|
3003
|
+
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">
|
|
3004
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
3005
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
3006
|
+
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
3007
|
+
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
3008
|
+
</ECEntityClass>
|
|
3009
3009
|
</ECSchema>`), false);
|
|
3010
3010
|
assert.isTrue(ecdb.isOpen);
|
|
3011
3011
|
const r = await ecdb.withCachedWriteStatement("INSERT INTO ts.Foo(n,dt,fooId) VALUES(20,TIMESTAMP '2018-10-18T12:00:00Z',20)", async (stmt) => {
|
|
@@ -3028,10 +3028,10 @@ describe("ECSqlStatement", () => {
|
|
|
3028
3028
|
it("check column info", async () => {
|
|
3029
3029
|
const env_32 = { stack: [], error: void 0, hasError: false };
|
|
3030
3030
|
try {
|
|
3031
|
-
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">
|
|
3032
|
-
<ECEntityClass typeName="MyClass" modifier="Sealed">
|
|
3033
|
-
<ECProperty propertyName="MyProperty" typeName="string"/>
|
|
3034
|
-
</ECEntityClass>
|
|
3031
|
+
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">
|
|
3032
|
+
<ECEntityClass typeName="MyClass" modifier="Sealed">
|
|
3033
|
+
<ECProperty propertyName="MyProperty" typeName="string"/>
|
|
3034
|
+
</ECEntityClass>
|
|
3035
3035
|
</ECSchema>`), false);
|
|
3036
3036
|
assert.isTrue(ecdb.isOpen);
|
|
3037
3037
|
const id = ecdb.withCachedWriteStatement("INSERT INTO test.MyClass(MyProperty) VALUES('Value')", (stmt) => {
|
|
@@ -3079,36 +3079,36 @@ describe("ECSqlStatement", () => {
|
|
|
3079
3079
|
it("check access string metadata in nested struct", async () => {
|
|
3080
3080
|
const env_33 = { stack: [], error: void 0, hasError: false };
|
|
3081
3081
|
try {
|
|
3082
|
-
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">
|
|
3083
|
-
<ECSchemaReference name="ECDbMap" version="02.00.00" alias="ecdbmap"/>
|
|
3084
|
-
<ECStructClass typeName="InnerStruct">
|
|
3085
|
-
<ECProperty propertyName="a" typeName="string"/>
|
|
3086
|
-
<ECProperty propertyName="b" typeName="string"/>
|
|
3087
|
-
</ECStructClass>
|
|
3088
|
-
<ECStructClass typeName="OuterStruct">
|
|
3089
|
-
<ECStructProperty propertyName="c" typeName="InnerStruct"/>
|
|
3090
|
-
<ECProperty propertyName="d" typeName="string"/>
|
|
3091
|
-
</ECStructClass>
|
|
3092
|
-
<ECEntityClass typeName="Z">
|
|
3093
|
-
<ECCustomAttributes>
|
|
3094
|
-
<ClassMap xmlns="ECDbMap.02.00.00">
|
|
3095
|
-
<MapStrategy>TablePerHierarchy</MapStrategy>
|
|
3096
|
-
</ClassMap>
|
|
3097
|
-
<ShareColumns xmlns="ECDbMap.02.00.00">
|
|
3098
|
-
<MaxSharedColumnsBeforeOverflow>32</MaxSharedColumnsBeforeOverflow>
|
|
3099
|
-
</ShareColumns>
|
|
3100
|
-
</ECCustomAttributes>
|
|
3101
|
-
</ECEntityClass>
|
|
3102
|
-
<ECEntityClass typeName="A">
|
|
3103
|
-
<BaseClass>Z</BaseClass>
|
|
3104
|
-
<ECStructProperty propertyName="f" typeName="OuterStruct"/>
|
|
3105
|
-
<ECProperty propertyName="g" typeName="string"/>
|
|
3106
|
-
</ECEntityClass>
|
|
3107
|
-
<ECEntityClass typeName="B">
|
|
3108
|
-
<BaseClass>Z</BaseClass>
|
|
3109
|
-
<ECStructProperty propertyName="h" typeName="InnerStruct" />
|
|
3110
|
-
<ECProperty propertyName="i" typeName="string"/>
|
|
3111
|
-
</ECEntityClass>
|
|
3082
|
+
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">
|
|
3083
|
+
<ECSchemaReference name="ECDbMap" version="02.00.00" alias="ecdbmap"/>
|
|
3084
|
+
<ECStructClass typeName="InnerStruct">
|
|
3085
|
+
<ECProperty propertyName="a" typeName="string"/>
|
|
3086
|
+
<ECProperty propertyName="b" typeName="string"/>
|
|
3087
|
+
</ECStructClass>
|
|
3088
|
+
<ECStructClass typeName="OuterStruct">
|
|
3089
|
+
<ECStructProperty propertyName="c" typeName="InnerStruct"/>
|
|
3090
|
+
<ECProperty propertyName="d" typeName="string"/>
|
|
3091
|
+
</ECStructClass>
|
|
3092
|
+
<ECEntityClass typeName="Z">
|
|
3093
|
+
<ECCustomAttributes>
|
|
3094
|
+
<ClassMap xmlns="ECDbMap.02.00.00">
|
|
3095
|
+
<MapStrategy>TablePerHierarchy</MapStrategy>
|
|
3096
|
+
</ClassMap>
|
|
3097
|
+
<ShareColumns xmlns="ECDbMap.02.00.00">
|
|
3098
|
+
<MaxSharedColumnsBeforeOverflow>32</MaxSharedColumnsBeforeOverflow>
|
|
3099
|
+
</ShareColumns>
|
|
3100
|
+
</ECCustomAttributes>
|
|
3101
|
+
</ECEntityClass>
|
|
3102
|
+
<ECEntityClass typeName="A">
|
|
3103
|
+
<BaseClass>Z</BaseClass>
|
|
3104
|
+
<ECStructProperty propertyName="f" typeName="OuterStruct"/>
|
|
3105
|
+
<ECProperty propertyName="g" typeName="string"/>
|
|
3106
|
+
</ECEntityClass>
|
|
3107
|
+
<ECEntityClass typeName="B">
|
|
3108
|
+
<BaseClass>Z</BaseClass>
|
|
3109
|
+
<ECStructProperty propertyName="h" typeName="InnerStruct" />
|
|
3110
|
+
<ECProperty propertyName="i" typeName="string"/>
|
|
3111
|
+
</ECEntityClass>
|
|
3112
3112
|
</ECSchema>`), false);
|
|
3113
3113
|
assert.isTrue(ecdb.isOpen);
|
|
3114
3114
|
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) => {
|
|
@@ -3222,26 +3222,26 @@ describe("ECSqlStatement", () => {
|
|
|
3222
3222
|
it("ecsql statements with QueryBinder", async () => {
|
|
3223
3223
|
const env_34 = { stack: [], error: void 0, hasError: false };
|
|
3224
3224
|
try {
|
|
3225
|
-
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">
|
|
3226
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
3227
|
-
<ECProperty propertyName="booleanProperty" typeName="boolean"/>
|
|
3228
|
-
<ECProperty propertyName="blobProperty" typeName="binary"/>
|
|
3229
|
-
<ECProperty propertyName="doubleProperty" typeName="double"/>
|
|
3230
|
-
<ECProperty propertyName="customIdProperty" typeName="string"/>
|
|
3231
|
-
<ECProperty propertyName="customIdSetProperty" typeName="string"/>
|
|
3232
|
-
<ECProperty propertyName="intProperty" typeName="int"/>
|
|
3233
|
-
<ECProperty propertyName="longProperty" typeName="long"/>
|
|
3234
|
-
<ECProperty propertyName="stringProperty" typeName="string"/>
|
|
3235
|
-
<ECProperty propertyName="nullProperty" typeName="int"/>
|
|
3236
|
-
<ECProperty propertyName="point2dProperty" typeName="point2d"/>
|
|
3237
|
-
<ECProperty propertyName="point3dProperty" typeName="point3d"/>
|
|
3238
|
-
</ECEntityClass>
|
|
3239
|
-
<ECStructClass typeName="Bar" modifier="Sealed">
|
|
3240
|
-
<ECProperty propertyName="structClassProperty" typeName="string"/>
|
|
3241
|
-
</ECStructClass>
|
|
3242
|
-
<ECEntityClass typeName="Baz" modifier="Sealed">
|
|
3243
|
-
<ECStructProperty propertyName="structProperty" typeName="Bar"/>
|
|
3244
|
-
</ECEntityClass>
|
|
3225
|
+
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">
|
|
3226
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
3227
|
+
<ECProperty propertyName="booleanProperty" typeName="boolean"/>
|
|
3228
|
+
<ECProperty propertyName="blobProperty" typeName="binary"/>
|
|
3229
|
+
<ECProperty propertyName="doubleProperty" typeName="double"/>
|
|
3230
|
+
<ECProperty propertyName="customIdProperty" typeName="string"/>
|
|
3231
|
+
<ECProperty propertyName="customIdSetProperty" typeName="string"/>
|
|
3232
|
+
<ECProperty propertyName="intProperty" typeName="int"/>
|
|
3233
|
+
<ECProperty propertyName="longProperty" typeName="long"/>
|
|
3234
|
+
<ECProperty propertyName="stringProperty" typeName="string"/>
|
|
3235
|
+
<ECProperty propertyName="nullProperty" typeName="int"/>
|
|
3236
|
+
<ECProperty propertyName="point2dProperty" typeName="point2d"/>
|
|
3237
|
+
<ECProperty propertyName="point3dProperty" typeName="point3d"/>
|
|
3238
|
+
</ECEntityClass>
|
|
3239
|
+
<ECStructClass typeName="Bar" modifier="Sealed">
|
|
3240
|
+
<ECProperty propertyName="structClassProperty" typeName="string"/>
|
|
3241
|
+
</ECStructClass>
|
|
3242
|
+
<ECEntityClass typeName="Baz" modifier="Sealed">
|
|
3243
|
+
<ECStructProperty propertyName="structProperty" typeName="Bar"/>
|
|
3244
|
+
</ECEntityClass>
|
|
3245
3245
|
</ECSchema>`), false);
|
|
3246
3246
|
assert.isTrue(ecdb.isOpen);
|
|
3247
3247
|
const booleanValue = true;
|
|
@@ -3255,7 +3255,7 @@ describe("ECSqlStatement", () => {
|
|
|
3255
3255
|
const point2dValue = new Point2d(10, 20);
|
|
3256
3256
|
const point3dValue = new Point3d(15, 30, 45);
|
|
3257
3257
|
const structValue = { structClassProperty: "test string value for struct property" };
|
|
3258
|
-
let r = await ecdb.withCachedWriteStatement(`INSERT INTO ts.Foo(booleanProperty, blobProperty, doubleProperty, customIdProperty, customIdSetProperty, intProperty, longProperty, stringProperty, nullProperty, point2dProperty, point3dProperty)
|
|
3258
|
+
let r = await ecdb.withCachedWriteStatement(`INSERT INTO ts.Foo(booleanProperty, blobProperty, doubleProperty, customIdProperty, customIdSetProperty, intProperty, longProperty, stringProperty, nullProperty, point2dProperty, point3dProperty)
|
|
3259
3259
|
VALUES(:booleanValue, :blobValue, :doubleValue, :customIdValue, :customIdSetValue, :intValue, :longValue, :stringValue, :nullValue, :point2dValue, :point3dValue)`, async (stmt) => {
|
|
3260
3260
|
stmt.bindBoolean("booleanValue", booleanValue);
|
|
3261
3261
|
stmt.bindBlob("blobValue", blobValue);
|
|
@@ -3284,8 +3284,8 @@ describe("ECSqlStatement", () => {
|
|
|
3284
3284
|
params.bindPoint2d("point2dValue", point2dValue);
|
|
3285
3285
|
params.bindPoint3d("point3dValue", point3dValue);
|
|
3286
3286
|
params.bindIdSet("customIdSetValue", customIdSetValue);
|
|
3287
|
-
let reader = ecdb.createQueryReader(`SELECT booleanProperty, blobProperty, doubleProperty, customIdProperty, customIdSetProperty, intProperty, longProperty, stringProperty, nullProperty, point2dProperty, point3dProperty FROM ts.Foo
|
|
3288
|
-
WHERE booleanProperty = :booleanValue AND blobProperty = :blobValue AND doubleProperty = :doubleValue AND customIdProperty = :customIdValue AND InVirtualSet(:customIdSetValue, customIdSetProperty) AND
|
|
3287
|
+
let reader = ecdb.createQueryReader(`SELECT booleanProperty, blobProperty, doubleProperty, customIdProperty, customIdSetProperty, intProperty, longProperty, stringProperty, nullProperty, point2dProperty, point3dProperty FROM ts.Foo
|
|
3288
|
+
WHERE booleanProperty = :booleanValue AND blobProperty = :blobValue AND doubleProperty = :doubleValue AND customIdProperty = :customIdValue AND InVirtualSet(:customIdSetValue, customIdSetProperty) AND
|
|
3289
3289
|
intProperty = :intValue AND longProperty = :longValue AND stringProperty = :stringValue AND point2dProperty = :point2dValue AND point3dProperty = :point3dValue`, params);
|
|
3290
3290
|
const row = (await reader.toArray())[0];
|
|
3291
3291
|
assert.isNotNull(row);
|
|
@@ -3327,12 +3327,12 @@ describe("ECSqlStatement", () => {
|
|
|
3327
3327
|
it("Statement closed with WithWriteStatement", async () => {
|
|
3328
3328
|
const env_35 = { stack: [], error: void 0, hasError: false };
|
|
3329
3329
|
try {
|
|
3330
|
-
const ecdb = __addDisposableResource(env_35, ECDbTestHelper.createECDb(outDir, "test_hang.ecdb", `<?xml version="1.0" encoding="UTF-8"?>
|
|
3331
|
-
<ECSchema schemaName="TestSchema" alias="Test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
3332
|
-
<ECEntityClass typeName="X">
|
|
3333
|
-
<ECProperty propertyName="Label" typeName="string" />
|
|
3334
|
-
</ECEntityClass>
|
|
3335
|
-
</ECSchema>
|
|
3330
|
+
const ecdb = __addDisposableResource(env_35, ECDbTestHelper.createECDb(outDir, "test_hang.ecdb", `<?xml version="1.0" encoding="UTF-8"?>
|
|
3331
|
+
<ECSchema schemaName="TestSchema" alias="Test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
3332
|
+
<ECEntityClass typeName="X">
|
|
3333
|
+
<ECProperty propertyName="Label" typeName="string" />
|
|
3334
|
+
</ECEntityClass>
|
|
3335
|
+
</ECSchema>
|
|
3336
3336
|
`), false);
|
|
3337
3337
|
assert.isTrue(ecdb.isOpen);
|
|
3338
3338
|
ecdb.withWriteStatement(`INSERT INTO Test.X (Label) VALUES (?)`, (stmt) => {
|
|
@@ -3363,40 +3363,40 @@ describe("ECSqlStatement", () => {
|
|
|
3363
3363
|
let childHasFriendsClassId;
|
|
3364
3364
|
let validRelClassId;
|
|
3365
3365
|
before(async () => {
|
|
3366
|
-
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">
|
|
3367
|
-
|
|
3368
|
-
<ECEntityClass typeName="Parent" modifier="Sealed">
|
|
3369
|
-
<ECProperty propertyName="Code" typeName="string"/>
|
|
3370
|
-
</ECEntityClass>
|
|
3371
|
-
|
|
3372
|
-
<ECEntityClass typeName="ChildTemplate" modifier="Abstract">
|
|
3373
|
-
<ECProperty propertyName="Name" typeName="string"/>
|
|
3374
|
-
<ECNavigationProperty propertyName="Parent" relationshipName="ParentHasChildren" direction="backward"/>
|
|
3375
|
-
</ECEntityClass>
|
|
3376
|
-
|
|
3377
|
-
<ECEntityClass typeName="Child" modifier="Sealed">
|
|
3378
|
-
<BaseClass>ChildTemplate</BaseClass>
|
|
3379
|
-
<ECProperty propertyName="Age" typeName="int"/>
|
|
3380
|
-
<ECNavigationProperty propertyName="Friends" relationshipName="ChildHasFriends" direction="backward"/>
|
|
3381
|
-
</ECEntityClass>
|
|
3382
|
-
|
|
3383
|
-
<ECRelationshipClass typeName="ParentHasChildren" modifier="None" strength="embedding">
|
|
3384
|
-
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
3385
|
-
<Class class="Parent"/>
|
|
3386
|
-
</Source>
|
|
3387
|
-
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
3388
|
-
<Class class="ChildTemplate"/>
|
|
3389
|
-
</Target>
|
|
3390
|
-
</ECRelationshipClass>
|
|
3391
|
-
|
|
3392
|
-
<ECRelationshipClass typeName="ChildHasFriends" modifier="None" strength="embedding">
|
|
3393
|
-
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
3394
|
-
<Class class="Child"/>
|
|
3395
|
-
</Source>
|
|
3396
|
-
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
3397
|
-
<Class class="Child"/>
|
|
3398
|
-
</Target>
|
|
3399
|
-
</ECRelationshipClass>
|
|
3366
|
+
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">
|
|
3367
|
+
|
|
3368
|
+
<ECEntityClass typeName="Parent" modifier="Sealed">
|
|
3369
|
+
<ECProperty propertyName="Code" typeName="string"/>
|
|
3370
|
+
</ECEntityClass>
|
|
3371
|
+
|
|
3372
|
+
<ECEntityClass typeName="ChildTemplate" modifier="Abstract">
|
|
3373
|
+
<ECProperty propertyName="Name" typeName="string"/>
|
|
3374
|
+
<ECNavigationProperty propertyName="Parent" relationshipName="ParentHasChildren" direction="backward"/>
|
|
3375
|
+
</ECEntityClass>
|
|
3376
|
+
|
|
3377
|
+
<ECEntityClass typeName="Child" modifier="Sealed">
|
|
3378
|
+
<BaseClass>ChildTemplate</BaseClass>
|
|
3379
|
+
<ECProperty propertyName="Age" typeName="int"/>
|
|
3380
|
+
<ECNavigationProperty propertyName="Friends" relationshipName="ChildHasFriends" direction="backward"/>
|
|
3381
|
+
</ECEntityClass>
|
|
3382
|
+
|
|
3383
|
+
<ECRelationshipClass typeName="ParentHasChildren" modifier="None" strength="embedding">
|
|
3384
|
+
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
3385
|
+
<Class class="Parent"/>
|
|
3386
|
+
</Source>
|
|
3387
|
+
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
3388
|
+
<Class class="ChildTemplate"/>
|
|
3389
|
+
</Target>
|
|
3390
|
+
</ECRelationshipClass>
|
|
3391
|
+
|
|
3392
|
+
<ECRelationshipClass typeName="ChildHasFriends" modifier="None" strength="embedding">
|
|
3393
|
+
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
3394
|
+
<Class class="Child"/>
|
|
3395
|
+
</Source>
|
|
3396
|
+
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
3397
|
+
<Class class="Child"/>
|
|
3398
|
+
</Target>
|
|
3399
|
+
</ECRelationshipClass>
|
|
3400
3400
|
</ECSchema>`);
|
|
3401
3401
|
assert.isTrue(ecdb.isOpen);
|
|
3402
3402
|
let reader = ecdb.createQueryReader("SELECT ECInstanceId FROM meta.ECClassDef WHERE Name='Parent'");
|