MCPcopy Index your code
hub / github.com/sql-js/sql.js / Database

Function Database

js/sql-debug.js:404204–404213  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

404202
404203Database = (function() {
404204 function Database(data) {
404205 this.filename = 'dbfile_' + (0xffffffff * Math.random() >>> 0);
404206 if (data != null) {
404207 FS.createDataFile('/', this.filename, data, true, true);
404208 }
404209 this.handleError(sqlite3_open(this.filename, apiTemp));
404210 this.db = getValue(apiTemp, 'i32');
404211 RegisterExtensionFunctions(this.db);
404212 this.statements = {};
404213 }
404214
404215
404216 /* Execute an SQL query, ignoring the rows it returns.

Callers

nothing calls this directly

Calls 1

getValueFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…