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 6905c12 commit 451eaf7
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 109 deletions.
14 changes: 3 additions & 11 deletions dist/sql-asm-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,17 +415,6 @@ 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 Expand Up @@ -1391,6 +1380,9 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
FS.root = null;
FS.staticInit();
}
Module["createFileData"] = (data,filePath) =>{
FS.createDataFile("/", filePath, data, true, true);
}
};


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

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions dist/sql-asm.js

Large diffs are not rendered by default.

14 changes: 3 additions & 11 deletions dist/sql-wasm-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,17 +415,6 @@ 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 Expand Up @@ -1391,6 +1380,9 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
FS.root = null;
FS.staticInit();
}
Module["createFileData"] = (data,filePath) =>{
FS.createDataFile("/", filePath, data, true, true);
}
};


Expand Down
26 changes: 13 additions & 13 deletions dist/sql-wasm.js

Large diffs are not rendered by default.

14 changes: 3 additions & 11 deletions dist/worker.sql-asm-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,17 +415,6 @@ 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 Expand Up @@ -1391,6 +1380,9 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
FS.root = null;
FS.staticInit();
}
Module["createFileData"] = (data,filePath) =>{
FS.createDataFile("/", filePath, data, true, true);
}
};


Expand Down
26 changes: 13 additions & 13 deletions dist/worker.sql-asm.js

Large diffs are not rendered by default.

14 changes: 3 additions & 11 deletions dist/worker.sql-wasm-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,17 +415,6 @@ 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 Expand Up @@ -1391,6 +1380,9 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
FS.root = null;
FS.staticInit();
}
Module["createFileData"] = (data,filePath) =>{
FS.createDataFile("/", filePath, data, true, true);
}
};


Expand Down
26 changes: 13 additions & 13 deletions dist/worker.sql-wasm.js

Large diffs are not rendered by default.

0 comments on commit 451eaf7

Please sign in to comment.