API Reference > imodeljs-backend > iModels > IModelDb > prepareStatement prepareStatement Method Prepare an ECSQL statement. prepareStatement(sql: string): ECSqlStatement throws IModelError if there is a problem preparing the statement. Parameter Type Description sql string The ECSQL statement to prepare Returns - ECSqlStatement Defined in core/backend/src/IModelDb.ts Line 1167 Last Updated: 13 June, 2024