Skip to content

Commit

Permalink
expose create file data
Browse files Browse the repository at this point in the history
  • Loading branch information
linhttbk97 committed Dec 10, 2023
1 parent 50d9404 commit a8fdace
Show file tree
Hide file tree
Showing 9 changed files with 259 additions and 215 deletions.
11 changes: 11 additions & 0 deletions dist/sql-asm-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,17 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
return true;
};

/** @classdesc
* Create a database file from a Uint8Array containing its contents
* @param {number[]} data An array of bytes representing
* an SQLite database file
* @param {string} filePath path to the database file
*/

this.prototype["createFileData"] = function createFileData(data,filePath) {
FS.createDataFile("/", filePath, data, true, true);
}

/** Execute the statement, fetching the the next line of result,
that can be retrieved with {@link Statement.get}.

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

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions dist/sql-asm.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions dist/sql-wasm-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,17 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
return true;
};

/** @classdesc
* Create a database file from a Uint8Array containing its contents
* @param {number[]} data An array of bytes representing
* an SQLite database file
* @param {string} filePath path to the database file
*/

this.prototype["createFileData"] = function createFileData(data,filePath) {
FS.createDataFile("/", filePath, data, true, true);
}

/** Execute the statement, fetching the the next line of result,
that can be retrieved with {@link Statement.get}.
Expand Down
110 changes: 55 additions & 55 deletions dist/sql-wasm.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions dist/worker.sql-asm-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,17 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
return true;
};

/** @classdesc
* Create a database file from a Uint8Array containing its contents
* @param {number[]} data An array of bytes representing
* an SQLite database file
* @param {string} filePath path to the database file
*/

this.prototype["createFileData"] = function createFileData(data,filePath) {
FS.createDataFile("/", filePath, data, true, true);
}

/** Execute the statement, fetching the the next line of result,
that can be retrieved with {@link Statement.get}.

Expand Down
70 changes: 35 additions & 35 deletions dist/worker.sql-asm.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions dist/worker.sql-wasm-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,17 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
return true;
};

/** @classdesc
* Create a database file from a Uint8Array containing its contents
* @param {number[]} data An array of bytes representing
* an SQLite database file
* @param {string} filePath path to the database file
*/

this.prototype["createFileData"] = function createFileData(data,filePath) {
FS.createDataFile("/", filePath, data, true, true);
}

/** Execute the statement, fetching the the next line of result,
that can be retrieved with {@link Statement.get}.
Expand Down
110 changes: 55 additions & 55 deletions dist/worker.sql-wasm.js

Large diffs are not rendered by default.

0 comments on commit a8fdace

Please sign in to comment.