@itwin/core-common 3.5.0-dev.61 → 3.5.0-dev.63

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.
Files changed (33) hide show
  1. package/lib/cjs/ConcurrentQuery.d.ts +181 -1
  2. package/lib/cjs/ConcurrentQuery.d.ts.map +1 -1
  3. package/lib/cjs/ConcurrentQuery.js +173 -1
  4. package/lib/cjs/ConcurrentQuery.js.map +1 -1
  5. package/lib/cjs/ElementMesh.d.ts +40 -0
  6. package/lib/cjs/ElementMesh.d.ts.map +1 -0
  7. package/lib/cjs/ElementMesh.js +57 -0
  8. package/lib/cjs/ElementMesh.js.map +1 -0
  9. package/lib/cjs/core-common.d.ts +1 -0
  10. package/lib/cjs/core-common.d.ts.map +1 -1
  11. package/lib/cjs/core-common.js +1 -0
  12. package/lib/cjs/core-common.js.map +1 -1
  13. package/lib/cjs/rpc/IModelReadRpcInterface.d.ts +2 -0
  14. package/lib/cjs/rpc/IModelReadRpcInterface.d.ts.map +1 -1
  15. package/lib/cjs/rpc/IModelReadRpcInterface.js +4 -1
  16. package/lib/cjs/rpc/IModelReadRpcInterface.js.map +1 -1
  17. package/lib/esm/ConcurrentQuery.d.ts +181 -1
  18. package/lib/esm/ConcurrentQuery.d.ts.map +1 -1
  19. package/lib/esm/ConcurrentQuery.js +173 -1
  20. package/lib/esm/ConcurrentQuery.js.map +1 -1
  21. package/lib/esm/ElementMesh.d.ts +40 -0
  22. package/lib/esm/ElementMesh.d.ts.map +1 -0
  23. package/lib/esm/ElementMesh.js +53 -0
  24. package/lib/esm/ElementMesh.js.map +1 -0
  25. package/lib/esm/core-common.d.ts +1 -0
  26. package/lib/esm/core-common.d.ts.map +1 -1
  27. package/lib/esm/core-common.js +1 -0
  28. package/lib/esm/core-common.js.map +1 -1
  29. package/lib/esm/rpc/IModelReadRpcInterface.d.ts +2 -0
  30. package/lib/esm/rpc/IModelReadRpcInterface.d.ts.map +1 -1
  31. package/lib/esm/rpc/IModelReadRpcInterface.js +4 -1
  32. package/lib/esm/rpc/IModelReadRpcInterface.js.map +1 -1
  33. package/package.json +7 -7
@@ -80,6 +80,12 @@ export interface BaseReaderOptions {
80
80
  usePrimaryConn?: boolean;
81
81
  /** Restrict time or memory for query but use as hint and may be changed base on backend settings */
82
82
  quota?: QueryQuota;
83
+ /**
84
+ * @internal
85
+ * Allow query to be be deferred by milliseconds specified. This parameter is ignore by default unless
86
+ * concurrent query is configure to honour it.
87
+ */
88
+ delay?: number;
83
89
  }
84
90
  /**
85
91
  * ECSql query config
@@ -122,44 +128,210 @@ export declare class QueryOptionsBuilder {
122
128
  private _options;
123
129
  constructor(_options?: QueryOptions);
124
130
  getOptions(): QueryOptions;
131
+ /**
132
+ * @internal
133
+ * Allow to set priority of query. Query will be inserted int queue base on priority value. This value will be ignored if concurrent query is configured with ignored priority is true.
134
+ * @param val integer value which can be negative as well. By default its zero.
135
+ * @returns @type QueryOptionsBuilder for fluent interface.
136
+ */
125
137
  setPriority(val: number): this;
138
+ /**
139
+ * Allow to set restart token. If restart token is set then any other query(s) in queue with same token is cancelled if its not already executed.
140
+ * @param val A string token identifying a use case in which previous query with same token is cancelled.
141
+ * @returns @type QueryOptionsBuilder for fluent interface.
142
+ */
126
143
  setRestartToken(val: string): this;
