@prisma-next/sql-runtime 0.1.0-dev.3 → 0.1.0-dev.30

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.
Files changed (114) hide show
  1. package/dist/accelerate-EEKAFGN3-SHR4XFVV.js +137863 -0
  2. package/dist/accelerate-EEKAFGN3-SHR4XFVV.js.map +1 -0
  3. package/dist/amcheck-24VY6X5V.js +13 -0
  4. package/dist/amcheck-24VY6X5V.js.map +1 -0
  5. package/dist/bloom-VS74NLHT.js +13 -0
  6. package/dist/bloom-VS74NLHT.js.map +1 -0
  7. package/dist/btree_gin-WBC4EAAI.js +13 -0
  8. package/dist/btree_gin-WBC4EAAI.js.map +1 -0
  9. package/dist/btree_gist-UNC6QD3M.js +13 -0
  10. package/dist/btree_gist-UNC6QD3M.js.map +1 -0
  11. package/dist/chunk-3KTOEDFX.js +49 -0
  12. package/dist/chunk-3KTOEDFX.js.map +1 -0
  13. package/dist/chunk-47DZBRQC.js +1280 -0
  14. package/dist/chunk-47DZBRQC.js.map +1 -0
  15. package/dist/chunk-52N6AFZM.js +133 -0
  16. package/dist/chunk-52N6AFZM.js.map +1 -0
  17. package/dist/chunk-7D4SUZUM.js +38 -0
  18. package/dist/chunk-7D4SUZUM.js.map +1 -0
  19. package/dist/chunk-C6I3V3DM.js +455 -0
  20. package/dist/chunk-C6I3V3DM.js.map +1 -0
  21. package/dist/chunk-ECWIHLAT.js +37 -0
  22. package/dist/chunk-ECWIHLAT.js.map +1 -0
  23. package/dist/chunk-EI626SDC.js +105 -0
  24. package/dist/chunk-EI626SDC.js.map +1 -0
  25. package/dist/chunk-UKKOYUGL.js +578 -0
  26. package/dist/chunk-UKKOYUGL.js.map +1 -0
  27. package/dist/chunk-XPLNMXQV.js +1537 -0
  28. package/dist/chunk-XPLNMXQV.js.map +1 -0
  29. package/dist/citext-T7MXGUY7.js +13 -0
  30. package/dist/citext-T7MXGUY7.js.map +1 -0
  31. package/dist/client-5FENX6AW.js +299 -0
  32. package/dist/client-5FENX6AW.js.map +1 -0
  33. package/dist/cube-TFDQBZCI.js +13 -0
  34. package/dist/cube-TFDQBZCI.js.map +1 -0
  35. package/dist/dict_int-AEUOPGWP.js +13 -0
  36. package/dist/dict_int-AEUOPGWP.js.map +1 -0
  37. package/dist/dict_xsyn-DAAYX3FL.js +13 -0
  38. package/dist/dict_xsyn-DAAYX3FL.js.map +1 -0
  39. package/dist/dist-LBVX6BJW.js +189 -0
  40. package/dist/dist-LBVX6BJW.js.map +1 -0
  41. package/dist/dist-LCVVJCGI.js +570 -0
  42. package/dist/dist-LCVVJCGI.js.map +1 -0
  43. package/dist/dist-WLKUVDN2.js +5127 -0
  44. package/dist/dist-WLKUVDN2.js.map +1 -0
  45. package/dist/earthdistance-KIGTF4LE.js +13 -0
  46. package/dist/earthdistance-KIGTF4LE.js.map +1 -0
  47. package/dist/file_fdw-5N55UP6I.js +13 -0
  48. package/dist/file_fdw-5N55UP6I.js.map +1 -0
  49. package/dist/fuzzystrmatch-KN3YWBFP.js +13 -0
  50. package/dist/fuzzystrmatch-KN3YWBFP.js.map +1 -0
  51. package/dist/hstore-YX726NKN.js +13 -0
  52. package/dist/hstore-YX726NKN.js.map +1 -0
  53. package/dist/http-exception-FZY2H4OF.js +8 -0
  54. package/dist/http-exception-FZY2H4OF.js.map +1 -0
  55. package/dist/index.d.ts +8 -59
  56. package/dist/index.js +15 -439
  57. package/dist/index.js.map +1 -1
  58. package/dist/intarray-NKVXNO2D.js +13 -0
  59. package/dist/intarray-NKVXNO2D.js.map +1 -0
  60. package/dist/isn-FTEMJGEV.js +13 -0
  61. package/dist/isn-FTEMJGEV.js.map +1 -0
  62. package/dist/lo-DB7L4NGI.js +13 -0
  63. package/dist/lo-DB7L4NGI.js.map +1 -0
  64. package/dist/logger-WQ7SHNDD.js +68 -0
  65. package/dist/logger-WQ7SHNDD.js.map +1 -0
  66. package/dist/ltree-Z32TZT6W.js +13 -0
  67. package/dist/ltree-Z32TZT6W.js.map +1 -0
  68. package/dist/nodefs-NM46ACH7.js +31 -0
  69. package/dist/nodefs-NM46ACH7.js.map +1 -0
  70. package/dist/opfs-ahp-NJO33LVZ.js +332 -0
  71. package/dist/opfs-ahp-NJO33LVZ.js.map +1 -0
  72. package/dist/pageinspect-YP3IZR4X.js +13 -0
  73. package/dist/pageinspect-YP3IZR4X.js.map +1 -0
  74. package/dist/pg_buffercache-7TD5J2FB.js +13 -0
  75. package/dist/pg_buffercache-7TD5J2FB.js.map +1 -0
  76. package/dist/pg_dump-SG4KYBUB.js +2492 -0
  77. package/dist/pg_dump-SG4KYBUB.js.map +1 -0
  78. package/dist/pg_freespacemap-DZDNCPZK.js +13 -0
  79. package/dist/pg_freespacemap-DZDNCPZK.js.map +1 -0
  80. package/dist/pg_surgery-J2MUEWEP.js +13 -0
  81. package/dist/pg_surgery-J2MUEWEP.js.map +1 -0
  82. package/dist/pg_trgm-7VNQOYS6.js +13 -0
  83. package/dist/pg_trgm-7VNQOYS6.js.map +1 -0
  84. package/dist/pg_visibility-TTSIPHFL.js +13 -0
  85. package/dist/pg_visibility-TTSIPHFL.js.map +1 -0
  86. package/dist/pg_walinspect-KPFHSHRJ.js +13 -0
  87. package/dist/pg_walinspect-KPFHSHRJ.js.map +1 -0
  88. package/dist/proxy-signals-GUDAMDHV.js +39 -0
  89. package/dist/proxy-signals-GUDAMDHV.js.map +1 -0
  90. package/dist/seg-IYVDLE4O.js +13 -0
  91. package/dist/seg-IYVDLE4O.js.map +1 -0
  92. package/dist/sql-runtime-DgEbg2OP.d.ts +109 -0
  93. package/dist/tablefunc-EF4RCS7S.js +13 -0
  94. package/dist/tablefunc-EF4RCS7S.js.map +1 -0
  95. package/dist/tcn-3VT5BQYW.js +13 -0
  96. package/dist/tcn-3VT5BQYW.js.map +1 -0
  97. package/dist/test/utils.d.ts +64 -0
  98. package/dist/test/utils.js +24635 -0
  99. package/dist/test/utils.js.map +1 -0
  100. package/dist/tiny-CW6F4GX6.js +10 -0
  101. package/dist/tiny-CW6F4GX6.js.map +1 -0
  102. package/dist/tsm_system_rows-ES7KNUQH.js +13 -0
  103. package/dist/tsm_system_rows-ES7KNUQH.js.map +1 -0
  104. package/dist/tsm_system_time-76WEIMBG.js +13 -0
  105. package/dist/tsm_system_time-76WEIMBG.js.map +1 -0
  106. package/dist/unaccent-7RYF3R64.js +13 -0
  107. package/dist/unaccent-7RYF3R64.js.map +1 -0
  108. package/dist/utility-Q5A254LJ-J4HTKZPT.js +347 -0
  109. package/dist/utility-Q5A254LJ-J4HTKZPT.js.map +1 -0
  110. package/dist/uuid_ossp-4ETE4FPE.js +13 -0
  111. package/dist/uuid_ossp-4ETE4FPE.js.map +1 -0
  112. package/dist/vector-74GPNV7V.js +13 -0
  113. package/dist/vector-74GPNV7V.js.map +1 -0
  114. package/package.json +14 -10
