velocious 1.0.70 → 1.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -204,8 +204,8 @@ export default class VelociousDatabaseDriversSqliteBase extends Base {
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
_retryableDatabaseError(error) {
|
|
207
|
-
if (error.message?.
|
|
208
|
-
if (this.getType() == "sqlite" && error.message?.startsWith("
|
|
207
|
+
if (this.getType() == "sqlite" && error.message?.startsWith("attempt to write a readonly database")) return true
|
|
208
|
+
if (this.getType() == "sqlite" && error.message?.startsWith("database is locked")) return true
|
|
209
209
|
|
|
210
210
|
return false
|
|
211
211
|
}
|
|
@@ -569,7 +569,7 @@ class VelociousDatabaseRecord {
|
|
|
569
569
|
}
|
|
570
570
|
|
|
571
571
|
static async transaction(callback) {
|
|
572
|
-
const useTransactions = this.connection().
|
|
572
|
+
const useTransactions = this.connection().getArgs().record?.transactions
|
|
573
573
|
|
|
574
574
|
if (useTransactions !== false) {
|
|
575
575
|
await this.connection().transaction(callback)
|