Skip to content

Commit 6e2fcb5

Browse files
authored
Merge pull request #114 from rhashimoto/emsdk-update
Remove use of getValue(i64).
2 parents 7a977ed + 23bd3e4 commit 6e2fcb5

File tree

7 files changed

+207
-204
lines changed

7 files changed

+207
-204
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.DS_Store
2+
13
# https://yarnpkg.com/getting-started/qa/#which-files-should-be-gitignored
24
.yarn/*
35
!.yarn/patches

dist/wa-sqlite-async.mjs

Lines changed: 101 additions & 102 deletions
Large diffs are not rendered by default.

dist/wa-sqlite-async.wasm

-462 Bytes
Binary file not shown.

dist/wa-sqlite.mjs

Lines changed: 97 additions & 98 deletions
Large diffs are not rendered by default.

dist/wa-sqlite.wasm

-373 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wa-sqlite",
3-
"version": "0.9.5",
3+
"version": "0.9.6",
44
"type": "module",
55
"main": "src/sqlite-api.js",
66
"types": "src/types/index.d.ts",

src/libmodule.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,11 @@ const mod_methods = {
8989
struct['idxStr'] = null;
9090
struct['orderByConsumed'] = !!getValue(p + offset[8], 'i8');
9191
struct['estimatedCost'] = getValue(p + offset[9], 'double');
92-
struct['estimatedRows'] = getValue(p + offset[10], 'i64');
92+
// TODO: Get i64 as bigint.
93+
struct['estimatedRows'] = getValue(p + offset[10], 'i32');
9394
struct['idxFlags'] = getValue(p + offset[11], 'i32');
94-
struct['colUsed'] = getValue(p + offset[12], 'i64');
95+
// TODO: Get i64 as bigint.
96+
struct['colUsed'] = getValue(p + offset[12], 'i32');
9597
return struct;
9698
}
9799

@@ -134,7 +136,8 @@ const mod_methods = {
134136
}
135137
setValue(p + offset[8], struct['orderByConsumed'], 'i32');
136138
setValue(p + offset[9], struct['estimatedCost'], 'double');
137-
setValue(p + offset[10], struct['estimatedRows'], 'i64');
139+
// TODO: Get i64 as bigint.
140+
setValue(p + offset[10], struct['estimatedRows'], 'i32');
138141
setValue(p + offset[11], struct['idxFlags'], 'i32');
139142
}
140143

0 commit comments

Comments
 (0)