144
+ /**
145
+ * Allow to set quota restriction for query. Its a hint and may be overriden or ignored by concurrent query manager.
146
+ * @param val @type QueryQuota Specify time and memory that can be used by a query.
147
+ * @returns @type QueryOptionsBuilder for fluent interface.
148
+ */
127
149
  setQuota(val: QueryQuota): this;
150
+ /**
151
+ * Force a query to be executed synchronously against primary connection. This option is ignored if provided by frontend.
152
+ * @param val A boolean value to force use primary connection on main thread to execute query.
153
+ * @returns @type QueryOptionsBuilder for fluent interface.
154
+ */
128
155
  setUsePrimaryConnection(val: boolean): this;
156
+ /**
157
+ * By default all blobs are abbreviated to save memory and network bandwidth. If set to false, all blob data will be returned by query as is.
158
+ * Use @type BlobReader to access blob data more efficiently.
159
+ * @param val A boolean value, if set to false will return complete blob type property data. This could cost time and network bandwidth.
160
+ * @returns @type QueryOptionsBuilder for fluent interface.
161
+ */
129
162
  setAbbreviateBlobs(val: boolean): this;
163
+ /**
164
+ * When query fail to prepare it will log error. This setting will suppress log errors in case where query come from user typing it and its expected to fail often.
165
+ * @param val A boolean value, if set to true, any error logging will be suppressed.
166
+ * @returns @type QueryOptionsBuilder for fluent interface.
167
+ */
130
168
  setSuppressLogErrors(val: boolean): this;
169
+ /**
170
+ * If set ECClassId, SourceECClassId and TargetECClassId system properties will return qualified name of class instead of a @typedef Id64String.
171
+ * @param val A boolean value.
172
+ * @returns @type QueryOptionsBuilder for fluent interface.
173
+ */
131
174
  setConvertClassIdsToNames(val: boolean): this;
175
+ /**
176
+ * Specify limit for query. Limit determine number of rows and offset in result-set.
177
+ * @param val Specify count and offset from within the result-set of a ECSQL query.
178
+ * @returns @type QueryOptionsBuilder for fluent interface.
179
+ */
132
180
  setLimit(val: QueryLimit): this;
181
+ /**
182
+ * Specify row format returned by concurrent query manager.
183
+ * @param val @enum QueryRowFormat specifying format for result.
184
+ * @returns @type QueryOptionsBuilder for fluent interface.
185
+ */
133
186
  setRowFormat(val: QueryRowFormat): this;
187
+ /**
188
+ * @internal
189
+ * Defers execution of query in queue by specified milliseconds. This parameter is ignored by default unless concurrent query is configure to not ignore it.
190
+ * @param val Number of milliseconds.
191
+ * @returns @type QueryOptionsBuilder for fluent interface.
192
+ */
193
+ setDelay(val: number): this;
134
194
  }
135
195
  /** @beta */
136
196
  export declare class BlobOptionsBuilder {
137
197
  private _options;
138
198
  constructor(_options?: BlobOptions);
139
199
  getOptions(): BlobOptions;
200
+ /**
201
+ * @internal
202
+ * Allow to set priority of blob request. Blob request will be inserted int queue base on priority value. This value will be ignored if concurrent query is configured with ignored priority is true.
203
+ * @param val integer value which can be negative as well. By default its zero.
204
+ * @returns @type BlobOptionsBuilder for fluent interface.
205
+ */
140
206
  setPriority(val: number): this;
207
+ /**
208
+ * Allow to set restart token. If restart token is set then any other blob request in queue with same token is cancelled if its not already executed.
209
+ * @param val A string token identifying a use case in which previous blob request with same token is cancelled.
210
+ * @returns @type BlobOptionsBuilder for fluent interface.
211
+ */
141
212
  setRestartToken(val: string): this;
213
+ /**
214
+ * Allow to set quota restriction for blob request. Its a hint and may be overriden or ignored by concurrent query manager.
215
+ * @param val @type QueryQuota Specify time and memory that can be used by a query.
216
+ * @returns @type BlobOptionsBuilder for fluent interface.
217
+ */
142
218
  setQuota(val: QueryQuota): this;
219
+ /**
220
+ * Force a blob request to be executed synchronously against primary connection. This option is ignored if provided by frontend.
221
+ * @param val A boolean value to force use primary connection on main thread to execute blob request.
222
+ * @returns @type BlobOptionsBuilder for fluent interface.
223
+ */
143
224
  setUsePrimaryConnection(val: boolean): this;
225
+ /**
226
+ * Specify range with in the blob that need to be returned.
227
+ * @param val Specify offset and count of bytes that need to be returned.
228
+ * @returns @type BlobOptionsBuilder for fluent interface.
229
+ */
144
230
  setRange(val: BlobRange): this;
231
+ /**
232
+ * @internal
233
+ * Defers execution of blob request in queue by specified milliseconds. This parameter is ignored by default unless concurrent query is configure to not ignore it.
234
+ * @param val Number of milliseconds.
235
+ * @returns @type BlobOptionsBuilder for fluent interface.
236
+ */
237
+ setDelay(val: number): this;
145
238
  }