@@ -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,109 @@
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, SqlDriver, SelectAst } from '@prisma-next/sql-relational-core/ast';
6
+ import { SqlQueryPlan } from '@prisma-next/sql-relational-core/plan';
7
+ import { RuntimeTargetDescriptor, RuntimeAdapterDescriptor, RuntimeAdapterInstance, RuntimeExtensionDescriptor, RuntimeExtensionInstance } from '@prisma-next/core-execution-plane/types';
8
+ import { SqlOperationSignature } from '@prisma-next/sql-operations';
9
+ import { QueryLaneContext } from '@prisma-next/sql-relational-core/query-lane-context';
10
+
11
+ /**
12
+ * SQL runtime extension instance.
13
+ * Extends the framework RuntimeExtensionInstance with SQL-specific hooks
14
+ * for contributing codecs and operations to the runtime context.
15
+ *
16
+ * @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
17
+ */
18
+ interface SqlRuntimeExtensionInstance<TTargetId extends string> extends RuntimeExtensionInstance<'sql', TTargetId> {
19
+ /** Returns codecs to register in the runtime context. */
20
+ codecs?(): CodecRegistry;
21
+ /** Returns operations to register in the runtime context. */
22
+ operations?(): ReadonlyArray<SqlOperationSignature>;
23
+ }
24
+ /**
25
+ * SQL runtime extension descriptor.
26
+ * Extends the framework RuntimeExtensionDescriptor with SQL-specific instance type.
27
+ *
28
+ * @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
29
+ */
30
+ interface SqlRuntimeExtensionDescriptor<TTargetId extends string> extends RuntimeExtensionDescriptor<'sql', TTargetId, SqlRuntimeExtensionInstance<TTargetId>> {
31
+ create(): SqlRuntimeExtensionInstance<TTargetId>;
32
+ }
33
+ /**
34
+ * SQL runtime adapter instance interface.
35
+ * Combines RuntimeAdapterInstance identity with SQL Adapter behavior.
36
+ * The instance IS an Adapter (via intersection), not HAS an adapter property.
37
+ *
38
+ * @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
39
+ */
40
+ type SqlRuntimeAdapterInstance<TTargetId extends string = string> = RuntimeAdapterInstance<'sql', TTargetId> & Adapter<QueryAst, SqlContract<SqlStorage>, LoweredStatement>;
41
+ interface RuntimeContext<TContract extends SqlContract<SqlStorage> = SqlContract<SqlStorage>> extends QueryLaneContext<TContract> {
42
+ readonly adapter: Adapter<QueryAst, TContract, LoweredStatement> | Adapter<QueryAst, SqlContract<SqlStorage>, LoweredStatement>;
43
+ }
44
+ /**
45
+ * Descriptor-first options for creating a SQL runtime context.
46
+ * Takes the same framework composition as control-plane: target, adapter, extensionPacks.
47
+ *
48
+ * @template TContract - The SQL contract type
49
+ * @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
50
+ */
51
+ interface CreateRuntimeContextOptions<TContract extends SqlContract<SqlStorage> = SqlContract<SqlStorage>, TTargetId extends string = string> {
52
+ readonly contract: TContract;
53
+ readonly target: RuntimeTargetDescriptor<'sql', TTargetId>;
54
+ readonly adapter: RuntimeAdapterDescriptor<'sql', TTargetId, SqlRuntimeAdapterInstance<TTargetId>>;
55
+ readonly extensionPacks?: ReadonlyArray<SqlRuntimeExtensionDescriptor<TTargetId>>;
56
+ }
57
+ /**
58
+ * Creates a SQL runtime context from descriptor-first composition.
59
+ *
60
+ * The context includes:
61
+ * - The validated contract
62
+ * - The adapter instance (created from descriptor)
63
+ * - Codec registry (populated from adapter + extension instances)
64
+ * - Operation registry (populated from extension instances)
65
+ *
66
+ * @param options - Descriptor-first composition options
67
+ * @returns RuntimeContext with registries wired from all components
68
+ */
69
+ declare function createRuntimeContext<TContract extends SqlContract<SqlStorage> = SqlContract<SqlStorage>, TTargetId extends string = string>(options: CreateRuntimeContextOptions<TContract, TTargetId>): RuntimeContext<TContract>;
70
+
71
+ interface SqlStatement {
72
+ readonly sql: string;
73
+ readonly params: readonly unknown[];
74
+ }
75
+ interface WriteMarkerInput {
76
+ readonly coreHash: string;
77
+ readonly profileHash: string;
78
+ readonly contractJson?: unknown;
79
+ readonly canonicalVersion?: number;
80
+ readonly appTag?: string;
81
+ readonly meta?: Record<string, unknown>;
82
+ }
83
+ declare const ensureSchemaStatement: SqlStatement;
84
+ declare const ensureTableStatement: SqlStatement;
85
+ declare function readContractMarker(): MarkerStatement;
86
+ interface WriteContractMarkerStatements {
87
+ readonly insert: SqlStatement;
88
+ readonly update: SqlStatement;
89
+ }
90
+ declare function writeContractMarker(input: WriteMarkerInput): WriteContractMarkerStatements;
91
+
92
+ interface RuntimeOptions<TContract extends SqlContract<SqlStorage> = SqlContract<SqlStorage>> {
93
+ readonly driver: SqlDriver;
94
+ readonly verify: RuntimeVerifyOptions;
95
+ readonly context: RuntimeContext<TContract>;
96
+ readonly plugins?: readonly Plugin<TContract, Adapter<SelectAst, SqlContract<SqlStorage>, LoweredStatement>, SqlDriver>[];
97
+ readonly mode?: 'strict' | 'permissive';
98
+ readonly log?: Log;
99
+ }
100
+ interface Runtime {
101
+ execute<Row = Record<string, unknown>>(plan: ExecutionPlan<Row> | SqlQueryPlan<Row>): AsyncIterableResult<Row>;
102
+ telemetry(): RuntimeTelemetryEvent | null;
103
+ close(): Promise<void>;
104
+ operations(): OperationRegistry;
105
+ }
106
+
107
+ declare function createRuntime<TContract extends SqlContract<SqlStorage>>(options: RuntimeOptions<TContract>): Runtime;
108
+
109
+ export { type CreateRuntimeContextOptions as C, type RuntimeContext as R, type SqlRuntimeAdapterInstance as S, type SqlRuntimeExtensionDescriptor as a, type SqlRuntimeExtensionInstance as b, createRuntimeContext as c, type SqlStatement as d, ensureSchemaStatement as e, ensureTableStatement as f, type Runtime as g, type RuntimeOptions as h, createRuntime as i, 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,64 @@
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 { i as createRuntime, d as SqlStatement, a as SqlRuntimeExtensionDescriptor, R as RuntimeContext } from '../sql-runtime-DgEbg2OP.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/core-execution-plane/types';
11
+ import '@prisma-next/sql-operations';
12
+ import '@prisma-next/sql-relational-core/query-lane-context';
13
+
14
+ /**
15
+ * Executes a plan and collects all results into an array.
16
+ * This helper DRYs up the common pattern of executing plans in tests.
17
+ * The return type is inferred from the plan's type parameter.
18
+ */
19
+ declare function executePlanAndCollect<P extends ExecutionPlan<ResultType<P>> | SqlQueryPlan<ResultType<P>>>(runtime: ReturnType<typeof createRuntime>, plan: P): Promise<ResultType<P>[]>;
20
+ /**
21
+ * Drains a plan execution, consuming all results without collecting them.
22
+ * Useful for testing side effects without memory overhead.
23
+ */
24
+ declare function drainPlanExecution(runtime: ReturnType<typeof createRuntime>, plan: ExecutionPlan | SqlQueryPlan<unknown>): Promise<void>;
25
+ /**
26
+ * Executes a SQL statement on a database client.
27
+ */
28
+ declare function executeStatement(client: Client, statement: SqlStatement): Promise<void>;
29
+ /**
30
+ * Sets up database schema and data, then writes the contract marker.
31
+ * This helper DRYs up the common pattern of database setup in tests.
32
+ */
33
+ declare function setupTestDatabase(client: Client, contract: SqlContract<SqlStorage>, setupFn: (client: Client) => Promise<void>): Promise<void>;
34
+ /**
35
+ * Writes a contract marker to the database.
36
+ * This helper DRYs up the common pattern of writing contract markers in tests.
37
+ */
38
+ declare function writeTestContractMarker(client: Client, contract: SqlContract<SqlStorage>): Promise<void>;
39
+ /**
40
+ * Creates a runtime context with standard test configuration.
41
+ * This helper DRYs up the common pattern of context creation in tests.
42
+ *
43
+ * Accepts a raw adapter and optional extension descriptors, wrapping the
44
+ * adapter in a descriptor internally for descriptor-first context creation.
45
+ */
46
+ declare function createTestContext<TContract extends SqlContract<SqlStorage>>(contract: TContract, adapter: Adapter<SelectAst, SqlContract<SqlStorage>, LoweredStatement>, options?: {
47
+ extensionPacks?: ReadonlyArray<SqlRuntimeExtensionDescriptor<'postgres'>>;
48
+ }): RuntimeContext<TContract>;
49
+ /**
50
+ * Creates a stub adapter for testing.
51
+ * This helper DRYs up the common pattern of adapter creation in tests.
52
+ *
53
+ * The stub adapter includes simple codecs for common test types (pg/int4@1, pg/text@1, pg/timestamptz@1)
54
+ * to enable type inference in tests without requiring the postgres adapter package.
55
+ */
56
+ declare function createStubAdapter(): Adapter<SelectAst, SqlContract<SqlStorage>, LoweredStatement>;
57
+ /**
58
+ * Creates a valid test contract without using validateContract.
59
+ * Ensures mappings are present and returns the contract with proper typing.
60
+ * This helper allows tests to create contracts without depending on sql-query.
61
+ */
62
+ declare function createTestContract<T extends SqlContract<SqlStorage>>(contract: T): T;
63
+
64
+ export { createStubAdapter, createTestContext, createTestContract, drainPlanExecution, executePlanAndCollect, executeStatement, setupTestDatabase, writeTestContractMarker };