@itwin/core-backend 3.0.0-dev.127 → 3.0.0-dev.131

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.
@@ -315,20 +315,16 @@ class IModelDb extends core_common_1.IModel {
315
315
  *
316
316
  * @param ecsql The ECSQL statement to execute
317
317
  * @param params The values to bind to the parameters (if the ECSQL has any).
318
- * @param rowFormat Specify what format the row will be returned. It default to Array format though to make it compilable with previous version use *QueryRowFormat.UseJsPropertyNames*
319
318
  * @param options Allow to specify certain flags which control how query is executed.
320
319
  * @returns Returns the query result as an *AsyncIterableIterator<any>* which lazy load result as needed. The row format is determined by *rowFormat* parameter.
321
320
  * See [ECSQL row format]($docs/learning/ECSQLRowFormat) for details about the format of the returned rows.
322
321
  * @throws [IModelError]($common) If there was any error while submitting, preparing or stepping into query
323
322
  */
324
- async *query(ecsql, params, rowFormat = core_common_1.QueryRowFormat.UseArrayIndexes, options) {
323
+ async *query(ecsql, params, options) {
325
324
  const builder = new core_common_1.QueryOptionsBuilder(options);
326
- if (rowFormat === core_common_1.QueryRowFormat.UseJsPropertyNames) {
327
- builder.setConvertClassIdsToNames(true);
328
- }
329
325
  const reader = this.createQueryReader(ecsql, params, builder.getOptions());
330
326
  while (await reader.step())
331
- yield reader.formatCurrentRow(rowFormat);
327
+ yield reader.formatCurrentRow();
332
328
  }
333
329
  /** Compute number of rows that would be returned by the ECSQL.
334
330
  *
@@ -360,14 +356,13 @@ class IModelDb extends core_common_1.IModel {
360
356
  * @param token None empty restart token. The previous query with same token would be cancelled. This would cause
361
357
  * exception which user code must handle.
362
358
  * @param params The values to bind to the parameters (if the ECSQL has any).
363
- * @param rowFormat Specify what format the row will be returned. It default to Array format though to make it compilable with previous version use *QueryRowFormat.UseJsPropertyNames*
364
359
  * @param options Allow to specify certain flags which control how query is executed.
365
360
  * @returns Returns the query result as an *AsyncIterableIterator<any>* which lazy load result as needed. The row format is determined by *rowFormat* parameter.
366
361
  * See [ECSQL row format]($docs/learning/ECSQLRowFormat) for details about the format of the returned rows.
367
362
  * @throws [IModelError]($common) If there was any error while submitting, preparing or stepping into query
368
363
  */
369
- async *restartQuery(token, ecsql, params, rowFormat = core_common_1.QueryRowFormat.UseArrayIndexes, options) {
370
- for await (const row of this.query(ecsql, params, rowFormat, new core_common_1.QueryOptionsBuilder(options).setRestartToken(token).getOptions())) {
364
+ async *restartQuery(token, ecsql, params, options) {
365
+ for await (const row of this.query(ecsql, params, new core_common_1.QueryOptionsBuilder(options).setRestartToken(token).getOptions())) {
371
366
  yield row;
372
367
  }
373
368
  }