@itwin/core-backend 5.0.0-dev.95 → 5.0.0-dev.97
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 +6 -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.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 +242 -242
- package/lib/cjs/ChangesetECAdaptor.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/ECSqlStatement.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/HubMock.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/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/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/TextAnnotationElement.js.map +1 -1
- package/lib/cjs/TextAnnotationGeometry.js.map +1 -1
- package/lib/cjs/TextAnnotationLayout.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/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.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/FontFileImpl.js.map +1 -1
- package/lib/cjs/internal/IModelDbFontsImpl.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/ServerBasedLocks.js.map +1 -1
- package/lib/cjs/internal/Symbols.js.map +1 -1
- package/lib/cjs/internal/cross-package.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/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/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 +242 -242
- package/lib/esm/ChangesetECAdaptor.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/ECSqlStatement.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/HubMock.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/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/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/TextAnnotationElement.js.map +1 -1
- package/lib/esm/TextAnnotationGeometry.js.map +1 -1
- package/lib/esm/TextAnnotationLayout.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/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/FontFileImpl.js.map +1 -1
- package/lib/esm/internal/IModelDbFontsImpl.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/ServerBasedLocks.js.map +1 -1
- package/lib/esm/internal/Symbols.js.map +1 -1
- package/lib/esm/internal/cross-package.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/AttachDb.test.js +11 -11
- package/lib/esm/test/AttachDb.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/TestChangeSetUtility.js.map +1 -1
- package/lib/esm/test/TestUtils.js.map +1 -1
- package/lib/esm/test/annotations/TextAnnotation.test.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/ConcurrentQueryLoad.test.js +15 -15
- package/lib/esm/test/ecdb/ConcurrentQueryLoad.test.js.map +1 -1
- package/lib/esm/test/ecdb/ECDb.test.js +57 -57
- 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 +7 -7
- package/lib/esm/test/ecdb/ECSqlQuery.test.js.map +1 -1
- package/lib/esm/test/ecdb/ECSqlReader.test.js +16 -16
- package/lib/esm/test/ecdb/ECSqlReader.test.js.map +1 -1
- package/lib/esm/test/ecdb/ECSqlStatement.test.js +292 -292
- package/lib/esm/test/ecdb/ECSqlStatement.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/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/BriefcaseManager.test.js.map +1 -1
- package/lib/esm/test/hubaccess/CheckpointManager.test.js.map +1 -1
- package/lib/esm/test/imageData.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.map +1 -1
- package/lib/esm/test/imodel/ProjectExtents.test.js.map +1 -1
- package/lib/esm/test/imodel/SchemaXmlImport.test.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 +71 -71
- 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.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 +28 -28
- 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/DisplayStyle.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/IModelWrite.test.js +27 -27
- package/lib/esm/test/standalone/IModelWrite.test.js.map +1 -1
- package/lib/esm/test/standalone/InlineGeometryPartReferences.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/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/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/workspace/Settings.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 +12 -12
|
@@ -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.withStatement("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.withStatement("INSERT INTO ts.Foo(n,dt,fooId) VALUES(20,TIMESTAMP '2018-10-18T12:00:00Z',20)", async (stmt) => {
|
|
@@ -189,10 +189,10 @@ describe("ECSqlStatement", () => {
|
|
|
189
189
|
it("should page results", async () => {
|
|
190
190
|
const env_4 = { stack: [], error: void 0, hasError: false };
|
|
191
191
|
try {
|
|
192
|
-
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">
|
|
193
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
194
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
195
|
-
</ECEntityClass>
|
|
192
|
+
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">
|
|
193
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
194
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
195
|
+
</ECEntityClass>
|
|
196
196
|
</ECSchema>`), false);
|
|
197
197
|
assert.isTrue(ecdb.isOpen);
|
|
198
198
|
const ROW_COUNT = 27;
|
|
@@ -235,10 +235,10 @@ describe("ECSqlStatement", () => {
|
|
|
235
235
|
it("paging use cache statement queryRows()", async () => {
|
|
236
236
|
const env_5 = { stack: [], error: void 0, hasError: false };
|
|
237
237
|
try {
|
|
238
|
-
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">
|
|
239
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
240
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
241
|
-
</ECEntityClass>
|
|
238
|
+
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">
|
|
239
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
240
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
241
|
+
</ECEntityClass>
|
|
242
242
|
</ECSchema>`), false);
|
|
243
243
|
assert.isTrue(ecdb.isOpen);
|
|
244
244
|
const ROW_COUNT = 100;
|
|
@@ -274,10 +274,10 @@ describe("ECSqlStatement", () => {
|
|
|
274
274
|
it("should restart query", async () => {
|
|
275
275
|
const env_6 = { stack: [], error: void 0, hasError: false };
|
|
276
276
|
try {
|
|
277
|
-
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">
|
|
278
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
279
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
280
|
-
</ECEntityClass>
|
|
277
|
+
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">
|
|
278
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
279
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
280
|
+
</ECEntityClass>
|
|
281
281
|
</ECSchema>`), false);
|
|
282
282
|
assert.isTrue(ecdb.isOpen);
|
|
283
283
|
const ROW_COUNT = 100;
|
|
@@ -338,10 +338,10 @@ describe("ECSqlStatement", () => {
|
|
|
338
338
|
it("should use cache statement for query()", async () => {
|
|
339
339
|
const env_7 = { stack: [], error: void 0, hasError: false };
|
|
340
340
|
try {
|
|
341
|
-
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">
|
|
342
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
343
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
344
|
-
</ECEntityClass>
|
|
341
|
+
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">
|
|
342
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
343
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
344
|
+
</ECEntityClass>
|
|
345
345
|
</ECSchema>`), false);
|
|
346
346
|
assert.isTrue(ecdb.isOpen);
|
|
347
347
|
const ROW_COUNT = 27;
|
|
@@ -376,10 +376,10 @@ describe("ECSqlStatement", () => {
|
|
|
376
376
|
it("concurrent query binding", async () => {
|
|
377
377
|
const env_8 = { stack: [], error: void 0, hasError: false };
|
|
378
378
|
try {
|
|
379
|
-
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">
|
|
380
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
381
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
382
|
-
</ECEntityClass>
|
|
379
|
+
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">
|
|
380
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
381
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
382
|
+
</ECEntityClass>
|
|
383
383
|
</ECSchema>`), false);
|
|
384
384
|
assert.isTrue(ecdb.isOpen);
|
|
385
385
|
for (let i = 1; i <= 5; i++) {
|
|
@@ -419,10 +419,10 @@ describe("ECSqlStatement", () => {
|
|
|
419
419
|
it("check HextoId() and IdToHex() ecsql functions", async () => {
|
|
420
420
|
const env_9 = { stack: [], error: void 0, hasError: false };
|
|
421
421
|
try {
|
|
422
|
-
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">
|
|
423
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
424
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
425
|
-
</ECEntityClass>
|
|
422
|
+
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">
|
|
423
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
424
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
425
|
+
</ECEntityClass>
|
|
426
426
|
</ECSchema>`), false);
|
|
427
427
|
assert.isTrue(ecdb.isOpen);
|
|
428
428
|
for (let i = 1; i <= 2; i++) {
|
|
@@ -448,10 +448,10 @@ describe("ECSqlStatement", () => {
|
|
|
448
448
|
it("should bind BeGuid", async () => {
|
|
449
449
|
const env_10 = { stack: [], error: void 0, hasError: false };
|
|
450
450
|
try {
|
|
451
|
-
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">
|
|
452
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
453
|
-
<ECProperty propertyName="guid" typeName="binary" extendedTypeName="BeGuid"/>
|
|
454
|
-
</ECEntityClass>
|
|
451
|
+
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">
|
|
452
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
453
|
+
<ECProperty propertyName="guid" typeName="binary" extendedTypeName="BeGuid"/>
|
|
454
|
+
</ECEntityClass>
|
|
455
455
|
</ECSchema>`), false);
|
|
456
456
|
assert.isTrue(ecdb.isOpen);
|
|
457
457
|
const maxRows = 10;
|
|
@@ -619,12 +619,12 @@ describe("ECSqlStatement", () => {
|
|
|
619
619
|
slm.append().error().category("ECDb").message(/String must be a valid ISO 8601 date, time or timestamp/gm);
|
|
620
620
|
slm.append().error().category("ECDb").message(/String must be a valid ISO 8601 date, time or timestamp/gm);
|
|
621
621
|
slm.append().error().category("ECDb").message(/only BindDateTime or BindText can be called for a column of the DateTime type/gm);
|
|
622
|
-
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">
|
|
623
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
624
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
625
|
-
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
626
|
-
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
627
|
-
</ECEntityClass>
|
|
622
|
+
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">
|
|
623
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
624
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
625
|
+
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
626
|
+
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
627
|
+
</ECEntityClass>
|
|
628
628
|
</ECSchema>`), false);
|
|
629
629
|
assert.isTrue(ecdb.isOpen);
|
|
630
630
|
const r = ecdb.withPreparedStatement("INSERT INTO ts.Foo(n,dt,fooId) VALUES(20,TIMESTAMP '2018-10-18T12:00:00Z',20)", (stmt) => {
|
|
@@ -858,14 +858,14 @@ describe("ECSqlStatement", () => {
|
|
|
858
858
|
it("should bind numbers", async () => {
|
|
859
859
|
const env_13 = { stack: [], error: void 0, hasError: false };
|
|
860
860
|
try {
|
|
861
|
-
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">
|
|
862
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
863
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
864
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
865
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
866
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
867
|
-
<ECProperty propertyName="Description" typeName="string"/>
|
|
868
|
-
</ECEntityClass>
|
|
861
|
+
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">
|
|
862
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
863
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
864
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
865
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
866
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
867
|
+
<ECProperty propertyName="Description" typeName="string"/>
|
|
868
|
+
</ECEntityClass>
|
|
869
869
|
</ECSchema>`), false);
|
|
870
870
|
assert.isTrue(ecdb.isOpen);
|
|
871
871
|
const doubleVal = 3.5;
|
|
@@ -1286,32 +1286,32 @@ describe("ECSqlStatement", () => {
|
|
|
1286
1286
|
it("should bind primitives", async () => {
|
|
1287
1287
|
const env_14 = { stack: [], error: void 0, hasError: false };
|
|
1288
1288
|
try {
|
|
1289
|
-
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">
|
|
1290
|
-
<ECStructClass typeName="MyStruct" modifier="Sealed">
|
|
1291
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
1292
|
-
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
1293
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
1294
|
-
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
1295
|
-
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
1296
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
1297
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
1298
|
-
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
1299
|
-
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
1300
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
1301
|
-
</ECStructClass>
|
|
1302
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1303
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
1304
|
-
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
1305
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
1306
|
-
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
1307
|
-
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
1308
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
1309
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
1310
|
-
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
1311
|
-
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
1312
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
1313
|
-
<ECStructProperty propertyName="Struct" typeName="MyStruct"/>
|
|
1314
|
-
</ECEntityClass>
|
|
1289
|
+
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">
|
|
1290
|
+
<ECStructClass typeName="MyStruct" modifier="Sealed">
|
|
1291
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
1292
|
+
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
1293
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
1294
|
+
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
1295
|
+
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
1296
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
1297
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
1298
|
+
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
1299
|
+
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
1300
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
1301
|
+
</ECStructClass>
|
|
1302
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1303
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
1304
|
+
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
1305
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
1306
|
+
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
1307
|
+
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
1308
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
1309
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
1310
|
+
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
1311
|
+
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
1312
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
1313
|
+
<ECStructProperty propertyName="Struct" typeName="MyStruct"/>
|
|
1314
|
+
</ECEntityClass>
|
|
1315
1315
|
</ECSchema>`), false);
|
|
1316
1316
|
assert.isTrue(ecdb.isOpen);
|
|
1317
1317
|
const boolVal = true;
|
|
@@ -1455,22 +1455,22 @@ describe("ECSqlStatement", () => {
|
|
|
1455
1455
|
it("should bind structs", async () => {
|
|
1456
1456
|
const env_15 = { stack: [], error: void 0, hasError: false };
|
|
1457
1457
|
try {
|
|
1458
|
-
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">
|
|
1459
|
-
<ECStructClass typeName="MyStruct" modifier="Sealed">
|
|
1460
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
1461
|
-
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
1462
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
1463
|
-
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
1464
|
-
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
1465
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
1466
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
1467
|
-
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
1468
|
-
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
1469
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
1470
|
-
</ECStructClass>
|
|
1471
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1472
|
-
<ECStructProperty propertyName="Struct" typeName="MyStruct"/>
|
|
1473
|
-
</ECEntityClass>
|
|
1458
|
+
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">
|
|
1459
|
+
<ECStructClass typeName="MyStruct" modifier="Sealed">
|
|
1460
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
1461
|
+
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
1462
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
1463
|
+
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
1464
|
+
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
1465
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
1466
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
1467
|
+
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
1468
|
+
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
1469
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
1470
|
+
</ECStructClass>
|
|
1471
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1472
|
+
<ECStructProperty propertyName="Struct" typeName="MyStruct"/>
|
|
1473
|
+
</ECEntityClass>
|
|
1474
1474
|
</ECSchema>`), false);
|
|
1475
1475
|
assert.isTrue(ecdb.isOpen);
|
|
1476
1476
|
const structVal = {
|
|
@@ -1549,16 +1549,16 @@ describe("ECSqlStatement", () => {
|
|
|
1549
1549
|
it("should bind arrays", async () => {
|
|
1550
1550
|
const env_16 = { stack: [], error: void 0, hasError: false };
|
|
1551
1551
|
try {
|
|
1552
|
-
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">
|
|
1553
|
-
<ECStructClass typeName="Location" modifier="Sealed">
|
|
1554
|
-
<ECProperty propertyName="City" typeName="string"/>
|
|
1555
|
-
<ECProperty propertyName="Zip" typeName="int"/>
|
|
1556
|
-
</ECStructClass>
|
|
1557
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1558
|
-
<ECArrayProperty propertyName="I_Array" typeName="int"/>
|
|
1559
|
-
<ECArrayProperty propertyName="Dt_Array" typeName="dateTime"/>
|
|
1560
|
-
<ECStructArrayProperty propertyName="Addresses" typeName="Location"/>
|
|
1561
|
-
</ECEntityClass>
|
|
1552
|
+
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">
|
|
1553
|
+
<ECStructClass typeName="Location" modifier="Sealed">
|
|
1554
|
+
<ECProperty propertyName="City" typeName="string"/>
|
|
1555
|
+
<ECProperty propertyName="Zip" typeName="int"/>
|
|
1556
|
+
</ECStructClass>
|
|
1557
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1558
|
+
<ECArrayProperty propertyName="I_Array" typeName="int"/>
|
|
1559
|
+
<ECArrayProperty propertyName="Dt_Array" typeName="dateTime"/>
|
|
1560
|
+
<ECStructArrayProperty propertyName="Addresses" typeName="Location"/>
|
|
1561
|
+
</ECEntityClass>
|
|
1562
1562
|
</ECSchema>`), false);
|
|
1563
1563
|
assert.isTrue(ecdb.isOpen);
|
|
1564
1564
|
const intArray = [1, 2, 3];
|
|
@@ -1645,22 +1645,22 @@ describe("ECSqlStatement", () => {
|
|
|
1645
1645
|
it("should bind navigation", async () => {
|
|
1646
1646
|
const env_17 = { stack: [], error: void 0, hasError: false };
|
|
1647
1647
|
try {
|
|
1648
|
-
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">
|
|
1649
|
-
<ECEntityClass typeName="Parent" modifier="Sealed">
|
|
1650
|
-
<ECProperty propertyName="Code" typeName="string"/>
|
|
1651
|
-
</ECEntityClass>
|
|
1652
|
-
<ECEntityClass typeName="Child" modifier="Sealed">
|
|
1653
|
-
<ECProperty propertyName="Name" typeName="string"/>
|
|
1654
|
-
<ECNavigationProperty propertyName="Parent" relationshipName="ParentHasChildren" direction="backward"/>
|
|
1655
|
-
</ECEntityClass>
|
|
1656
|
-
<ECRelationshipClass typeName="ParentHasChildren" modifier="None" strength="embedding">
|
|
1657
|
-
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
1658
|
-
<Class class="Parent"/>
|
|
1659
|
-
</Source>
|
|
1660
|
-
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
1661
|
-
<Class class="Child"/>
|
|
1662
|
-
</Target>
|
|
1663
|
-
</ECRelationshipClass>
|
|
1648
|
+
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">
|
|
1649
|
+
<ECEntityClass typeName="Parent" modifier="Sealed">
|
|
1650
|
+
<ECProperty propertyName="Code" typeName="string"/>
|
|
1651
|
+
</ECEntityClass>
|
|
1652
|
+
<ECEntityClass typeName="Child" modifier="Sealed">
|
|
1653
|
+
<ECProperty propertyName="Name" typeName="string"/>
|
|
1654
|
+
<ECNavigationProperty propertyName="Parent" relationshipName="ParentHasChildren" direction="backward"/>
|
|
1655
|
+
</ECEntityClass>
|
|
1656
|
+
<ECRelationshipClass typeName="ParentHasChildren" modifier="None" strength="embedding">
|
|
1657
|
+
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
1658
|
+
<Class class="Parent"/>
|
|
1659
|
+
</Source>
|
|
1660
|
+
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
1661
|
+
<Class class="Child"/>
|
|
1662
|
+
</Target>
|
|
1663
|
+
</ECRelationshipClass>
|
|
1664
1664
|
</ECSchema>`), false);
|
|
1665
1665
|
assert.isTrue(ecdb.isOpen);
|
|
1666
1666
|
const parentId = ecdb.withStatement("INSERT INTO test.Parent(Code) VALUES('Parent 1')", (stmt) => {
|
|
@@ -1749,10 +1749,10 @@ describe("ECSqlStatement", () => {
|
|
|
1749
1749
|
it("should bind Range3d", async () => {
|
|
1750
1750
|
const env_18 = { stack: [], error: void 0, hasError: false };
|
|
1751
1751
|
try {
|
|
1752
|
-
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">
|
|
1753
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1754
|
-
<ECProperty propertyName="Range3d" typeName="binary"/>
|
|
1755
|
-
</ECEntityClass>
|
|
1752
|
+
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">
|
|
1753
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
1754
|
+
<ECProperty propertyName="Range3d" typeName="binary"/>
|
|
1755
|
+
</ECEntityClass>
|
|
1756
1756
|
</ECSchema>`), false);
|
|
1757
1757
|
assert.isTrue(ecdb.isOpen);
|
|
1758
1758
|
const id = ecdb.withPreparedStatement("INSERT INTO test.Foo([Range3d]) VALUES(?)", (stmt) => {
|
|
@@ -1973,17 +1973,17 @@ describe("ECSqlStatement", () => {
|
|
|
1973
1973
|
it("check ECSqlBinder life time", async () => {
|
|
1974
1974
|
const env_22 = { stack: [], error: void 0, hasError: false };
|
|
1975
1975
|
try {
|
|
1976
|
-
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">
|
|
1977
|
-
<ECStructClass typeName="Address" modifier="Sealed">
|
|
1978
|
-
<ECProperty propertyName="Street" typeName="string"/>
|
|
1979
|
-
<ECProperty propertyName="City" typeName="string"/>
|
|
1980
|
-
<ECProperty propertyName="Zip" typeName="int"/>
|
|
1981
|
-
</ECStructClass>
|
|
1982
|
-
<ECEntityClass typeName="Person" modifier="Sealed">
|
|
1983
|
-
<ECProperty propertyName="Name" typeName="string"/>
|
|
1984
|
-
<ECProperty propertyName="Age" typeName="int"/>
|
|
1985
|
-
<ECStructProperty propertyName="Location" typeName="Address"/>
|
|
1986
|
-
</ECEntityClass>
|
|
1976
|
+
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">
|
|
1977
|
+
<ECStructClass typeName="Address" modifier="Sealed">
|
|
1978
|
+
<ECProperty propertyName="Street" typeName="string"/>
|
|
1979
|
+
<ECProperty propertyName="City" typeName="string"/>
|
|
1980
|
+
<ECProperty propertyName="Zip" typeName="int"/>
|
|
1981
|
+
</ECStructClass>
|
|
1982
|
+
<ECEntityClass typeName="Person" modifier="Sealed">
|
|
1983
|
+
<ECProperty propertyName="Name" typeName="string"/>
|
|
1984
|
+
<ECProperty propertyName="Age" typeName="int"/>
|
|
1985
|
+
<ECStructProperty propertyName="Location" typeName="Address"/>
|
|
1986
|
+
</ECEntityClass>
|
|
1987
1987
|
</ECSchema>`), false);
|
|
1988
1988
|
assert.isTrue(ecdb.isOpen);
|
|
1989
1989
|
let id1, id2;
|
|
@@ -2075,19 +2075,19 @@ describe("ECSqlStatement", () => {
|
|
|
2075
2075
|
it("getRow() with primitives values", async () => {
|
|
2076
2076
|
const env_25 = { stack: [], error: void 0, hasError: false };
|
|
2077
2077
|
try {
|
|
2078
|
-
const ecdb = __addDisposableResource(env_25, ECDbTestHelper.createECDb(outDir, "getprimitives.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2079
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2080
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2081
|
-
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
2082
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
2083
|
-
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
2084
|
-
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
2085
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
2086
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
2087
|
-
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
2088
|
-
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
2089
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
2090
|
-
</ECEntityClass>
|
|
2078
|
+
const ecdb = __addDisposableResource(env_25, ECDbTestHelper.createECDb(outDir, "getprimitives.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2079
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2080
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2081
|
+
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
2082
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
2083
|
+
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
2084
|
+
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
2085
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
2086
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
2087
|
+
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
2088
|
+
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
2089
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
2090
|
+
</ECEntityClass>
|
|
2091
2091
|
</ECSchema>`), false);
|
|
2092
2092
|
assert.isTrue(ecdb.isOpen);
|
|
2093
2093
|
const boolVal = true;
|
|
@@ -2232,10 +2232,10 @@ describe("ECSqlStatement", () => {
|
|
|
2232
2232
|
it("getRow() with abbreviated blobs", async () => {
|
|
2233
2233
|
const env_26 = { stack: [], error: void 0, hasError: false };
|
|
2234
2234
|
try {
|
|
2235
|
-
const ecdb = __addDisposableResource(env_26, ECDbTestHelper.createECDb(outDir, "getblobs.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2236
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2237
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2238
|
-
</ECEntityClass>
|
|
2235
|
+
const ecdb = __addDisposableResource(env_26, ECDbTestHelper.createECDb(outDir, "getblobs.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2236
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2237
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2238
|
+
</ECEntityClass>
|
|
2239
2239
|
</ECSchema>`), false);
|
|
2240
2240
|
assert.isTrue(ecdb.isOpen);
|
|
2241
2241
|
const singleBlobVal = blobVal.slice(0, 1);
|
|
@@ -2337,22 +2337,22 @@ describe("ECSqlStatement", () => {
|
|
|
2337
2337
|
it("getRow() with navigation properties and relationships", async () => {
|
|
2338
2338
|
const env_27 = { stack: [], error: void 0, hasError: false };
|
|
2339
2339
|
try {
|
|
2340
|
-
const ecdb = __addDisposableResource(env_27, ECDbTestHelper.createECDb(outDir, "getnavandrels.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2341
|
-
<ECEntityClass typeName="Parent" modifier="Sealed">
|
|
2342
|
-
<ECProperty propertyName="Code" typeName="string"/>
|
|
2343
|
-
</ECEntityClass>
|
|
2344
|
-
<ECEntityClass typeName="Child" modifier="Sealed">
|
|
2345
|
-
<ECProperty propertyName="Name" typeName="string"/>
|
|
2346
|
-
<ECNavigationProperty propertyName="Parent" relationshipName="ParentHasChildren" direction="backward"/>
|
|
2347
|
-
</ECEntityClass>
|
|
2348
|
-
<ECRelationshipClass typeName="ParentHasChildren" modifier="None" strength="embedding">
|
|
2349
|
-
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
2350
|
-
<Class class="Parent"/>
|
|
2351
|
-
</Source>
|
|
2352
|
-
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
2353
|
-
<Class class="Child"/>
|
|
2354
|
-
</Target>
|
|
2355
|
-
</ECRelationshipClass>
|
|
2340
|
+
const ecdb = __addDisposableResource(env_27, ECDbTestHelper.createECDb(outDir, "getnavandrels.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2341
|
+
<ECEntityClass typeName="Parent" modifier="Sealed">
|
|
2342
|
+
<ECProperty propertyName="Code" typeName="string"/>
|
|
2343
|
+
</ECEntityClass>
|
|
2344
|
+
<ECEntityClass typeName="Child" modifier="Sealed">
|
|
2345
|
+
<ECProperty propertyName="Name" typeName="string"/>
|
|
2346
|
+
<ECNavigationProperty propertyName="Parent" relationshipName="ParentHasChildren" direction="backward"/>
|
|
2347
|
+
</ECEntityClass>
|
|
2348
|
+
<ECRelationshipClass typeName="ParentHasChildren" modifier="None" strength="embedding">
|
|
2349
|
+
<Source multiplicity="(0..1)" roleLabel="has" polymorphic="false">
|
|
2350
|
+
<Class class="Parent"/>
|
|
2351
|
+
</Source>
|
|
2352
|
+
<Target multiplicity="(0..*)" roleLabel="has" polymorphic="false">
|
|
2353
|
+
<Class class="Child"/>
|
|
2354
|
+
</Target>
|
|
2355
|
+
</ECRelationshipClass>
|
|
2356
2356
|
</ECSchema>`), false);
|
|
2357
2357
|
assert.isTrue(ecdb.isOpen);
|
|
2358
2358
|
let rowCount;
|
|
@@ -2470,22 +2470,22 @@ describe("ECSqlStatement", () => {
|
|
|
2470
2470
|
it("getRow() with structs", async () => {
|
|
2471
2471
|
const env_28 = { stack: [], error: void 0, hasError: false };
|
|
2472
2472
|
try {
|
|
2473
|
-
const ecdb = __addDisposableResource(env_28, ECDbTestHelper.createECDb(outDir, "getstructs.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2474
|
-
<ECStructClass typeName="MyStruct" modifier="Sealed">
|
|
2475
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2476
|
-
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
2477
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
2478
|
-
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
2479
|
-
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
2480
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
2481
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
2482
|
-
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
2483
|
-
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
2484
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
2485
|
-
</ECStructClass>
|
|
2486
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2487
|
-
<ECStructProperty propertyName="Struct" typeName="MyStruct"/>
|
|
2488
|
-
</ECEntityClass>
|
|
2473
|
+
const ecdb = __addDisposableResource(env_28, ECDbTestHelper.createECDb(outDir, "getstructs.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2474
|
+
<ECStructClass typeName="MyStruct" modifier="Sealed">
|
|
2475
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2476
|
+
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
2477
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
2478
|
+
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
2479
|
+
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
2480
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
2481
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
2482
|
+
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
2483
|
+
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
2484
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
2485
|
+
</ECStructClass>
|
|
2486
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2487
|
+
<ECStructProperty propertyName="Struct" typeName="MyStruct"/>
|
|
2488
|
+
</ECEntityClass>
|
|
2489
2489
|
</ECSchema>`), false);
|
|
2490
2490
|
assert.isTrue(ecdb.isOpen);
|
|
2491
2491
|
const boolVal = true;
|
|
@@ -2596,19 +2596,19 @@ describe("ECSqlStatement", () => {
|
|
|
2596
2596
|
slm.append().error().category("ECDb").message(/Failed to prepare function expression/gm);
|
|
2597
2597
|
slm.append().error().category("ECDb").message(/Failed to prepare function expression/gm);
|
|
2598
2598
|
slm.append().error().category("ECDb").message(/Step failed for ECSQL/gm);
|
|
2599
|
-
const ecdb = __addDisposableResource(env_29, ECDbTestHelper.createECDb(outDir, "hexstrfunction.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2600
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2601
|
-
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2602
|
-
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
2603
|
-
<ECProperty propertyName="D" typeName="double"/>
|
|
2604
|
-
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
2605
|
-
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
2606
|
-
<ECProperty propertyName="I" typeName="int"/>
|
|
2607
|
-
<ECProperty propertyName="L" typeName="long"/>
|
|
2608
|
-
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
2609
|
-
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
2610
|
-
<ECProperty propertyName="S" typeName="string"/>
|
|
2611
|
-
</ECEntityClass>
|
|
2599
|
+
const ecdb = __addDisposableResource(env_29, ECDbTestHelper.createECDb(outDir, "hexstrfunction.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.1">
|
|
2600
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2601
|
+
<ECProperty propertyName="Bl" typeName="binary"/>
|
|
2602
|
+
<ECProperty propertyName="Bo" typeName="boolean"/>
|
|
2603
|
+
<ECProperty propertyName="D" typeName="double"/>
|
|
2604
|
+
<ECProperty propertyName="Dt" typeName="dateTime"/>
|
|
2605
|
+
<ECProperty propertyName="G" typeName="Bentley.Geometry.Common.IGeometry"/>
|
|
2606
|
+
<ECProperty propertyName="I" typeName="int"/>
|
|
2607
|
+
<ECProperty propertyName="L" typeName="long"/>
|
|
2608
|
+
<ECProperty propertyName="P2d" typeName="Point2d"/>
|
|
2609
|
+
<ECProperty propertyName="P3d" typeName="Point3d"/>
|
|
2610
|
+
<ECProperty propertyName="S" typeName="string"/>
|
|
2611
|
+
</ECEntityClass>
|
|
2612
2612
|
</ECSchema>`), false);
|
|
2613
2613
|
assert.isTrue(ecdb.isOpen);
|
|
2614
2614
|
const expectedRow = {
|
|
@@ -2684,21 +2684,21 @@ describe("ECSqlStatement", () => {
|
|
|
2684
2684
|
it("check ec enums", async () => {
|
|
2685
2685
|
const env_30 = { stack: [], error: void 0, hasError: false };
|
|
2686
2686
|
try {
|
|
2687
|
-
const ecdb = __addDisposableResource(env_30, ECDbTestHelper.createECDb(outDir, "ecenums.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
2688
|
-
<ECEnumeration typeName="Status" backingTypeName="int" isStrict="true">
|
|
2689
|
-
<ECEnumerator name="On" value="1" />
|
|
2690
|
-
<ECEnumerator name="Off" value="2" />
|
|
2691
|
-
</ECEnumeration>
|
|
2692
|
-
<ECEnumeration typeName="Domain" backingTypeName="string" isStrict="true">
|
|
2693
|
-
<ECEnumerator name="Org" value="Org" />
|
|
2694
|
-
<ECEnumerator name="Com" value="Com" />
|
|
2695
|
-
</ECEnumeration>
|
|
2696
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2697
|
-
<ECProperty propertyName="MyStat" typeName="Status"/>
|
|
2698
|
-
<ECArrayProperty propertyName="MyStats" typeName="Status"/>
|
|
2699
|
-
<ECProperty propertyName="MyDomain" typeName="Domain"/>
|
|
2700
|
-
<ECArrayProperty propertyName="MyDomains" typeName="Domain"/>
|
|
2701
|
-
</ECEntityClass>
|
|
2687
|
+
const ecdb = __addDisposableResource(env_30, ECDbTestHelper.createECDb(outDir, "ecenums.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
2688
|
+
<ECEnumeration typeName="Status" backingTypeName="int" isStrict="true">
|
|
2689
|
+
<ECEnumerator name="On" value="1" />
|
|
2690
|
+
<ECEnumerator name="Off" value="2" />
|
|
2691
|
+
</ECEnumeration>
|
|
2692
|
+
<ECEnumeration typeName="Domain" backingTypeName="string" isStrict="true">
|
|
2693
|
+
<ECEnumerator name="Org" value="Org" />
|
|
2694
|
+
<ECEnumerator name="Com" value="Com" />
|
|
2695
|
+
</ECEnumeration>
|
|
2696
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2697
|
+
<ECProperty propertyName="MyStat" typeName="Status"/>
|
|
2698
|
+
<ECArrayProperty propertyName="MyStats" typeName="Status"/>
|
|
2699
|
+
<ECProperty propertyName="MyDomain" typeName="Domain"/>
|
|
2700
|
+
<ECArrayProperty propertyName="MyDomains" typeName="Domain"/>
|
|
2701
|
+
</ECEntityClass>
|
|
2702
2702
|
</ECSchema>`), false);
|
|
2703
2703
|
assert.isTrue(ecdb.isOpen);
|
|
2704
2704
|
const id = ecdb.withPreparedStatement("INSERT INTO test.Foo(MyStat,MyStats,MyDomain,MyDomains) VALUES(test.Status.[On],?,test.Domain.Org,?)", (stmt) => {
|
|
@@ -2792,21 +2792,21 @@ describe("ECSqlStatement", () => {
|
|
|
2792
2792
|
const slm = new SequentialLogMatcher();
|
|
2793
2793
|
slm.append().error().category("ECDb").message(/The value 9 cannot be broken down into a combination of ECEnumerators/gm);
|
|
2794
2794
|
slm.append().error().category("ECDb").message(/The value 'gov,de' cannot be broken down into a combination of ECEnumerators/gm);
|
|
2795
|
-
const ecdb = __addDisposableResource(env_31, ECDbTestHelper.createECDb(outDir, "oredecenums.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
2796
|
-
<ECEnumeration typeName="Color" backingTypeName="int" isStrict="true">
|
|
2797
|
-
<ECEnumerator name="Red" value="1" />
|
|
2798
|
-
<ECEnumerator name="Yellow" value="2" />
|
|
2799
|
-
<ECEnumerator name="Blue" value="4" />
|
|
2800
|
-
</ECEnumeration>
|
|
2801
|
-
<ECEnumeration typeName="Domain" backingTypeName="string" isStrict="true">
|
|
2802
|
-
<ECEnumerator name="Org" value="org" />
|
|
2803
|
-
<ECEnumerator name="Com" value="com" />
|
|
2804
|
-
<ECEnumerator name="Gov" value="gov" />
|
|
2805
|
-
</ECEnumeration>
|
|
2806
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2807
|
-
<ECProperty propertyName="MyColor" typeName="Color"/>
|
|
2808
|
-
<ECProperty propertyName="MyDomain" typeName="Domain"/>
|
|
2809
|
-
</ECEntityClass>
|
|
2795
|
+
const ecdb = __addDisposableResource(env_31, ECDbTestHelper.createECDb(outDir, "oredecenums.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
2796
|
+
<ECEnumeration typeName="Color" backingTypeName="int" isStrict="true">
|
|
2797
|
+
<ECEnumerator name="Red" value="1" />
|
|
2798
|
+
<ECEnumerator name="Yellow" value="2" />
|
|
2799
|
+
<ECEnumerator name="Blue" value="4" />
|
|
2800
|
+
</ECEnumeration>
|
|
2801
|
+
<ECEnumeration typeName="Domain" backingTypeName="string" isStrict="true">
|
|
2802
|
+
<ECEnumerator name="Org" value="org" />
|
|
2803
|
+
<ECEnumerator name="Com" value="com" />
|
|
2804
|
+
<ECEnumerator name="Gov" value="gov" />
|
|
2805
|
+
</ECEnumeration>
|
|
2806
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2807
|
+
<ECProperty propertyName="MyColor" typeName="Color"/>
|
|
2808
|
+
<ECProperty propertyName="MyDomain" typeName="Domain"/>
|
|
2809
|
+
</ECEntityClass>
|
|
2810
2810
|
</ECSchema>`), false);
|
|
2811
2811
|
assert.isTrue(ecdb.isOpen);
|
|
2812
2812
|
const ids = ecdb.withPreparedStatement("INSERT INTO test.Foo(MyColor,MyDomain) VALUES(?,?)", (stmt) => {
|
|
@@ -2932,12 +2932,12 @@ describe("ECSqlStatement", () => {
|
|
|
2932
2932
|
it("should get native sql", async () => {
|
|
2933
2933
|
const env_32 = { stack: [], error: void 0, hasError: false };
|
|
2934
2934
|
try {
|
|
2935
|
-
const ecdb = __addDisposableResource(env_32, ECDbTestHelper.createECDb(outDir, "asyncmethodtest.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
2936
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2937
|
-
<ECProperty propertyName="n" typeName="int"/>
|
|
2938
|
-
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
2939
|
-
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
2940
|
-
</ECEntityClass>
|
|
2935
|
+
const ecdb = __addDisposableResource(env_32, ECDbTestHelper.createECDb(outDir, "asyncmethodtest.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
2936
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
2937
|
+
<ECProperty propertyName="n" typeName="int"/>
|
|
2938
|
+
<ECProperty propertyName="dt" typeName="dateTime"/>
|
|
2939
|
+
<ECProperty propertyName="fooId" typeName="long" extendedTypeName="Id"/>
|
|
2940
|
+
</ECEntityClass>
|
|
2941
2941
|
</ECSchema>`), false);
|
|
2942
2942
|
assert.isTrue(ecdb.isOpen);
|
|
2943
2943
|
const r = await ecdb.withPreparedStatement("INSERT INTO ts.Foo(n,dt,fooId) VALUES(20,TIMESTAMP '2018-10-18T12:00:00Z',20)", async (stmt) => {
|
|
@@ -2960,10 +2960,10 @@ describe("ECSqlStatement", () => {
|
|
|
2960
2960
|
it("check column info", async () => {
|
|
2961
2961
|
const env_33 = { stack: [], error: void 0, hasError: false };
|
|
2962
2962
|
try {
|
|
2963
|
-
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">
|
|
2964
|
-
<ECEntityClass typeName="MyClass" modifier="Sealed">
|
|
2965
|
-
<ECProperty propertyName="MyProperty" typeName="string"/>
|
|
2966
|
-
</ECEntityClass>
|
|
2963
|
+
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">
|
|
2964
|
+
<ECEntityClass typeName="MyClass" modifier="Sealed">
|
|
2965
|
+
<ECProperty propertyName="MyProperty" typeName="string"/>
|
|
2966
|
+
</ECEntityClass>
|
|
2967
2967
|
</ECSchema>`), false);
|
|
2968
2968
|
assert.isTrue(ecdb.isOpen);
|
|
2969
2969
|
const id = ecdb.withPreparedStatement("INSERT INTO test.MyClass(MyProperty) VALUES('Value')", (stmt) => {
|
|
@@ -3006,36 +3006,36 @@ describe("ECSqlStatement", () => {
|
|
|
3006
3006
|
it("check access string metadata in nested struct", async () => {
|
|
3007
3007
|
const env_34 = { stack: [], error: void 0, hasError: false };
|
|
3008
3008
|
try {
|
|
3009
|
-
const ecdb = __addDisposableResource(env_34, ECDbTestHelper.createECDb(outDir, "columnInfo.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
3010
|
-
<ECSchemaReference name="ECDbMap" version="02.00.00" alias="ecdbmap"/>
|
|
3011
|
-
<ECStructClass typeName="InnerStruct">
|
|
3012
|
-
<ECProperty propertyName="a" typeName="string"/>
|
|
3013
|
-
<ECProperty propertyName="b" typeName="string"/>
|
|
3014
|
-
</ECStructClass>
|
|
3015
|
-
<ECStructClass typeName="OuterStruct">
|
|
3016
|
-
<ECStructProperty propertyName="c" typeName="InnerStruct"/>
|
|
3017
|
-
<ECProperty propertyName="d" typeName="string"/>
|
|
3018
|
-
</ECStructClass>
|
|
3019
|
-
<ECEntityClass typeName="Z">
|
|
3020
|
-
<ECCustomAttributes>
|
|
3021
|
-
<ClassMap xmlns="ECDbMap.02.00.00">
|
|
3022
|
-
<MapStrategy>TablePerHierarchy</MapStrategy>
|
|
3023
|
-
</ClassMap>
|
|
3024
|
-
<ShareColumns xmlns="ECDbMap.02.00.00">
|
|
3025
|
-
<MaxSharedColumnsBeforeOverflow>32</MaxSharedColumnsBeforeOverflow>
|
|
3026
|
-
</ShareColumns>
|
|
3027
|
-
</ECCustomAttributes>
|
|
3028
|
-
</ECEntityClass>
|
|
3029
|
-
<ECEntityClass typeName="A">
|
|
3030
|
-
<BaseClass>Z</BaseClass>
|
|
3031
|
-
<ECStructProperty propertyName="f" typeName="OuterStruct"/>
|
|
3032
|
-
<ECProperty propertyName="g" typeName="string"/>
|
|
3033
|
-
</ECEntityClass>
|
|
3034
|
-
<ECEntityClass typeName="B">
|
|
3035
|
-
<BaseClass>Z</BaseClass>
|
|
3036
|
-
<ECStructProperty propertyName="h" typeName="InnerStruct" />
|
|
3037
|
-
<ECProperty propertyName="i" typeName="string"/>
|
|
3038
|
-
</ECEntityClass>
|
|
3009
|
+
const ecdb = __addDisposableResource(env_34, ECDbTestHelper.createECDb(outDir, "columnInfo.ecdb", `<ECSchema schemaName="Test" alias="test" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
3010
|
+
<ECSchemaReference name="ECDbMap" version="02.00.00" alias="ecdbmap"/>
|
|
3011
|
+
<ECStructClass typeName="InnerStruct">
|
|
3012
|
+
<ECProperty propertyName="a" typeName="string"/>
|
|
3013
|
+
<ECProperty propertyName="b" typeName="string"/>
|
|
3014
|
+
</ECStructClass>
|
|
3015
|
+
<ECStructClass typeName="OuterStruct">
|
|
3016
|
+
<ECStructProperty propertyName="c" typeName="InnerStruct"/>
|
|
3017
|
+
<ECProperty propertyName="d" typeName="string"/>
|
|
3018
|
+
</ECStructClass>
|
|
3019
|
+
<ECEntityClass typeName="Z">
|
|
3020
|
+
<ECCustomAttributes>
|
|
3021
|
+
<ClassMap xmlns="ECDbMap.02.00.00">
|
|
3022
|
+
<MapStrategy>TablePerHierarchy</MapStrategy>
|
|
3023
|
+
</ClassMap>
|
|
3024
|
+
<ShareColumns xmlns="ECDbMap.02.00.00">
|
|
3025
|
+
<MaxSharedColumnsBeforeOverflow>32</MaxSharedColumnsBeforeOverflow>
|
|
3026
|
+
</ShareColumns>
|
|
3027
|
+
</ECCustomAttributes>
|
|
3028
|
+
</ECEntityClass>
|
|
3029
|
+
<ECEntityClass typeName="A">
|
|
3030
|
+
<BaseClass>Z</BaseClass>
|
|
3031
|
+
<ECStructProperty propertyName="f" typeName="OuterStruct"/>
|
|
3032
|
+
<ECProperty propertyName="g" typeName="string"/>
|
|
3033
|
+
</ECEntityClass>
|
|
3034
|
+
<ECEntityClass typeName="B">
|
|
3035
|
+
<BaseClass>Z</BaseClass>
|
|
3036
|
+
<ECStructProperty propertyName="h" typeName="InnerStruct" />
|
|
3037
|
+
<ECProperty propertyName="i" typeName="string"/>
|
|
3038
|
+
</ECEntityClass>
|
|
3039
3039
|
</ECSchema>`), false);
|
|
3040
3040
|
assert.isTrue(ecdb.isOpen);
|
|
3041
3041
|
ecdb.withPreparedStatement("INSERT INTO Test.A (f.c.a, f.c.b, f.d, g) VALUES ('f.c.a' ,'f.c.b', 'f.d', 'g')", (stmt) => {
|
|
@@ -3133,26 +3133,26 @@ describe("ECSqlStatement", () => {
|
|
|
3133
3133
|
it("ecsql statements with QueryBinder", async () => {
|
|
3134
3134
|
const env_35 = { stack: [], error: void 0, hasError: false };
|
|
3135
3135
|
try {
|
|
3136
|
-
const ecdb = __addDisposableResource(env_35, ECDbTestHelper.createECDb(outDir, "test.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
3137
|
-
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
3138
|
-
<ECProperty propertyName="booleanProperty" typeName="boolean"/>
|
|
3139
|
-
<ECProperty propertyName="blobProperty" typeName="binary"/>
|
|
3140
|
-
<ECProperty propertyName="doubleProperty" typeName="double"/>
|
|
3141
|
-
<ECProperty propertyName="customIdProperty" typeName="string"/>
|
|
3142
|
-
<ECProperty propertyName="customIdSetProperty" typeName="string"/>
|
|
3143
|
-
<ECProperty propertyName="intProperty" typeName="int"/>
|
|
3144
|
-
<ECProperty propertyName="longProperty" typeName="long"/>
|
|
3145
|
-
<ECProperty propertyName="stringProperty" typeName="string"/>
|
|
3146
|
-
<ECProperty propertyName="nullProperty" typeName="int"/>
|
|
3147
|
-
<ECProperty propertyName="point2dProperty" typeName="point2d"/>
|
|
3148
|
-
<ECProperty propertyName="point3dProperty" typeName="point3d"/>
|
|
3149
|
-
</ECEntityClass>
|
|
3150
|
-
<ECStructClass typeName="Bar" modifier="Sealed">
|
|
3151
|
-
<ECProperty propertyName="structClassProperty" typeName="string"/>
|
|
3152
|
-
</ECStructClass>
|
|
3153
|
-
<ECEntityClass typeName="Baz" modifier="Sealed">
|
|
3154
|
-
<ECStructProperty propertyName="structProperty" typeName="Bar"/>
|
|
3155
|
-
</ECEntityClass>
|
|
3136
|
+
const ecdb = __addDisposableResource(env_35, ECDbTestHelper.createECDb(outDir, "test.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
|
|
3137
|
+
<ECEntityClass typeName="Foo" modifier="Sealed">
|
|
3138
|
+
<ECProperty propertyName="booleanProperty" typeName="boolean"/>
|
|
3139
|
+
<ECProperty propertyName="blobProperty" typeName="binary"/>
|
|
3140
|
+
<ECProperty propertyName="doubleProperty" typeName="double"/>
|
|
3141
|
+
<ECProperty propertyName="customIdProperty" typeName="string"/>
|
|
3142
|
+
<ECProperty propertyName="customIdSetProperty" typeName="string"/>
|
|
3143
|
+
<ECProperty propertyName="intProperty" typeName="int"/>
|
|
3144
|
+
<ECProperty propertyName="longProperty" typeName="long"/>
|
|
3145
|
+
<ECProperty propertyName="stringProperty" typeName="string"/>
|
|
3146
|
+
<ECProperty propertyName="nullProperty" typeName="int"/>
|
|
3147
|
+
<ECProperty propertyName="point2dProperty" typeName="point2d"/>
|
|
3148
|
+
<ECProperty propertyName="point3dProperty" typeName="point3d"/>
|
|
3149
|
+
</ECEntityClass>
|
|
3150
|
+
<ECStructClass typeName="Bar" modifier="Sealed">
|
|
3151
|
+
<ECProperty propertyName="structClassProperty" typeName="string"/>
|
|
3152
|
+
</ECStructClass>
|
|
3153
|
+
<ECEntityClass typeName="Baz" modifier="Sealed">
|
|
3154
|
+
<ECStructProperty propertyName="structProperty" typeName="Bar"/>
|
|
3155
|
+
</ECEntityClass>
|
|
3156
3156
|
</ECSchema>`), false);
|
|
3157
3157
|
assert.isTrue(ecdb.isOpen);
|
|
3158
3158
|
const booleanValue = true;
|
|
@@ -3166,7 +3166,7 @@ describe("ECSqlStatement", () => {
|
|
|
3166
3166
|
const point2dValue = new Point2d(10, 20);
|
|
3167
3167
|
const point3dValue = new Point3d(15, 30, 45);
|
|
3168
3168
|
const structValue = { structClassProperty: "test string value for struct property" };
|
|
3169
|
-
let r = await ecdb.withPreparedStatement(`INSERT INTO ts.Foo(booleanProperty, blobProperty, doubleProperty, customIdProperty, customIdSetProperty, intProperty, longProperty, stringProperty, nullProperty, point2dProperty, point3dProperty)
|
|
3169
|
+
let r = await ecdb.withPreparedStatement(`INSERT INTO ts.Foo(booleanProperty, blobProperty, doubleProperty, customIdProperty, customIdSetProperty, intProperty, longProperty, stringProperty, nullProperty, point2dProperty, point3dProperty)
|
|
3170
3170
|
VALUES(:booleanValue, :blobValue, :doubleValue, :customIdValue, :customIdSetValue, :intValue, :longValue, :stringValue, :nullValue, :point2dValue, :point3dValue)`, async (stmt) => {
|
|
3171
3171
|
stmt.bindBoolean("booleanValue", booleanValue);
|
|
3172
3172
|
stmt.bindBlob("blobValue", blobValue);
|
|
@@ -3195,8 +3195,8 @@ describe("ECSqlStatement", () => {
|
|
|
3195
3195
|
params.bindPoint2d("point2dValue", point2dValue);
|
|
3196
3196
|
params.bindPoint3d("point3dValue", point3dValue);
|
|
3197
3197
|
params.bindIdSet("customIdSetValue", customIdSetValue);
|
|
3198
|
-
let reader = ecdb.createQueryReader(`SELECT booleanProperty, blobProperty, doubleProperty, customIdProperty, customIdSetProperty, intProperty, longProperty, stringProperty, nullProperty, point2dProperty, point3dProperty FROM ts.Foo
|
|
3199
|
-
WHERE booleanProperty = :booleanValue AND blobProperty = :blobValue AND doubleProperty = :doubleValue AND customIdProperty = :customIdValue AND InVirtualSet(:customIdSetValue, customIdSetProperty) AND
|
|
3198
|
+
let reader = ecdb.createQueryReader(`SELECT booleanProperty, blobProperty, doubleProperty, customIdProperty, customIdSetProperty, intProperty, longProperty, stringProperty, nullProperty, point2dProperty, point3dProperty FROM ts.Foo
|
|
3199
|
+
WHERE booleanProperty = :booleanValue AND blobProperty = :blobValue AND doubleProperty = :doubleValue AND customIdProperty = :customIdValue AND InVirtualSet(:customIdSetValue, customIdSetProperty) AND
|
|
3200
3200
|
intProperty = :intValue AND longProperty = :longValue AND stringProperty = :stringValue AND point2dProperty = :point2dValue AND point3dProperty = :point3dValue`, params);
|
|
3201
3201
|
const row = (await reader.toArray())[0];
|
|
3202
3202
|
assert.isNotNull(row);
|