Use a prepared ECSQL statement. This function takes care of preparing the statement and then releasing it.
As preparing statements can be costly, they get cached. When calling this method again with the same ECSQL, the already prepared statement from the cache will be reused.
withPreparedStatement<T>(ecsql: string, cb: (stmt: ECSqlStatement) => T): T
|ecsql||string||The ECSQL statement to execute|
|cb||(stmt: ECSqlStatement) => T||The callback to invoke on the prepared statement|
Returns - Returns the value returned by cb
Last Updated: 13 October, 2019