Skip to content

Commit

Permalink
add log to exec query
Browse files Browse the repository at this point in the history
  • Loading branch information
linhttbk97 committed Dec 11, 2023
1 parent 451eaf7 commit 340c668
Show file tree
Hide file tree
Showing 11 changed files with 202 additions and 197 deletions.
1 change: 1 addition & 0 deletions dist/sql-asm-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,7 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
return results;
} catch (errCaught) {
if (stmt) stmt["free"]();
console.log('error when exec sql: ' + sql + ', params: ' + JSON.stringify(params) + ', error: ' + errCaught);
throw errCaught;
} finally {
stackRestore(stack);
Expand Down
76 changes: 38 additions & 38 deletions dist/sql-asm-memory-growth.js

Large diffs are not rendered by default.

76 changes: 38 additions & 38 deletions dist/sql-asm.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/sql-wasm-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,7 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
return results;
} catch (errCaught) {
if (stmt) stmt["free"]();
console.log('error when exec sql: ' + sql + ', params: ' + JSON.stringify(params) + ', error: ' + errCaught);
throw errCaught;
} finally {
stackRestore(stack);
Expand Down
82 changes: 41 additions & 41 deletions dist/sql-wasm.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/worker.sql-asm-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,7 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
return results;
} catch (errCaught) {
if (stmt) stmt["free"]();
console.log('error when exec sql: ' + sql + ', params: ' + JSON.stringify(params) + ', error: ' + errCaught);
throw errCaught;
} finally {
stackRestore(stack);
Expand Down
76 changes: 38 additions & 38 deletions dist/worker.sql-asm.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/worker.sql-wasm-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,7 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
return results;
} catch (errCaught) {
if (stmt) stmt["free"]();
console.log('error when exec sql: ' + sql + ', params: ' + JSON.stringify(params) + ', error: ' + errCaught);
throw errCaught;
} finally {
stackRestore(stack);
Expand Down
82 changes: 41 additions & 41 deletions dist/worker.sql-wasm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@linhttbk97/indexdb-worker-sqljs",
"version": "1.0.2",
"version": "1.0.3",
"description": "SQLite library with support for opening and writing databases, prepared statements, and more. This SQLite library is in pure javascript (compiled with emscripten).",
"keywords": [
"sql",
Expand Down
1 change: 1 addition & 0 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,7 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
return results;
} catch (errCaught) {
if (stmt) stmt["free"]();
console.log('error when exec sql: ' + sql + ', params: ' + JSON.stringify(params) + ', error: ' + errCaught);
throw errCaught;
} finally {
stackRestore(stack);
Expand Down

0 comments on commit 340c668

Please sign in to comment.