prepareStatement Method
Deprecated in 4.11 - will not be removed until after 2026-06-13. Use prepareWriteStatement when preparing an INSERT/UPDATE/DELETE statement or createQueryReader to execute a SELECT statement.
Prepare an ECSQL statement.
prepareStatement(ecsql: string, logErrors: booleantrue): ECSqlStatement
@throws IModelError if there is a problem preparing the statement.
Parameter | Type | Description |
---|---|---|
ecsql | string | The ECSQL statement to prepare |
logErrors | boolean | Determines if error will be logged if statement fail to prepare |
Returns - ECSqlStatement
Defined in
- core/backend/src/ECDb.ts Line 320
Last Updated: 24 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.