typeorm/typeorm · error · QueryFailedError
{driverError}
Error message
{driverError} What it means
Error "{driverError}" thrown in typeorm/typeorm.
Source
Thrown at src/driver/capacitor/CapacitorQueryRunner.ts:120
if (raw?.hasOwnProperty("changes")) {
result.affected = raw.changes.changes
result.raw = raw.changes.lastId ?? raw.changes.changes
}
if (!useStructuredResult) {
return result.raw
}
return result
} catch (err) {
this.driver.dataSource.logger.logQueryError(
err,
query,
parameters,
this,
)
throw new QueryFailedError(query, parameters, err)
}
}
// -------------------------------------------------------------------------
// Protected Methods
// -------------------------------------------------------------------------
/**
* Parametrizes given object of values. Used to create column=value queries.
*
* @param objectLiteral
*/
protected parametrize(objectLiteral: ObjectLiteral): string[] {
return Object.keys(objectLiteral).map((key) => `"${key}"` + "=?")
}
}
View on GitHub (pinned to 04ff4daedc)
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.
When it happens
Trigger: 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.
Common situations: See trigger scenarios.
AI-assisted analysis of typeorm/typeorm@04ff4daedc (2026-08-03).
Data as JSON: /data/errors/4fd2a1c0f79a5713.json.
Report an issue: GitHub.