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

Function A

public/sqljs/sql-wasm.js:1726–1782  ·  view source on GitHub ↗
(a, b, c, d)

Source from the content-addressed store, hash-verified

1724 a.La.Ta(a, { size: b, timestamp: Date.now() });
1725 }
1726 function A(a, b, c, d) {
1727 if ("" === a) throw new R(44);
1728 if ("string" === typeof b) {
1729 var f = Zb[b];
1730 if ("undefined" === typeof f)
1731 throw Error("Unknown file open mode: " + b);
1732 b = f;
1733 }
1734 c = b & 64 ? (("undefined" === typeof c ? 438 : c) & 4095) | 32768 : 0;
1735 if ("object" === typeof a) var h = a;
1736 else {
1737 a = z(a);
1738 try {
1739 h = W(a, { Xa: !(b & 131072) }).node;
1740 } catch (l) {}
1741 }
1742 f = !1;
1743 if (b & 64)
1744 if (h) {
1745 if (b & 128) throw new R(20);
1746 } else (h = ja(a, c, 0)), (f = !0);
1747 if (!h) throw new R(44);
1748 8192 === (h.mode & 61440) && (b &= -513);
1749 if (b & 65536 && !T(h.mode)) throw new R(54);
1750 if (
1751 !f &&
1752 (c = h
1753 ? 40960 === (h.mode & 61440)
1754 ? 32
1755 : T(h.mode) && ("r" !== $b(b) || b & 512)
1756 ? 31
1757 : Xb(h, $b(b))
1758 : 44)
1759 )
1760 throw new R(c);
1761 b & 512 && lc(h, 0);
1762 b &= -131713;
1763 d = dc(
1764 {
1765 node: h,
1766 path: Ub(h),
1767 id: h.id,
1768 flags: b,
1769 mode: h.mode,
1770 seekable: !0,
1771 position: 0,
1772 Ma: h.Ma,
1773 La: h.La,
1774 Pb: [],
1775 error: !1,
1776 },
1777 d
1778 );
1779 d.Ma.open && d.Ma.open(d);
1780 !e.logReadFiles || b & 1 || (mc || (mc = {}), a in mc || (mc[a] = 1));
1781 return d;
1782 }
1783 function ma(a) {

Callers 4

fFunction · 0.85
taFunction · 0.85
initSqlJsFunction · 0.85
aFunction · 0.85

Calls 9

zFunction · 0.85
WFunction · 0.85
jaFunction · 0.85
TFunction · 0.85
$bFunction · 0.85
XbFunction · 0.85
lcFunction · 0.85
dcFunction · 0.85
UbFunction · 0.85

Tested by

no test coverage detected