MCPcopy Index your code
hub / github.com/outerbase/studio / f

Function f

public/sqljs/sql-wasm.js:138–163  ·  view source on GitHub ↗
(g)

Source from the content-addressed store, hash-verified

136 this.Za = this.ob = null;
137 }
138 function f(g) {
139 this.filename = "dbfile_" + ((4294967295 * Math.random()) >>> 0);
140 if (null != g) {
141 var m = this.filename,
142 p = m ? z("//" + m) : "/";
143 m = ha(!0, !0);
144 p = ja(p, ((void 0 !== m ? m : 438) & 4095) | 32768, 0);
145 if (g) {
146 if ("string" === typeof g) {
147 for (var r = Array(g.length), u = 0, x = g.length; u < x; ++u)
148 r[u] = g.charCodeAt(u);
149 g = r;
150 }
151 ka(p, m | 146);
152 r = A(p, 577);
153 la(r, g, 0, g.length, 0, void 0);
154 ma(r);
155 ka(p, m);
156 }
157 }
158 this.handleError(q(this.filename, h));
159 this.db = k(h, "i32");
160 sb(this.db);
161 this.eb = {};
162 this.Sa = {};
163 }
164 var h = B(4),
165 l = e.cwrap,
166 q = l("sqlite3_open", "number", ["string", "number"]),

Callers 1

aFunction · 0.85

Calls 8

zFunction · 0.85
haFunction · 0.85
jaFunction · 0.85
kaFunction · 0.85
AFunction · 0.85
laFunction · 0.85
maFunction · 0.85
kFunction · 0.85

Tested by

no test coverage detected