{"id":"4fd2a1c0f79a5713","repo":"typeorm/typeorm","slug":"drivererror","errorCode":null,"errorMessage":"{driverError}","messagePattern":"\\{driverError\\}","errorType":"exception","errorClass":"QueryFailedError","httpStatus":null,"severity":"error","filePath":"src/driver/capacitor/CapacitorQueryRunner.ts","lineNumber":120,"sourceCode":"            if (raw?.hasOwnProperty(\"changes\")) {\n                result.affected = raw.changes.changes\n                result.raw = raw.changes.lastId ?? raw.changes.changes\n            }\n\n            if (!useStructuredResult) {\n                return result.raw\n            }\n\n            return result\n        } catch (err) {\n            this.driver.dataSource.logger.logQueryError(\n                err,\n                query,\n                parameters,\n                this,\n            )\n\n            throw new QueryFailedError(query, parameters, err)\n        }\n    }\n\n    // -------------------------------------------------------------------------\n    // Protected Methods\n    // -------------------------------------------------------------------------\n\n    /**\n     * Parametrizes given object of values. Used to create column=value queries.\n     *\n     * @param objectLiteral\n     */\n    protected parametrize(objectLiteral: ObjectLiteral): string[] {\n        return Object.keys(objectLiteral).map((key) => `\"${key}\"` + \"=?\")\n    }\n}\n","sourceCodeStart":102,"sourceCodeEnd":137,"githubUrl":"https://github.com/typeorm/typeorm/blob/04ff4daedcf60fa4ffd0d5d33bbafaac1a9bbc96/src/driver/capacitor/CapacitorQueryRunner.ts#L102-L137","documentation":"Error \"{driverError}\" thrown in typeorm/typeorm.","triggerScenarios":"The underlying Capacitor SQLite plugin rejects a query or command (constraint violation, syntax error, locked database, etc.) and the driver rethrows the original driver error.","commonSituations":"See trigger scenarios.","solutions":["Inspect the underlying driver error message for details and fix the failing SQL or parameters.","Verify the database connection is established and the query syntax is valid for SQLite."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"04ff4daedcf60fa4ffd0d5d33bbafaac1a9bbc96","analyzedAt":"2026-08-03T18:27:32.281Z","schemaVersion":2}