queryRowCount Method
Deprecated in 3.7. Count the number of results using count(*) where the original query is a subquery instead. E.g., SELECT count(*) FROM (<query-whose-rows-to-count>).
Compute number of rows that would be returned by the ECSQL.
See also:
queryRowCount(ecsql: string, params?: QueryBinder): Promise<number>
throws IModelError If the statement is invalid
| Parameter | Type | Description |
|---|---|---|
| ecsql | string | The ECSQL statement to execute |
| params | QueryBinder | The values to bind to the parameters (if the ECSQL has any). See "iTwin.js Types used in ECSQL Parameter Bindings" for details. |
Returns - Promise<number>
Return row count.
Defined in
- backend/src/IModelDb.ts Line 541
Last Updated: 30 November, 2023