jeep-sqlite
Advanced tools
Comparing version 2.5.1 to 2.5.2
@@ -198,6 +198,4 @@ import initSqlJs from "sql.js"; | ||
try { | ||
console.log(`&&&&& in jeep database before beginTransaction: ${this.isTransActive()}`); | ||
await UtilsSQLite.beginTransaction(this.mDb, true); | ||
this.setIsTransActive(true); | ||
console.log(`&&&&& in jeep database after beginTransaction: ${this.isTransActive()}`); | ||
return 0; | ||
@@ -207,3 +205,2 @@ } | ||
let msg = `BeginTransaction: ${err.message}`; | ||
console.log(`&&&&& in jeep database begin Transaction Error: ${err.message}`); | ||
return Promise.reject(new Error(`${msg}`)); | ||
@@ -219,6 +216,4 @@ } | ||
try { | ||
console.log(`&&&&& in jeep database before commitTransaction: ${this.isTransActive()}`); | ||
await UtilsSQLite.commitTransaction(this.mDb, true); | ||
this.setIsTransActive(false); | ||
console.log(`&&&&& in jeep database after commitTransaction: ${this.isTransActive()}`); | ||
return 0; | ||
@@ -228,3 +223,2 @@ } | ||
let msg = `CommitTransaction: ${err.message}`; | ||
console.log(`&&&&& in jeep database commitTransaction Error: ${err.message}`); | ||
return Promise.reject(new Error(`${msg}`)); | ||
@@ -240,6 +234,4 @@ } | ||
try { | ||
console.log(`&&&&& in jeep database before rollbackTransaction: ${this.isTransActive()}`); | ||
await UtilsSQLite.rollbackTransaction(this.mDb, true); | ||
this.setIsTransActive(false); | ||
console.log(`&&&&& in jeep database after rollbackTransaction: ${this.isTransActive()}`); | ||
return 0; | ||
@@ -249,3 +241,2 @@ } | ||
let msg = `RollbackTransaction: ${err.message}`; | ||
console.log(`&&&&& in jeep database rollbackTransaction Error: ${err.message}`); | ||
return Promise.reject(new Error(`${msg}`)); | ||
@@ -267,3 +258,2 @@ } | ||
let initChanges = -1; | ||
console.log(`>>>> in executeSQL: ${sql}, ${transaction} , ${this.isTransactionActive}`); | ||
try { | ||
@@ -284,7 +274,4 @@ initChanges = await UtilsSQLite.dbChanges(this.mDb); | ||
} | ||
console.log(`>>>> in executeSQL before commit : ${sql}, ${transaction} , ${this.isTransactionActive}`); | ||
if (transaction && this.isTransactionActive) { | ||
console.log(`>>>> in executeSQL going to commit`); | ||
await this.commitTransaction(); | ||
console.log(`>>>> in executeSQL after commit : ${sql}, ${transaction} , ${this.isTransactionActive}`); | ||
} | ||
@@ -317,3 +304,2 @@ const changes = (await UtilsSQLite.dbChanges(this.mDb)) - initChanges; | ||
} | ||
console.log(`>>>> in executeSQL end : ${transaction} , ${this.isTransactionActive}`); | ||
} | ||
@@ -399,4 +385,2 @@ } | ||
} | ||
console.log(`>>>> in runSQL: ${statement}, ${transaction} , ${this.isTransactionActive}`); | ||
console.log(`>>>> in runSQL: ${values}, ${transaction} , ${this.isTransactionActive}`); | ||
const retRes = { changes: -1, lastId: -1 }; | ||
@@ -407,3 +391,2 @@ let initChanges = -1; | ||
if (transaction && !this.isTransactionActive) { | ||
console.log(`>>>> in runSQL going to beginTransaction`); | ||
await this.beginTransaction(); | ||
@@ -423,5 +406,3 @@ } | ||
if (transaction && this.isTransactionActive) { | ||
console.log(`>>>> in runSQL going to commitTransaction`); | ||
await this.commitTransaction(); | ||
console.log(`>>>> in runSQL after commit : ${statement}, ${transaction} , ${this.isTransactionActive}`); | ||
} | ||
@@ -438,3 +419,2 @@ const changes = (await UtilsSQLite.dbChanges(this.mDb)) - initChanges; | ||
if (transaction && this.isTransactionActive) { | ||
console.log(`>>>> in runSQL going to rollbackTransaction`); | ||
await this.rollbackTransaction(); | ||
@@ -441,0 +421,0 @@ } |
@@ -43,3 +43,2 @@ import { UtilsDrop } from "../utils/utils-drop"; | ||
catch (err) { | ||
console.log(`${err.message}`); | ||
return Promise.reject(new Error(`${msg}${err.message}`)); | ||
@@ -46,0 +45,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import{p as e,b as t}from"./p-afe75585.js";export{s as setNonce}from"./p-afe75585.js";const o=()=>{const t=import.meta.url;const o={};if(t!==""){o.resourcesUrl=new URL(".",t).href}return e(o)};o().then((e=>t([["p-99fcade1",[[1,"jeep-sqlite",{autoSave:[516,"autosave"],typeOrm:[516,"typeorm"],wasmPath:[513,"wasmpath"],pickText:[513,"picktext"],saveText:[513,"savetext"],buttonOptions:[513,"buttonoptions"],innerAutoSave:[32],innerTypeOrm:[32],innerWasmPath:[32],innerPickText:[32],innerSaveText:[32],innerButtonOptions:[32],echo:[64],createConnection:[64],isConnection:[64],closeConnection:[64],open:[64],close:[64],getVersion:[64],beginTransaction:[64],commitTransaction:[64],rollbackTransaction:[64],isTransactionActive:[64],execute:[64],executeSet:[64],run:[64],query:[64],getTableList:[64],isDBExists:[64],isDBOpen:[64],deleteDatabase:[64],isStoreOpen:[64],copyFromAssets:[64],isTableExists:[64],createSyncTable:[64],getSyncDate:[64],setSyncDate:[64],isJsonValid:[64],importFromJson:[64],exportToJson:[64],deleteExportedRows:[64],addUpgradeStatement:[64],isDatabase:[64],getDatabaseList:[64],checkConnectionsConsistency:[64],saveToStore:[64],saveToLocalDisk:[64],getFromLocalDiskToStore:[64],getFromHTTPRequest:[64]}]]]],e))); | ||
import{p as e,b as t}from"./p-afe75585.js";export{s as setNonce}from"./p-afe75585.js";const o=()=>{const t=import.meta.url;const o={};if(t!==""){o.resourcesUrl=new URL(".",t).href}return e(o)};o().then((e=>t([["p-a12f4bc9",[[1,"jeep-sqlite",{autoSave:[516,"autosave"],typeOrm:[516,"typeorm"],wasmPath:[513,"wasmpath"],pickText:[513,"picktext"],saveText:[513,"savetext"],buttonOptions:[513,"buttonoptions"],innerAutoSave:[32],innerTypeOrm:[32],innerWasmPath:[32],innerPickText:[32],innerSaveText:[32],innerButtonOptions:[32],echo:[64],createConnection:[64],isConnection:[64],closeConnection:[64],open:[64],close:[64],getVersion:[64],beginTransaction:[64],commitTransaction:[64],rollbackTransaction:[64],isTransactionActive:[64],execute:[64],executeSet:[64],run:[64],query:[64],getTableList:[64],isDBExists:[64],isDBOpen:[64],deleteDatabase:[64],isStoreOpen:[64],copyFromAssets:[64],isTableExists:[64],createSyncTable:[64],getSyncDate:[64],setSyncDate:[64],isJsonValid:[64],importFromJson:[64],exportToJson:[64],deleteExportedRows:[64],addUpgradeStatement:[64],isDatabase:[64],getDatabaseList:[64],checkConnectionsConsistency:[64],saveToStore:[64],saveToLocalDisk:[64],getFromLocalDiskToStore:[64],getFromHTTPRequest:[64]}]]]],e))); | ||
//# sourceMappingURL=jeep-sqlite.esm.js.map |
{ | ||
"name": "jeep-sqlite", | ||
"version": "2.5.1", | ||
"version": "2.5.2", | ||
"description": "Browser SQLite Stencil Component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7894546
45202