API Reference > imodeljs-backend > SQLite > SqliteStatement > prepare prepare Method Prepare this statement prior to first use. prepare(db: DgnDb | ECDb | SQLiteDb): void throws if the SQL statement cannot be prepared. Normally, prepare fails due to SQL syntax errors or references to tables or properties that do not exist. The error.message property will provide details. Parameter Type Description db DgnDb | ECDb | SQLiteDb The DgnDb or ECDb to prepare the statement against Returns - void Defined in core/backend/src/SqliteStatement.ts Line 66 Last Updated: 12 June, 2024