146
- /** @public */
239
+ /**
240
+ * @public
241
+ * QueryBinder allow to bind values to a ECSQL query.
242
+ * */
147
243
  export declare class QueryBinder {
148
244
  private _args;
149
245
  private verify;
246
+ /**
247
+ * Bind boolean value to ECSQL statement.
248
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
249
+ * @param val Boolean value to bind to ECSQL statement.
250
+ * @returns @type QueryBinder to allow fluent interface.
251
+ */
150
252
  bindBoolean(indexOrName: string | number, val: boolean): this;
253
+ /**
254
+ * Bind blob value to ECSQL statement.
255
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
256
+ * @param val Blob value to bind to ECSQL statement.
257
+ * @returns @type QueryBinder to allow fluent interface.
258
+ */
151
259
  bindBlob(indexOrName: string | number, val: Uint8Array): this;
260
+ /**
261
+ * Bind double value to ECSQL statement.
262
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
263
+ * @param val Double value to bind to ECSQL statement.
264
+ * @returns @type QueryBinder to allow fluent interface.
265
+ */
152
266
  bindDouble(indexOrName: string | number, val: number): this;
267
+ /**
268
+ * Bind @typedef Id64String value to ECSQL statement.
269
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
270
+ * @param val @typedef Id64String value to bind to ECSQL statement.
271
+ * @returns @type QueryBinder to allow fluent interface.
272
+ */
153
273
  bindId(indexOrName: string | number, val: Id64String): this;
274
+ /**
275
+ * Bind @type OrderedId64Iterable to ECSQL statement.
276
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
277
+ * @param val @type OrderedId64Iterable value to bind to ECSQL statement.
278
+ * @returns @type QueryBinder to allow fluent interface.
279
+ */
154
280
  bindIdSet(indexOrName: string | number, val: OrderedId64Iterable): this;
281
+ /**
282
+ * Bind integer to ECSQL statement.
283
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
284
+ * @param val Integer value to bind to ECSQL statement.
285
+ * @returns @type QueryBinder to allow fluent interface.
286
+ */
155
287
  bindInt(indexOrName: string | number, val: number): this;
288
+ /**
289
+ * Bind struct to ECSQL statement. Struct specified as object.
290
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
291
+ * @param val struct value to bind to ECSQL statement.
292
+ * @returns @type QueryBinder to allow fluent interface.
293
+ */
156
294
  bindStruct(indexOrName: string | number, val: object): this;
295
+ /**
296
+ * Bind long to ECSQL statement.
297
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
298
+ * @param val Long value to bind to ECSQL statement.
299
+ * @returns @type QueryBinder to allow fluent interface.
300
+ */
157
301
  bindLong(indexOrName: string | number, val: number): this;
302
+ /**
303
+ * Bind string to ECSQL statement.
304
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
305
+ * @param val String value to bind to ECSQL statement.
306
+ * @returns @type QueryBinder to allow fluent interface.
307
+ */
158
308
  bindString(indexOrName: string | number, val: string): this;
309
+ /**
310
+ * Bind null to ECSQL statement.
311
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
312
+ * @returns @type QueryBinder to allow fluent interface.
313
+ */
159
314
  bindNull(indexOrName: string | number): this;
315
+ /**
316
+ * Bind @type Point2d to ECSQL statement.
317
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
318
+ * @param val @type Point2d value to bind to ECSQL statement.
319
+ * @returns @type QueryBinder to allow fluent interface.
320
+ */
160
321
  bindPoint2d(indexOrName: string | number, val: Point2d): this;
322
+ /**
323
+ * Bind @type Point3d to ECSQL statement.
324
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
325
+ * @param val @type Point3d value to bind to ECSQL statement.
326
+ * @returns @type QueryBinder to allow fluent interface.
327
+ */
161
328
  bindPoint3d(indexOrName: string | number, val: Point3d): this;
162
329
  private static bind;
330
+ /**
331
+ * Allow bulk bind either parameters by index as value array or by parameter names as object.
332
+ * @param args if array of values is provided then array index is used as index. If object is provided then object property name is used as parameter name of reach value.
333
+ * @returns @type QueryBinder to allow fluent interface.
334
+ */
163
335
  static from(args: any[] | object | undefined): QueryBinder;
164
336
  serialize(): object;
165
337
  }
