Skip to content

Commit

Permalink
Merge pull request #114 from rhashimoto/emsdk-update
Browse files Browse the repository at this point in the history
Remove use of getValue(i64).
  • Loading branch information
rhashimoto authored Oct 8, 2023
2 parents 7a977ed + 23bd3e4 commit 6e2fcb5
Show file tree
Hide file tree
Showing 7 changed files with 207 additions and 204 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store

# https://yarnpkg.com/getting-started/qa/#which-files-should-be-gitignored
.yarn/*
!.yarn/patches
Expand Down
203 changes: 101 additions & 102 deletions dist/wa-sqlite-async.mjs

Large diffs are not rendered by default.

Binary file modified dist/wa-sqlite-async.wasm
Binary file not shown.
195 changes: 97 additions & 98 deletions dist/wa-sqlite.mjs

Large diffs are not rendered by default.

Binary file modified dist/wa-sqlite.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wa-sqlite",
"version": "0.9.5",
"version": "0.9.6",
"type": "module",
"main": "src/sqlite-api.js",
"types": "src/types/index.d.ts",
Expand Down
9 changes: 6 additions & 3 deletions src/libmodule.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ const mod_methods = {
struct['idxStr'] = null;
struct['orderByConsumed'] = !!getValue(p + offset[8], 'i8');
struct['estimatedCost'] = getValue(p + offset[9], 'double');
struct['estimatedRows'] = getValue(p + offset[10], 'i64');
// TODO: Get i64 as bigint.
struct['estimatedRows'] = getValue(p + offset[10], 'i32');
struct['idxFlags'] = getValue(p + offset[11], 'i32');
struct['colUsed'] = getValue(p + offset[12], 'i64');
// TODO: Get i64 as bigint.
struct['colUsed'] = getValue(p + offset[12], 'i32');
return struct;
}

Expand Down Expand Up @@ -134,7 +136,8 @@ const mod_methods = {
}
setValue(p + offset[8], struct['orderByConsumed'], 'i32');
setValue(p + offset[9], struct['estimatedCost'], 'double');
setValue(p + offset[10], struct['estimatedRows'], 'i64');
// TODO: Get i64 as bigint.
setValue(p + offset[10], struct['estimatedRows'], 'i32');
setValue(p + offset[11], struct['idxFlags'], 'i32');
}

Expand Down

0 comments on commit 6e2fcb5

Please sign in to comment.