@prisma/studio-core 0.0.0-dev.202505080449 → 0.0.0-dev.202505080906
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/{adapter-B5pGfMai.d.cts → adapter-CKFCHq71.d.cts} +1 -18
- package/dist/{adapter-B5pGfMai.d.ts → adapter-CKFCHq71.d.ts} +1 -18
- package/dist/chunk-ACCGT3FH.js +1 -0
- package/dist/chunk-P72NBTYE.js +1 -0
- package/dist/data/accelerate/index.d.cts +2 -2
- package/dist/data/accelerate/index.d.ts +2 -2
- package/dist/data/bff/index.d.cts +2 -2
- package/dist/data/bff/index.d.ts +2 -2
- package/dist/data/index.d.cts +2 -2
- package/dist/data/index.d.ts +2 -2
- package/dist/data/index.js +1 -1
- package/dist/data/pglite/index.cjs +1 -1
- package/dist/data/pglite/index.d.cts +2 -2
- package/dist/data/pglite/index.d.ts +2 -2
- package/dist/data/pglite/index.js +1 -1
- package/dist/data/postgres-core/index.cjs +1 -1
- package/dist/data/postgres-core/index.d.cts +2 -3
- package/dist/data/postgres-core/index.d.ts +2 -3
- package/dist/data/postgres-core/index.js +1 -1
- package/dist/{index-BU3C7SFp.d.ts → index-BDPv5Gnt.d.ts} +1 -1
- package/dist/{index-Y2PF42A4.d.cts → index-BNAA6jKD.d.cts} +1 -1
- package/dist/ui/index.cjs +65 -113
- package/dist/ui/index.css +0 -35
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +30 -78
- package/package.json +2 -2
- package/dist/chunk-RH6G3WUH.js +0 -1
- package/dist/chunk-T5XG6BXQ.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PGlite } from '@electric-sql/pglite';
|
|
2
|
-
import { A as Adapter } from '../../adapter-
|
|
3
|
-
import { Q as Query, E as Executor } from '../../index-
|
|
2
|
+
import { A as Adapter } from '../../adapter-CKFCHq71.cjs';
|
|
3
|
+
import { Q as Query, E as Executor } from '../../index-BNAA6jKD.cjs';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
|
|
6
6
|
interface PGLiteExecutorOptions {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PGlite } from '@electric-sql/pglite';
|
|
2
|
-
import { A as Adapter } from '../../adapter-
|
|
3
|
-
import { Q as Query, E as Executor } from '../../index-
|
|
2
|
+
import { A as Adapter } from '../../adapter-CKFCHq71.js';
|
|
3
|
+
import { Q as Query, E as Executor } from '../../index-BDPv5Gnt.js';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
|
|
6
6
|
interface PGLiteExecutorOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as d}from"../../chunk-
|
|
1
|
+
import{j as d}from"../../chunk-ACCGT3FH.js";import"../../chunk-P72NBTYE.js";import"../../chunk-BMVJYUJW.js";function b(o,n){let{addDelay:i=0,logging:a=!1}=n??{};return{execute:async(t,m)=>{let{abortSignal:s}=m||{},c,y=new Promise((e,r)=>c=r);function u(){let e=new Error("This operation was aborted");e.name="AbortError",c(e)}s?.addEventListener("abort",u);let l=typeof i=="function"?i(t):i,p=()=>o.query(t.sql,t.parameters,{rowMode:"object"}),P=l>0?()=>new Promise(e=>setTimeout(e,l)).then(()=>p()):p;try{let e=typeof a=="function"?a(t):a,r;e&&console.log("PGLiteExecutor: Executing query:",r=JSON.stringify(t,null,2));let f=Date.now(),x=await Promise.race([P(),y]),g=Date.now()-f;return e&&console.log("PGLiteExecutor: Query executed in",g,"ms:",r),[null,x.rows]}catch(e){return[e]}finally{s?.removeEventListener("abort",u)}}}}function G(o,n){return d({executor:b(o,n)})}export{G as createPGLiteAdapter,b as createPGLiteExecutor};
|