@@ -239,4 +411,12 @@ export declare class DbQueryError extends BentleyError {
239
411
  export interface DbRequestExecutor<TRequest extends DbRequest, TResponse extends DbResponse> {
240
412
  execute(request: TRequest): Promise<TResponse>;
241
413
  }
414
+ /** @internal */
415
+ export interface DbQueryConfig {
416
+ globalQuota?: QueryQuota;
417
+ ignoreDelay?: boolean;
418
+ ignorePriority?: boolean;
419
+ requestQueueSize?: number;
420
+ workerThreads?: number;
421
+ }
242
422
  //# sourceMappingURL=ConcurrentQuery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConcurrentQuery.d.ts","sourceRoot":"","sources":["../../src/ConcurrentQuery.ts"],"names":[],"mappings":"AAIA;;GAEG;A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AAe,SAAQ,UAAU;IAChD,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AACD,cAAc;AACd,qBAAa,YAAa,SAAQ,YAAY;aACT,QAAQ,EAAE,GAAG;aAAkB,OAAO,CAAC;gBAAvC,QAAQ,EAAE,GAAG,EAAkB,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,QAAQ;WAGhF,YAAY,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG;CAQxD;AACD,gBAAgB;AAChB,MAAM,WAAW,iBAAiB,CAAC,QAAQ,SAAS,SAAS,EAAE,SAAS,SAAS,UAAU;IACzF,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;CAChD;AAED,gBAAgB;AAChB,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -36,42 +36,99 @@ export class QueryOptionsBuilder {
36
36
  this._options = _options;
37
37
  }
38
38
  getOptions() { return this._options; }
39
+ /**
40
+ * @internal
41
+ * Allow to set priority of query. Query will be inserted int queue base on priority value. This value will be ignored if concurrent query is configured with ignored priority is true.
42
+ * @param val integer value which can be negative as well. By default its zero.
43
+ * @returns @type QueryOptionsBuilder for fluent interface.
44
+ */
39
45
  setPriority(val) {
40
46
  this._options.priority = val;
41
47
  return this;
42
48
  }
49
+ /**
50
+ * Allow to set restart token. If restart token is set then any other query(s) in queue with same token is cancelled if its not already executed.
51
+ * @param val A string token identifying a use case in which previous query with same token is cancelled.
52
+ * @returns @type QueryOptionsBuilder for fluent interface.
53
+ */
43
54
  setRestartToken(val) {
44
55
  this._options.restartToken = val;
45
56
  return this;
46
57
  }
58
+ /**
59
+ * Allow to set quota restriction for query. Its a hint and may be overriden or ignored by concurrent query manager.
60
+ * @param val @type QueryQuota Specify time and memory that can be used by a query.
61
+ * @returns @type QueryOptionsBuilder for fluent interface.
62
+ */
47
63
  setQuota(val) {
48
64
  this._options.quota = val;
49
65
  return this;
50
66
  }
67
+ /**
68
+ * Force a query to be executed synchronously against primary connection. This option is ignored if provided by frontend.
69
+ * @param val A boolean value to force use primary connection on main thread to execute query.
70
+ * @returns @type QueryOptionsBuilder for fluent interface.
71
+ */
51
72
  setUsePrimaryConnection(val) {
52
73
  this._options.usePrimaryConn = val;
53
74
  return this;
54
75
  }
