@prisma-next/sql-runtime 0.1.0-dev.14 → 0.1.0-dev.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accelerate-EEKAFGN3-SHR4XFVV.js +137863 -0
- package/dist/accelerate-EEKAFGN3-SHR4XFVV.js.map +1 -0
- package/dist/amcheck-24VY6X5V.js +13 -0
- package/dist/amcheck-24VY6X5V.js.map +1 -0
- package/dist/bloom-VS74NLHT.js +13 -0
- package/dist/bloom-VS74NLHT.js.map +1 -0
- package/dist/btree_gin-WBC4EAAI.js +13 -0
- package/dist/btree_gin-WBC4EAAI.js.map +1 -0
- package/dist/btree_gist-UNC6QD3M.js +13 -0
- package/dist/btree_gist-UNC6QD3M.js.map +1 -0
- package/dist/chunk-3KTOEDFX.js +49 -0
- package/dist/chunk-3KTOEDFX.js.map +1 -0
- package/dist/chunk-47DZBRQC.js +1280 -0
- package/dist/chunk-47DZBRQC.js.map +1 -0
- package/dist/chunk-52N6AFZM.js +133 -0
- package/dist/chunk-52N6AFZM.js.map +1 -0
- package/dist/chunk-7D4SUZUM.js +38 -0
- package/dist/chunk-7D4SUZUM.js.map +1 -0
- package/dist/chunk-7UNP42HJ.js +455 -0
- package/dist/chunk-7UNP42HJ.js.map +1 -0
- package/dist/chunk-ECWIHLAT.js +37 -0
- package/dist/chunk-ECWIHLAT.js.map +1 -0
- package/dist/chunk-EI626SDC.js +105 -0
- package/dist/chunk-EI626SDC.js.map +1 -0
- package/dist/chunk-UKKOYUGL.js +578 -0
- package/dist/chunk-UKKOYUGL.js.map +1 -0
- package/dist/chunk-XPLNMXQV.js +1537 -0
- package/dist/chunk-XPLNMXQV.js.map +1 -0
- package/dist/citext-T7MXGUY7.js +13 -0
- package/dist/citext-T7MXGUY7.js.map +1 -0
- package/dist/client-5FENX6AW.js +299 -0
- package/dist/client-5FENX6AW.js.map +1 -0
- package/dist/cube-TFDQBZCI.js +13 -0
- package/dist/cube-TFDQBZCI.js.map +1 -0
- package/dist/dict_int-AEUOPGWP.js +13 -0
- package/dist/dict_int-AEUOPGWP.js.map +1 -0
- package/dist/dict_xsyn-DAAYX3FL.js +13 -0
- package/dist/dict_xsyn-DAAYX3FL.js.map +1 -0
- package/dist/dist-LBVX6BJW.js +189 -0
- package/dist/dist-LBVX6BJW.js.map +1 -0
- package/dist/dist-LCVVJCGI.js +570 -0
- package/dist/dist-LCVVJCGI.js.map +1 -0
- package/dist/dist-WLKUVDN2.js +5127 -0
- package/dist/dist-WLKUVDN2.js.map +1 -0
- package/dist/earthdistance-KIGTF4LE.js +13 -0
- package/dist/earthdistance-KIGTF4LE.js.map +1 -0
- package/dist/file_fdw-5N55UP6I.js +13 -0
- package/dist/file_fdw-5N55UP6I.js.map +1 -0
- package/dist/fuzzystrmatch-KN3YWBFP.js +13 -0
- package/dist/fuzzystrmatch-KN3YWBFP.js.map +1 -0
- package/dist/hstore-YX726NKN.js +13 -0
- package/dist/hstore-YX726NKN.js.map +1 -0
- package/dist/http-exception-FZY2H4OF.js +8 -0
- package/dist/http-exception-FZY2H4OF.js.map +1 -0
- package/dist/index.d.ts +7 -59
- package/dist/index.js +15 -439
- package/dist/index.js.map +1 -1
- package/dist/intarray-NKVXNO2D.js +13 -0
- package/dist/intarray-NKVXNO2D.js.map +1 -0
- package/dist/isn-FTEMJGEV.js +13 -0
- package/dist/isn-FTEMJGEV.js.map +1 -0
- package/dist/lo-DB7L4NGI.js +13 -0
- package/dist/lo-DB7L4NGI.js.map +1 -0
- package/dist/logger-WQ7SHNDD.js +68 -0
- package/dist/logger-WQ7SHNDD.js.map +1 -0
- package/dist/ltree-Z32TZT6W.js +13 -0
- package/dist/ltree-Z32TZT6W.js.map +1 -0
- package/dist/nodefs-NM46ACH7.js +31 -0
- package/dist/nodefs-NM46ACH7.js.map +1 -0
- package/dist/opfs-ahp-NJO33LVZ.js +332 -0
- package/dist/opfs-ahp-NJO33LVZ.js.map +1 -0
- package/dist/pageinspect-YP3IZR4X.js +13 -0
- package/dist/pageinspect-YP3IZR4X.js.map +1 -0
- package/dist/pg_buffercache-7TD5J2FB.js +13 -0
- package/dist/pg_buffercache-7TD5J2FB.js.map +1 -0
- package/dist/pg_dump-SG4KYBUB.js +2492 -0
- package/dist/pg_dump-SG4KYBUB.js.map +1 -0
- package/dist/pg_freespacemap-DZDNCPZK.js +13 -0
- package/dist/pg_freespacemap-DZDNCPZK.js.map +1 -0
- package/dist/pg_surgery-J2MUEWEP.js +13 -0
- package/dist/pg_surgery-J2MUEWEP.js.map +1 -0
- package/dist/pg_trgm-7VNQOYS6.js +13 -0
- package/dist/pg_trgm-7VNQOYS6.js.map +1 -0
- package/dist/pg_visibility-TTSIPHFL.js +13 -0
- package/dist/pg_visibility-TTSIPHFL.js.map +1 -0
- package/dist/pg_walinspect-KPFHSHRJ.js +13 -0
- package/dist/pg_walinspect-KPFHSHRJ.js.map +1 -0
- package/dist/proxy-signals-GUDAMDHV.js +39 -0
- package/dist/proxy-signals-GUDAMDHV.js.map +1 -0
- package/dist/seg-IYVDLE4O.js +13 -0
- package/dist/seg-IYVDLE4O.js.map +1 -0
- package/dist/sql-runtime-qPimiOqJ.d.ts +63 -0
- package/dist/tablefunc-EF4RCS7S.js +13 -0
- package/dist/tablefunc-EF4RCS7S.js.map +1 -0
- package/dist/tcn-3VT5BQYW.js +13 -0
- package/dist/tcn-3VT5BQYW.js.map +1 -0
- package/dist/test/utils.d.ts +60 -0
- package/dist/test/utils.js +24604 -0
- package/dist/test/utils.js.map +1 -0
- package/dist/tiny-CW6F4GX6.js +10 -0
- package/dist/tiny-CW6F4GX6.js.map +1 -0
- package/dist/tsm_system_rows-ES7KNUQH.js +13 -0
- package/dist/tsm_system_rows-ES7KNUQH.js.map +1 -0
- package/dist/tsm_system_time-76WEIMBG.js +13 -0
- package/dist/tsm_system_time-76WEIMBG.js.map +1 -0
- package/dist/unaccent-7RYF3R64.js +13 -0
- package/dist/unaccent-7RYF3R64.js.map +1 -0
- package/dist/utility-Q5A254LJ-J4HTKZPT.js +347 -0
- package/dist/utility-Q5A254LJ-J4HTKZPT.js.map +1 -0
- package/dist/uuid_ossp-4ETE4FPE.js +13 -0
- package/dist/uuid_ossp-4ETE4FPE.js.map +1 -0
- package/dist/vector-74GPNV7V.js +13 -0
- package/dist/vector-74GPNV7V.js.map +1 -0
- package/package.json +9 -9
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
u
|
|
3
|
+
} from "./chunk-3KTOEDFX.js";
|
|
4
|
+
import "./chunk-7D4SUZUM.js";
|
|
5
|
+
|
|
6
|
+
// ../../../node_modules/.pnpm/@electric-sql+pglite@0.3.14/node_modules/@electric-sql/pglite/dist/contrib/pg_freespacemap.js
|
|
7
|
+
u();
|
|
8
|
+
var t = async (s, n) => ({ bundlePath: new URL("../pg_freespacemap.tar.gz", import.meta.url) });
|
|
9
|
+
var r = { name: "pg_freespacemap", setup: t };
|
|
10
|
+
export {
|
|
11
|
+
r as pg_freespacemap
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=pg_freespacemap-DZDNCPZK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/.pnpm/@electric-sql+pglite@0.3.14/node_modules/@electric-sql/pglite/src/contrib/pg_freespacemap.ts"],"sourcesContent":["import type {\n Extension,\n ExtensionSetupResult,\n PGliteInterface,\n} from '../interface'\n\nconst setup = async (_pg: PGliteInterface, _emscriptenOpts: any) => {\n return {\n bundlePath: new URL(\n '../../release/pg_freespacemap.tar.gz',\n import.meta.url,\n ),\n } satisfies ExtensionSetupResult\n}\n\nexport const pg_freespacemap = {\n name: 'pg_freespacemap',\n setup,\n} satisfies Extension\n"],"mappings":";;;;;;AAAAA,EAAAA;AAMA,IAAMC,IAAQ,OAAOC,GAAsBC,OAClC,EACL,YAAY,IAAI,IACd,6BAAA,YACA,GAAA,EAAA;AAJN,IAIM,IAAA,EAAA,MAEJ,mBAIM,OAAA,EAAA;","names":["init_esm_shims","setup","_pg","_emscriptenOpts"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
u
|
|
3
|
+
} from "./chunk-3KTOEDFX.js";
|
|
4
|
+
import "./chunk-7D4SUZUM.js";
|
|
5
|
+
|
|
6
|
+
// ../../../node_modules/.pnpm/@electric-sql+pglite@0.3.14/node_modules/@electric-sql/pglite/dist/contrib/pg_surgery.js
|
|
7
|
+
u();
|
|
8
|
+
var t = async (s, n) => ({ bundlePath: new URL("../pg_surgery.tar.gz", import.meta.url) });
|
|
9
|
+
var p = { name: "pg_surgery", setup: t };
|
|
10
|
+
export {
|
|
11
|
+
p as pg_surgery
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=pg_surgery-J2MUEWEP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/.pnpm/@electric-sql+pglite@0.3.14/node_modules/@electric-sql/pglite/src/contrib/pg_surgery.ts"],"sourcesContent":["import type {\n Extension,\n ExtensionSetupResult,\n PGliteInterface,\n} from '../interface'\n\nconst setup = async (_pg: PGliteInterface, _emscriptenOpts: any) => {\n return {\n bundlePath: new URL('../../release/pg_surgery.tar.gz', import.meta.url),\n } satisfies ExtensionSetupResult\n}\n\nexport const pg_surgery = {\n name: 'pg_surgery',\n setup,\n} satisfies Extension\n"],"mappings":";;;;;;AAAAA,EAAAA;AAMA,IAAMC,IAAQ,OAAOC,GAAsBC,OAClC,EACL,YAAY,IAAI,IAAI,wBAAA,YAAmC,GAAA,EAAA;AAF3D,IAE2D,IAAA,EAAA,MACzD,cAIM,OAAA,EAAA;","names":["init_esm_shims","setup","_pg","_emscriptenOpts"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
u
|
|
3
|
+
} from "./chunk-3KTOEDFX.js";
|
|
4
|
+
import "./chunk-7D4SUZUM.js";
|
|
5
|
+
|
|
6
|
+
// ../../../node_modules/.pnpm/@electric-sql+pglite@0.3.14/node_modules/@electric-sql/pglite/dist/contrib/pg_trgm.js
|
|
7
|
+
u();
|
|
8
|
+
var t = async (n, s) => ({ bundlePath: new URL("../pg_trgm.tar.gz", import.meta.url) });
|
|
9
|
+
var p = { name: "pg_trgm", setup: t };
|
|
10
|
+
export {
|
|
11
|
+
p as pg_trgm
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=pg_trgm-7VNQOYS6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/.pnpm/@electric-sql+pglite@0.3.14/node_modules/@electric-sql/pglite/src/contrib/pg_trgm.ts"],"sourcesContent":["import type {\n Extension,\n ExtensionSetupResult,\n PGliteInterface,\n} from '../interface'\n\nconst setup = async (_pg: PGliteInterface, _emscriptenOpts: any) => {\n return {\n bundlePath: new URL('../../release/pg_trgm.tar.gz', import.meta.url),\n } satisfies ExtensionSetupResult\n}\n\nexport const pg_trgm = {\n name: 'pg_trgm',\n setup,\n} satisfies Extension\n"],"mappings":";;;;;;AAAAA,EAAAA;AAMA,IAAMC,IAAQ,OAAOC,GAAsBC,OAClC,EACL,YAAY,IAAI,IAAI,qBAAA,YAAgC,GAAA,EAAA;AAFxD,IAEwD,IAAA,EAAA,MACtD,WAIA,OAAM,EAAA;","names":["init_esm_shims","setup","_pg","_emscriptenOpts"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
u
|
|
3
|
+
} from "./chunk-3KTOEDFX.js";
|
|
4
|
+
import "./chunk-7D4SUZUM.js";
|
|
5
|
+
|
|
6
|
+
// ../../../node_modules/.pnpm/@electric-sql+pglite@0.3.14/node_modules/@electric-sql/pglite/dist/contrib/pg_visibility.js
|
|
7
|
+
u();
|
|
8
|
+
var t = async (i, s) => ({ bundlePath: new URL("../pg_visibility.tar.gz", import.meta.url) });
|
|
9
|
+
var r = { name: "pg_visibility", setup: t };
|
|
10
|
+
export {
|
|
11
|
+
r as pg_visibility
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=pg_visibility-TTSIPHFL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/.pnpm/@electric-sql+pglite@0.3.14/node_modules/@electric-sql/pglite/src/contrib/pg_visibility.ts"],"sourcesContent":["import type {\n Extension,\n ExtensionSetupResult,\n PGliteInterface,\n} from '../interface'\n\nconst setup = async (_pg: PGliteInterface, _emscriptenOpts: any) => {\n return {\n bundlePath: new URL('../../release/pg_visibility.tar.gz', import.meta.url),\n } satisfies ExtensionSetupResult\n}\n\nexport const pg_visibility = {\n name: 'pg_visibility',\n setup,\n} satisfies Extension\n"],"mappings":";;;;;;AAAAA,EAAAA;AAMA,IAAMC,IAAQ,OAAOC,GAAsBC,OAClC,EACL,YAAY,IAAI,IAAI,2BAAA,YAAsC,GAAA,EAAA;AAF9D,IAE8D,IAAA,EAAA,MAC5D,iBAIM,OAAA,EAAA;","names":["init_esm_shims","setup","_pg","_emscriptenOpts"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
u
|
|
3
|
+
} from "./chunk-3KTOEDFX.js";
|
|
4
|
+
import "./chunk-7D4SUZUM.js";
|
|
5
|
+
|
|
6
|
+
// ../../../node_modules/.pnpm/@electric-sql+pglite@0.3.14/node_modules/@electric-sql/pglite/dist/contrib/pg_walinspect.js
|
|
7
|
+
u();
|
|
8
|
+
var t = async (n, s) => ({ bundlePath: new URL("../pg_walinspect.tar.gz", import.meta.url) });
|
|
9
|
+
var a = { name: "pg_walinspect", setup: t };
|
|
10
|
+
export {
|
|
11
|
+
a as pg_walinspect
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=pg_walinspect-KPFHSHRJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/.pnpm/@electric-sql+pglite@0.3.14/node_modules/@electric-sql/pglite/src/contrib/pg_walinspect.ts"],"sourcesContent":["import type {\n Extension,\n ExtensionSetupResult,\n PGliteInterface,\n} from '../interface'\n\nconst setup = async (_pg: PGliteInterface, _emscriptenOpts: any) => {\n return {\n bundlePath: new URL('../../release/pg_walinspect.tar.gz', import.meta.url),\n } satisfies ExtensionSetupResult\n}\n\nexport const pg_walinspect = {\n name: 'pg_walinspect',\n setup,\n} satisfies Extension\n"],"mappings":";;;;;;AAAAA,EAAAA;AAMA,IAAMC,IAAQ,OAAOC,GAAsBC,OAClC,EACL,YAAY,IAAI,IAAI,2BAAA,YAAsC,GAAA,EAAA;AAF9D,IAE8D,IAAA,EAAA,MAC5D,iBAIM,OAAA,EAAA;","names":["init_esm_shims","setup","_pg","_emscriptenOpts"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import "./chunk-7D4SUZUM.js";
|
|
2
|
+
|
|
3
|
+
// ../../../node_modules/.pnpm/foreground-child@3.3.1/node_modules/foreground-child/dist/esm/all-signals.js
|
|
4
|
+
import constants from "constants";
|
|
5
|
+
var allSignals = (
|
|
6
|
+
// this is the full list of signals that Node will let us do anything with
|
|
7
|
+
Object.keys(constants).filter((k) => k.startsWith("SIG") && // https://github.com/tapjs/signal-exit/issues/21
|
|
8
|
+
k !== "SIGPROF" && // no sense trying to listen for SIGKILL, it's impossible
|
|
9
|
+
k !== "SIGKILL")
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
// ../../../node_modules/.pnpm/foreground-child@3.3.1/node_modules/foreground-child/dist/esm/proxy-signals.js
|
|
13
|
+
var proxySignals = (child) => {
|
|
14
|
+
const listeners = /* @__PURE__ */ new Map();
|
|
15
|
+
for (const sig of allSignals) {
|
|
16
|
+
const listener = () => {
|
|
17
|
+
try {
|
|
18
|
+
child.kill(sig);
|
|
19
|
+
} catch (_) {
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
try {
|
|
23
|
+
process.on(sig, listener);
|
|
24
|
+
listeners.set(sig, listener);
|
|
25
|
+
} catch (_) {
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const unproxy = () => {
|
|
29
|
+
for (const [sig, listener] of listeners) {
|
|
30
|
+
process.removeListener(sig, listener);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
child.on("exit", unproxy);
|
|
34
|
+
return unproxy;
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
proxySignals
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=proxy-signals-GUDAMDHV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/.pnpm/foreground-child@3.3.1/node_modules/foreground-child/src/all-signals.ts","../../../../node_modules/.pnpm/foreground-child@3.3.1/node_modules/foreground-child/src/proxy-signals.ts"],"sourcesContent":["import constants from 'node:constants'\nexport const allSignals =\n // this is the full list of signals that Node will let us do anything with\n Object.keys(constants).filter(\n k =>\n k.startsWith('SIG') &&\n // https://github.com/tapjs/signal-exit/issues/21\n k !== 'SIGPROF' &&\n // no sense trying to listen for SIGKILL, it's impossible\n k !== 'SIGKILL',\n ) as NodeJS.Signals[]\n\n// These are some obscure signals that are reported by kill -l\n// on macOS, Linux, or Windows, but which don't have any mapping\n// in Node.js. No sense trying if they're just going to throw\n// every time on every platform.\n//\n// 'SIGEMT',\n// 'SIGLOST',\n// 'SIGPOLL',\n// 'SIGRTMAX',\n// 'SIGRTMAX-1',\n// 'SIGRTMAX-10',\n// 'SIGRTMAX-11',\n// 'SIGRTMAX-12',\n// 'SIGRTMAX-13',\n// 'SIGRTMAX-14',\n// 'SIGRTMAX-15',\n// 'SIGRTMAX-2',\n// 'SIGRTMAX-3',\n// 'SIGRTMAX-4',\n// 'SIGRTMAX-5',\n// 'SIGRTMAX-6',\n// 'SIGRTMAX-7',\n// 'SIGRTMAX-8',\n// 'SIGRTMAX-9',\n// 'SIGRTMIN',\n// 'SIGRTMIN+1',\n// 'SIGRTMIN+10',\n// 'SIGRTMIN+11',\n// 'SIGRTMIN+12',\n// 'SIGRTMIN+13',\n// 'SIGRTMIN+14',\n// 'SIGRTMIN+15',\n// 'SIGRTMIN+16',\n// 'SIGRTMIN+2',\n// 'SIGRTMIN+3',\n// 'SIGRTMIN+4',\n// 'SIGRTMIN+5',\n// 'SIGRTMIN+6',\n// 'SIGRTMIN+7',\n// 'SIGRTMIN+8',\n// 'SIGRTMIN+9',\n// 'SIGSTKFLT',\n// 'SIGUNUSED',\n","import { type ChildProcess } from 'child_process'\nimport { allSignals } from './all-signals.js'\n\n/**\n * Starts forwarding signals to `child` through `parent`.\n */\nexport const proxySignals = (child: ChildProcess) => {\n const listeners = new Map()\n\n for (const sig of allSignals) {\n const listener = () => {\n // some signals can only be received, not sent\n try {\n child.kill(sig)\n /* c8 ignore start */\n } catch (_) {}\n /* c8 ignore stop */\n }\n try {\n // if it's a signal this system doesn't recognize, skip it\n process.on(sig, listener)\n listeners.set(sig, listener)\n /* c8 ignore start */\n } catch (_) {}\n /* c8 ignore stop */\n }\n\n const unproxy = () => {\n for (const [sig, listener] of listeners) {\n process.removeListener(sig, listener)\n }\n }\n child.on('exit', unproxy)\n return unproxy\n}\n"],"mappings":";;;AAAA,OAAO,eAAe;AACf,IAAM;;EAEX,OAAO,KAAK,SAAS,EAAE,OACrB,OACE,EAAE,WAAW,KAAK;EAElB,MAAM;EAEN,MAAM,SAAS;;;;ACHd,IAAM,eAAe,CAAC,UAAuB;AAClD,QAAM,YAAY,oBAAI,IAAG;AAEzB,aAAW,OAAO,YAAY;AAC5B,UAAM,WAAW,MAAK;AAEpB,UAAI;AACF,cAAM,KAAK,GAAG;MAEhB,SAAS,GAAG;MAAC;IAEf;AACA,QAAI;AAEF,cAAQ,GAAG,KAAK,QAAQ;AACxB,gBAAU,IAAI,KAAK,QAAQ;IAE7B,SAAS,GAAG;IAAC;EAEf;AAEA,QAAM,UAAU,MAAK;AACnB,eAAW,CAAC,KAAK,QAAQ,KAAK,WAAW;AACvC,cAAQ,eAAe,KAAK,QAAQ;IACtC;EACF;AACA,QAAM,GAAG,QAAQ,OAAO;AACxB,SAAO;AACT;","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
u
|
|
3
|
+
} from "./chunk-3KTOEDFX.js";
|
|
4
|
+
import "./chunk-7D4SUZUM.js";
|
|
5
|
+
|
|
6
|
+
// ../../../node_modules/.pnpm/@electric-sql+pglite@0.3.14/node_modules/@electric-sql/pglite/dist/contrib/seg.js
|
|
7
|
+
u();
|
|
8
|
+
var t = async (s, n) => ({ bundlePath: new URL("../seg.tar.gz", import.meta.url) });
|
|
9
|
+
var a = { name: "seg", setup: t };
|
|
10
|
+
export {
|
|
11
|
+
a as seg
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=seg-IYVDLE4O.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/.pnpm/@electric-sql+pglite@0.3.14/node_modules/@electric-sql/pglite/src/contrib/seg.ts"],"sourcesContent":["import type {\n Extension,\n ExtensionSetupResult,\n PGliteInterface,\n} from '../interface'\n\nconst setup = async (_pg: PGliteInterface, _emscriptenOpts: any) => {\n return {\n bundlePath: new URL('../../release/seg.tar.gz', import.meta.url),\n } satisfies ExtensionSetupResult\n}\n\nexport const seg = {\n name: 'seg',\n setup,\n} satisfies Extension\n"],"mappings":";;;;;;AAAAA,EAAAA;AAMA,IAAMC,IAAQ,OAAOC,GAAsBC,OAClC,EACL,YAAY,IAAI,IAAI,iBAAA,YAA4B,GAAA,EAAA;AAFpD,IAEoD,IAAA,EAAA,MAClD,OAIA,OAAM,EAAA;","names":["init_esm_shims","setup","_pg","_emscriptenOpts"]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { MarkerStatement, AsyncIterableResult, RuntimeTelemetryEvent, RuntimeVerifyOptions, Plugin, Log } from '@prisma-next/runtime-executor';
|
|
2
|
+
import { ExecutionPlan } from '@prisma-next/contract/types';
|
|
3
|
+
import { OperationRegistry } from '@prisma-next/operations';
|
|
4
|
+
import { SqlContract, SqlStorage } from '@prisma-next/sql-contract/types';
|
|
5
|
+
import { Adapter, QueryAst, LoweredStatement, CodecRegistry, SelectAst, SqlDriver } from '@prisma-next/sql-relational-core/ast';
|
|
6
|
+
import { SqlQueryPlan } from '@prisma-next/sql-relational-core/plan';
|
|
7
|
+
import { SqlOperationSignature } from '@prisma-next/sql-operations';
|
|
8
|
+
import { QueryLaneContext } from '@prisma-next/sql-relational-core/query-lane-context';
|
|
9
|
+
|
|
10
|
+
interface RuntimeContext<TContract extends SqlContract<SqlStorage> = SqlContract<SqlStorage>> extends QueryLaneContext<TContract> {
|
|
11
|
+
readonly adapter: Adapter<QueryAst, TContract, LoweredStatement> | Adapter<QueryAst, SqlContract<SqlStorage>, LoweredStatement>;
|
|
12
|
+
}
|
|
13
|
+
interface Extension {
|
|
14
|
+
codecs?(): CodecRegistry;
|
|
15
|
+
operations?(): ReadonlyArray<SqlOperationSignature>;
|
|
16
|
+
}
|
|
17
|
+
interface CreateRuntimeContextOptions<TContract extends SqlContract<SqlStorage> = SqlContract<SqlStorage>> {
|
|
18
|
+
readonly contract: TContract;
|
|
19
|
+
readonly adapter: Adapter<QueryAst, TContract, LoweredStatement> | Adapter<QueryAst, SqlContract<SqlStorage>, LoweredStatement>;
|
|
20
|
+
readonly extensions?: ReadonlyArray<Extension>;
|
|
21
|
+
}
|
|
22
|
+
declare function createRuntimeContext<TContract extends SqlContract<SqlStorage> = SqlContract<SqlStorage>>(options: CreateRuntimeContextOptions<TContract>): RuntimeContext<TContract>;
|
|
23
|
+
|
|
24
|
+
interface SqlStatement {
|
|
25
|
+
readonly sql: string;
|
|
26
|
+
readonly params: readonly unknown[];
|
|
27
|
+
}
|
|
28
|
+
interface WriteMarkerInput {
|
|
29
|
+
readonly coreHash: string;
|
|
30
|
+
readonly profileHash: string;
|
|
31
|
+
readonly contractJson?: unknown;
|
|
32
|
+
readonly canonicalVersion?: number;
|
|
33
|
+
readonly appTag?: string;
|
|
34
|
+
readonly meta?: Record<string, unknown>;
|
|
35
|
+
}
|
|
36
|
+
declare const ensureSchemaStatement: SqlStatement;
|
|
37
|
+
declare const ensureTableStatement: SqlStatement;
|
|
38
|
+
declare function readContractMarker(): MarkerStatement;
|
|
39
|
+
interface WriteContractMarkerStatements {
|
|
40
|
+
readonly insert: SqlStatement;
|
|
41
|
+
readonly update: SqlStatement;
|
|
42
|
+
}
|
|
43
|
+
declare function writeContractMarker(input: WriteMarkerInput): WriteContractMarkerStatements;
|
|
44
|
+
|
|
45
|
+
interface RuntimeOptions<TContract extends SqlContract<SqlStorage> = SqlContract<SqlStorage>> {
|
|
46
|
+
readonly adapter: Adapter<SelectAst, SqlContract<SqlStorage>, LoweredStatement>;
|
|
47
|
+
readonly driver: SqlDriver;
|
|
48
|
+
readonly verify: RuntimeVerifyOptions;
|
|
49
|
+
readonly context: RuntimeContext<TContract>;
|
|
50
|
+
readonly plugins?: readonly Plugin<TContract, Adapter<SelectAst, SqlContract<SqlStorage>, LoweredStatement>, SqlDriver>[];
|
|
51
|
+
readonly mode?: 'strict' | 'permissive';
|
|
52
|
+
readonly log?: Log;
|
|
53
|
+
}
|
|
54
|
+
interface Runtime {
|
|
55
|
+
execute<Row = Record<string, unknown>>(plan: ExecutionPlan<Row> | SqlQueryPlan<Row>): AsyncIterableResult<Row>;
|
|
56
|
+
telemetry(): RuntimeTelemetryEvent | null;
|
|
57
|
+
close(): Promise<void>;
|
|
58
|
+
operations(): OperationRegistry;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
declare function createRuntime<TContract extends SqlContract<SqlStorage>>(options: RuntimeOptions<TContract>): Runtime;
|
|
62
|
+
|
|
63
|
+
export { type Extension as E, type RuntimeContext as R, type SqlStatement as S, ensureTableStatement as a, type Runtime as b, createRuntimeContext as c, type RuntimeOptions as d, ensureSchemaStatement as e, createRuntime as f, readContractMarker as r, writeContractMarker as w };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
u
|
|
3
|
+
} from "./chunk-3KTOEDFX.js";
|
|
4
|
+
import "./chunk-7D4SUZUM.js";
|
|
5
|
+
|
|
6
|
+
// ../../../node_modules/.pnpm/@electric-sql+pglite@0.3.14/node_modules/@electric-sql/pglite/dist/contrib/tablefunc.js
|
|
7
|
+
u();
|
|
8
|
+
var t = async (n, s) => ({ bundlePath: new URL("../tablefunc.tar.gz", import.meta.url) });
|
|
9
|
+
var r = { name: "tablefunc", setup: t };
|
|
10
|
+
export {
|
|
11
|
+
r as tablefunc
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=tablefunc-EF4RCS7S.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/.pnpm/@electric-sql+pglite@0.3.14/node_modules/@electric-sql/pglite/src/contrib/tablefunc.ts"],"sourcesContent":["import type {\n Extension,\n ExtensionSetupResult,\n PGliteInterface,\n} from '../interface'\n\nconst setup = async (_pg: PGliteInterface, _emscriptenOpts: any) => {\n return {\n bundlePath: new URL('../../release/tablefunc.tar.gz', import.meta.url),\n } satisfies ExtensionSetupResult\n}\n\nexport const tablefunc = {\n name: 'tablefunc',\n setup,\n} satisfies Extension\n"],"mappings":";;;;;;AAAAA,EAAAA;AAMA,IAAMC,IAAQ,OAAOC,GAAsBC,OAClC,EACL,YAAY,IAAI,IAAI,uBAAA,YAAkC,GAAA,EAAA;AAF1D,IAE0D,IAAA,EAAA,MACxD,aAIM,OAAA,EAAA;","names":["init_esm_shims","setup","_pg","_emscriptenOpts"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
u
|
|
3
|
+
} from "./chunk-3KTOEDFX.js";
|
|
4
|
+
import "./chunk-7D4SUZUM.js";
|
|
5
|
+
|
|
6
|
+
// ../../../node_modules/.pnpm/@electric-sql+pglite@0.3.14/node_modules/@electric-sql/pglite/dist/contrib/tcn.js
|
|
7
|
+
u();
|
|
8
|
+
var t = async (n, s) => ({ bundlePath: new URL("../tcn.tar.gz", import.meta.url) });
|
|
9
|
+
var a = { name: "tcn", setup: t };
|
|
10
|
+
export {
|
|
11
|
+
a as tcn
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=tcn-3VT5BQYW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/.pnpm/@electric-sql+pglite@0.3.14/node_modules/@electric-sql/pglite/src/contrib/tcn.ts"],"sourcesContent":["import type {\n Extension,\n ExtensionSetupResult,\n PGliteInterface,\n} from '../interface'\n\nconst setup = async (_pg: PGliteInterface, _emscriptenOpts: any) => {\n return {\n bundlePath: new URL('../../release/tcn.tar.gz', import.meta.url),\n } satisfies ExtensionSetupResult\n}\n\nexport const tcn = {\n name: 'tcn',\n setup,\n} satisfies Extension\n"],"mappings":";;;;;;AAAAA,EAAAA;AAMA,IAAMC,IAAQ,OAAOC,GAAsBC,OAClC,EACL,YAAY,IAAI,IAAI,iBAAA,YAA4B,GAAA,EAAA;AAFpD,IAEoD,IAAA,EAAA,MAClD,OAIA,OAAM,EAAA;","names":["init_esm_shims","setup","_pg","_emscriptenOpts"]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ExecutionPlan, ResultType } from '@prisma-next/contract/types';
|
|
2
|
+
import { SqlContract, SqlStorage } from '@prisma-next/sql-contract/types';
|
|
3
|
+
import { Adapter, SelectAst, LoweredStatement } from '@prisma-next/sql-relational-core/ast';
|
|
4
|
+
import { SqlQueryPlan } from '@prisma-next/sql-relational-core/plan';
|
|
5
|
+
import { Client } from 'pg';
|
|
6
|
+
import { f as createRuntime, S as SqlStatement, E as Extension, R as RuntimeContext } from '../sql-runtime-qPimiOqJ.js';
|
|
7
|
+
export { DevDatabase, collectAsync, createDevDatabase, teardownTestDatabase, withClient } from '@prisma-next/test-utils';
|
|
8
|
+
import '@prisma-next/runtime-executor';
|
|
9
|
+
import '@prisma-next/operations';
|
|
10
|
+
import '@prisma-next/sql-operations';
|
|
11
|
+
import '@prisma-next/sql-relational-core/query-lane-context';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Executes a plan and collects all results into an array.
|
|
15
|
+
* This helper DRYs up the common pattern of executing plans in tests.
|
|
16
|
+
* The return type is inferred from the plan's type parameter.
|
|
17
|
+
*/
|
|
18
|
+
declare function executePlanAndCollect<P extends ExecutionPlan<ResultType<P>> | SqlQueryPlan<ResultType<P>>>(runtime: ReturnType<typeof createRuntime>, plan: P): Promise<ResultType<P>[]>;
|
|
19
|
+
/**
|
|
20
|
+
* Drains a plan execution, consuming all results without collecting them.
|
|
21
|
+
* Useful for testing side effects without memory overhead.
|
|
22
|
+
*/
|
|
23
|
+
declare function drainPlanExecution(runtime: ReturnType<typeof createRuntime>, plan: ExecutionPlan | SqlQueryPlan<unknown>): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Executes a SQL statement on a database client.
|
|
26
|
+
*/
|
|
27
|
+
declare function executeStatement(client: Client, statement: SqlStatement): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Sets up database schema and data, then writes the contract marker.
|
|
30
|
+
* This helper DRYs up the common pattern of database setup in tests.
|
|
31
|
+
*/
|
|
32
|
+
declare function setupTestDatabase(client: Client, contract: SqlContract<SqlStorage>, setupFn: (client: Client) => Promise<void>): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Writes a contract marker to the database.
|
|
35
|
+
* This helper DRYs up the common pattern of writing contract markers in tests.
|
|
36
|
+
*/
|
|
37
|
+
declare function writeTestContractMarker(client: Client, contract: SqlContract<SqlStorage>): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Creates a runtime context with standard test configuration.
|
|
40
|
+
* This helper DRYs up the common pattern of context creation in tests.
|
|
41
|
+
*/
|
|
42
|
+
declare function createTestContext<TContract extends SqlContract<SqlStorage>>(contract: TContract, adapter: Adapter<SelectAst, SqlContract<SqlStorage>, LoweredStatement>, options?: {
|
|
43
|
+
extensions?: ReadonlyArray<Extension>;
|
|
44
|
+
}): RuntimeContext<TContract>;
|
|
45
|
+
/**
|
|
46
|
+
* Creates a stub adapter for testing.
|
|
47
|
+
* This helper DRYs up the common pattern of adapter creation in tests.
|
|
48
|
+
*
|
|
49
|
+
* The stub adapter includes simple codecs for common test types (pg/int4@1, pg/text@1, pg/timestamptz@1)
|
|
50
|
+
* to enable type inference in tests without requiring the postgres adapter package.
|
|
51
|
+
*/
|
|
52
|
+
declare function createStubAdapter(): Adapter<SelectAst, SqlContract<SqlStorage>, LoweredStatement>;
|
|
53
|
+
/**
|
|
54
|
+
* Creates a valid test contract without using validateContract.
|
|
55
|
+
* Ensures mappings are present and returns the contract with proper typing.
|
|
56
|
+
* This helper allows tests to create contracts without depending on sql-query.
|
|
57
|
+
*/
|
|
58
|
+
declare function createTestContract<T extends SqlContract<SqlStorage>>(contract: T): T;
|
|
59
|
+
|
|
60
|
+
export { createStubAdapter, createTestContext, createTestContract, drainPlanExecution, executePlanAndCollect, executeStatement, setupTestDatabase, writeTestContractMarker };
|