Skip to content

Commit

Permalink
Deploying to gh-pages from @ ea6ae62 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Jan 12, 2024
1 parent 916ede3 commit 74c4749
Show file tree
Hide file tree
Showing 13 changed files with 296 additions and 287 deletions.
1 change: 1 addition & 0 deletions dist/sql-asm-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -1177,6 +1177,7 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
var binaryDb = FS.readFile(this.filename, { encoding: "binary" });
this.handleError(sqlite3_open(this.filename, apiTemp));
this.db = getValue(apiTemp, "i32");
registerExtensionFunctions(this.db);
return binaryDb;
};

Expand Down
112 changes: 56 additions & 56 deletions dist/sql-asm-memory-growth.js

Large diffs are not rendered by default.

114 changes: 57 additions & 57 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 @@ -1177,6 +1177,7 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
var binaryDb = FS.readFile(this.filename, { encoding: "binary" });
this.handleError(sqlite3_open(this.filename, apiTemp));
this.db = getValue(apiTemp, "i32");
registerExtensionFunctions(this.db);
return binaryDb;
};

Expand Down
114 changes: 57 additions & 57 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 @@ -1177,6 +1177,7 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
var binaryDb = FS.readFile(this.filename, { encoding: "binary" });
this.handleError(sqlite3_open(this.filename, apiTemp));
this.db = getValue(apiTemp, "i32");
registerExtensionFunctions(this.db);
return binaryDb;
};

Expand Down
114 changes: 57 additions & 57 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 @@ -1177,6 +1177,7 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
var binaryDb = FS.readFile(this.filename, { encoding: "binary" });
this.handleError(sqlite3_open(this.filename, apiTemp));
this.db = getValue(apiTemp, "i32");
registerExtensionFunctions(this.db);
return binaryDb;
};

Expand Down
114 changes: 57 additions & 57 deletions dist/worker.sql-wasm.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions documentation/Database.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions documentation/api.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,7 @@
var binaryDb = FS.readFile(this.filename, { encoding: "binary" });
this.handleError(sqlite3_open(this.filename, apiTemp));
this.db = getValue(apiTemp, "i32");
registerExtensionFunctions(this.db);
return binaryDb;
};

Expand Down
1 change: 1 addition & 0 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1088,6 +1088,7 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
var binaryDb = FS.readFile(this.filename, { encoding: "binary" });
this.handleError(sqlite3_open(this.filename, apiTemp));
this.db = getValue(apiTemp, "i32");
registerExtensionFunctions(this.db);
return binaryDb;
};

Expand Down
3 changes: 3 additions & 0 deletions test/test_extension_functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ exports.test = function(sql, assert) {
var res = db.exec("SELECT reverse(str_data) FROM test;");
assert.equal(res[0]['values'][0][0], "!dlroW olleH", "reverse() function works");

db.export()
var res = db.exec("SELECT floor(4.1)");
assert.equal(res[0]['values'][0][0], 4, "extension function works after export()");
};

if (module == require.main) {
Expand Down

0 comments on commit 74c4749

Please sign in to comment.