76
+ /**
77
+ * By default all blobs are abbreviated to save memory and network bandwidth. If set to false, all blob data will be returned by query as is.
78
+ * Use @type BlobReader to access blob data more efficiently.
79
+ * @param val A boolean value, if set to false will return complete blob type property data. This could cost time and network bandwidth.
80
+ * @returns @type QueryOptionsBuilder for fluent interface.
81
+ */
55
82
  setAbbreviateBlobs(val) {
56
83
  this._options.abbreviateBlobs = val;
57
84
  return this;
58
85
  }
86
+ /**
87
+ * When query fail to prepare it will log error. This setting will suppress log errors in case where query come from user typing it and its expected to fail often.
88
+ * @param val A boolean value, if set to true, any error logging will be suppressed.
89
+ * @returns @type QueryOptionsBuilder for fluent interface.
90
+ */
59
91
  setSuppressLogErrors(val) {
60
92
  this._options.suppressLogErrors = val;
61
93
  return this;
62
94
  }
95
+ /**
96
+ * If set ECClassId, SourceECClassId and TargetECClassId system properties will return qualified name of class instead of a @typedef Id64String.
97
+ * @param val A boolean value.
98
+ * @returns @type QueryOptionsBuilder for fluent interface.
99
+ */
63
100
  setConvertClassIdsToNames(val) {
64
101
  this._options.convertClassIdsToClassNames = val;
65
102
  return this;
66
103
  }
104
+ /**
105
+ * Specify limit for query. Limit determine number of rows and offset in result-set.
106
+ * @param val Specify count and offset from within the result-set of a ECSQL query.
107
+ * @returns @type QueryOptionsBuilder for fluent interface.
108
+ */
67
109
  setLimit(val) {
68
110
  this._options.limit = val;
69
111
  return this;
70
112
  }
113
+ /**
114
+ * Specify row format returned by concurrent query manager.
115
+ * @param val @enum QueryRowFormat specifying format for result.
116
+ * @returns @type QueryOptionsBuilder for fluent interface.
117
+ */
71
118
  setRowFormat(val) {
72
119
  this._options.rowFormat = val;
73
120
  return this;
74
121
  }
122
+ /**
123
+ * @internal
124
+ * Defers execution of query in queue by specified milliseconds. This parameter is ignored by default unless concurrent query is configure to not ignore it.
125
+ * @param val Number of milliseconds.
126
+ * @returns @type QueryOptionsBuilder for fluent interface.
127
+ */
128
+ setDelay(val) {
129
+ this._options.delay = val;
130
+ return this;
131
+ }
75
132
  }
76
133
  /** @beta */
77
134
  export class BlobOptionsBuilder {
@@ -79,26 +136,62 @@ export class BlobOptionsBuilder {
79
136
  this._options = _options;
80
137
  }
81
138
  getOptions() { return this._options; }
139
+ /**
140
+ * @internal
141
+ * Allow to set priority of blob request. Blob request will be inserted int queue base on priority value. This value will be ignored if concurrent query is configured with ignored priority is true.
142
+ * @param val integer value which can be negative as well. By default its zero.
143
+ * @returns @type BlobOptionsBuilder for fluent interface.
144
+ */
82
145
  setPriority(val) {
83
146
  this._options.priority = val;
84
147
  return this;
85
148
  }
149
+ /**
150
+ * Allow to set restart token. If restart token is set then any other blob request in queue with same token is cancelled if its not already executed.
151
+ * @param val A string token identifying a use case in which previous blob request with same token is cancelled.
152
+ * @returns @type BlobOptionsBuilder for fluent interface.
153
+ */
86
154
  setRestartToken(val) {
87
155
  this._options.restartToken = val;
88
156
  return this;
89
157
  }
158
+ /**
159
+ * Allow to set quota restriction for blob request. Its a hint and may be overriden or ignored by concurrent query manager.
160
+ * @param val @type QueryQuota Specify time and memory that can be used by a query.
161
+ * @returns @type BlobOptionsBuilder for fluent interface.
162
+ */
90
163
  setQuota(val) {
91
164
  this._options.quota = val;
92
165
  return this;
93
166
  }
167
+ /**
168
+ * Force a blob request to be executed synchronously against primary connection. This option is ignored if provided by frontend.
169
+ * @param val A boolean value to force use primary connection on main thread to execute blob request.
170
+ * @returns @type BlobOptionsBuilder for fluent interface.
171
+ */
94
172
  setUsePrimaryConnection(val) {
95
173
  this._options.usePrimaryConn = val;
96
174
  return this;
97
175
  }
176
+ /**
177
+ * Specify range with in the blob that need to be returned.
178
+ * @param val Specify offset and count of bytes that need to be returned.
179
+ * @returns @type BlobOptionsBuilder for fluent interface.
180
+ */
98
181
  setRange(val) {
99
182
  this._options.range = val;
100
183
  return this;
101
184
  }
185
+ /**
186
+ * @internal
187
+ * Defers execution of blob request in queue by specified milliseconds. This parameter is ignored by default unless concurrent query is configure to not ignore it.
188
+ * @param val Number of milliseconds.
189
+ * @returns @type BlobOptionsBuilder for fluent interface.
190
+ */
191
+ setDelay(val) {
192
+ this._options.delay = val;
193
+ return this;
194
+ }
102
195
  }
