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 963 Last Updated: 12 June, 2024