103
196
  /** @internal */
104
197
  var QueryParamType;
@@ -118,7 +211,10 @@ var QueryParamType;
118
211
  QueryParamType[QueryParamType["Blob"] = 10] = "Blob";
119
212
  QueryParamType[QueryParamType["Struct"] = 11] = "Struct";
120
213
  })(QueryParamType || (QueryParamType = {}));
121
- /** @public */
214
+ /**
215
+ * @public
216
+ * QueryBinder allow to bind values to a ECSQL query.
217
+ * */
122
218
  export class QueryBinder {
123
219
  constructor() {
124
220
  this._args = {};
@@ -134,6 +230,12 @@ export class QueryBinder {
134
230
  }
135
231
  }
136
232
  }
233
+ /**
234
+ * Bind boolean value to ECSQL statement.
235
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
236
+ * @param val Boolean value to bind to ECSQL statement.
237
+ * @returns @type QueryBinder to allow fluent interface.
238
+ */
137
239
  bindBoolean(indexOrName, val) {
138
240
  this.verify(indexOrName);
139
241
  const name = String(indexOrName);
@@ -146,6 +248,12 @@ export class QueryBinder {
146
248
  });
147
249
  return this;
148
250
  }
251
+ /**
252
+ * Bind blob value to ECSQL statement.
253
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
254
+ * @param val Blob value to bind to ECSQL statement.
255
+ * @returns @type QueryBinder to allow fluent interface.
256
+ */
149
257
  bindBlob(indexOrName, val) {
150
258
  this.verify(indexOrName);
151
259
  const name = String(indexOrName);
@@ -158,6 +266,12 @@ export class QueryBinder {
158
266
  });
159
267
  return this;
160
268
  }
269
+ /**
270
+ * Bind double value to ECSQL statement.
271
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
272
+ * @param val Double value to bind to ECSQL statement.
273
+ * @returns @type QueryBinder to allow fluent interface.
274
+ */
161
275
  bindDouble(indexOrName, val) {
162
276
  this.verify(indexOrName);
163
277
  const name = String(indexOrName);
@@ -169,6 +283,12 @@ export class QueryBinder {
169
283
  });
170
284
  return this;
171
285
  }
286
+ /**
287
+ * Bind @typedef Id64String value to ECSQL statement.
288
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
289
+ * @param val @typedef Id64String value to bind to ECSQL statement.
290
+ * @returns @type QueryBinder to allow fluent interface.
291
+ */
172
292
  bindId(indexOrName, val) {
173
293
  this.verify(indexOrName);
174
294
  const name = String(indexOrName);
@@ -180,6 +300,12 @@ export class QueryBinder {
180
300
  });
181
301
  return this;
182
302
  }
303
+ /**
304
+ * Bind @type OrderedId64Iterable to ECSQL statement.
305
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
306
+ * @param val @type OrderedId64Iterable value to bind to ECSQL statement.
307
+ * @returns @type QueryBinder to allow fluent interface.
308
+ */
183
309
  bindIdSet(indexOrName, val) {
184
310
  this.verify(indexOrName);
185
311
  const name = String(indexOrName);
@@ -192,6 +318,12 @@ export class QueryBinder {
192
318
  });
193
319
  return this;
194
320
  }
321
+ /**
322
+ * Bind integer to ECSQL statement.
323
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
324
+ * @param val Integer value to bind to ECSQL statement.
325
+ * @returns @type QueryBinder to allow fluent interface.
326
+ */
195
327
  bindInt(indexOrName, val) {
196
328
  this.verify(indexOrName);
197
329
  const name = String(indexOrName);
@@ -203,6 +335,12 @@ export class QueryBinder {
203
335
  });
204
336
  return this;
205
337
  }
338
+ /**
339
+ * Bind struct to ECSQL statement. Struct specified as object.
340
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
341
+ * @param val struct value to bind to ECSQL statement.
342
+ * @returns @type QueryBinder to allow fluent interface.
343
+ */
206
344
  bindStruct(indexOrName, val) {
207
345
  this.verify(indexOrName);
208
346
  const name = String(indexOrName);
@@ -214,6 +352,12 @@ export class QueryBinder {
214
352
  });
215
353
  return this;
216
354
  }
355
+ /**
356
+ * Bind long to ECSQL statement.
357
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
358
+ * @param val Long value to bind to ECSQL statement.
359
+ * @returns @type QueryBinder to allow fluent interface.
360
+ */
217
361
  bindLong(indexOrName, val) {
218
362
  this.verify(indexOrName);
219
363
  const name = String(indexOrName);
@@ -225,6 +369,12 @@ export class QueryBinder {
225
369
  });
226
370
  return this;
227
371
  }
372
+ /**
373
+ * Bind string to ECSQL statement.
374
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
375
+ * @param val String value to bind to ECSQL statement.
376
+ * @returns @type QueryBinder to allow fluent interface.
377
+ */
228
378
  bindString(indexOrName, val) {
229
379
  this.verify(indexOrName);
230
380
  const name = String(indexOrName);
@@ -236,6 +386,11 @@ export class QueryBinder {
236
386
  });
237
387
  return this;
238
388
  }
389
+ /**
390
+ * Bind null to ECSQL statement.
391
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
392
+ * @returns @type QueryBinder to allow fluent interface.
393
+ */
239
394
  bindNull(indexOrName) {
240
395
  this.verify(indexOrName);
241
396
  const name = String(indexOrName);
@@ -247,6 +402,12 @@ export class QueryBinder {
247
402
  });
248
403
  return this;
249
404
  }
405
+ /**
406
+ * Bind @type Point2d to ECSQL statement.
407
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
408
+ * @param val @type Point2d value to bind to ECSQL statement.
409
+ * @returns @type QueryBinder to allow fluent interface.
410
+ */
250
411
  bindPoint2d(indexOrName, val) {
251
412
  this.verify(indexOrName);
252
413
  const name = String(indexOrName);
@@ -258,6 +419,12 @@ export class QueryBinder {
258
419
  });
259
420
  return this;
260
421
  }
422
+ /**
423
+ * Bind @type Point3d to ECSQL statement.
424
+ * @param indexOrName Specify parameter index or its name used in ECSQL statement.
425
+ * @param val @type Point3d value to bind to ECSQL statement.
426
+ * @returns @type QueryBinder to allow fluent interface.
427
+ */
261
428
  bindPoint3d(indexOrName, val) {
262
429
  this.verify(indexOrName);
263
430
  const name = String(indexOrName);
@@ -301,6 +468,11 @@ export class QueryBinder {
301
468
  throw new Error("unsupported type");
302
469
  }
303
470
  }
471
+ /**
472
+ * Allow bulk bind either parameters by index as value array or by parameter names as object.
473
+ * @param args if array of values is provided then array index is used as index. If object is provided then object property name is used as parameter name of reach value.
474
+ * @returns @type QueryBinder to allow fluent interface.
475
+ */
304
476
  static from(args) {
305
477
  const params = new QueryBinder();
306
478
  if (typeof args === "undefined")