@prisma/studio-core 0.0.0-dev.202511172105 → 0.0.0-dev.202511172319
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/chunk-32BUC7NR.js +10 -0
- package/dist/chunk-A6CVKSUD.js +10 -0
- package/dist/{chunk-WEEILW43.js → chunk-M7E5UEO3.js} +1 -1
- package/dist/chunk-YFPWAXKU.js +10 -0
- package/dist/data/accelerate/index.d.cts +1 -1
- package/dist/data/accelerate/index.d.ts +1 -1
- package/dist/data/bff/index.d.cts +1 -1
- package/dist/data/bff/index.d.ts +1 -1
- package/dist/data/index.d.cts +1 -1
- package/dist/data/index.d.ts +1 -1
- package/dist/data/index.js +1 -1
- package/dist/data/mysql-core/index.cjs +2 -2
- package/dist/data/mysql-core/index.d.cts +24 -3
- package/dist/data/mysql-core/index.d.ts +24 -3
- package/dist/data/mysql-core/index.js +2 -2
- package/dist/data/mysql2/index.d.cts +1 -1
- package/dist/data/mysql2/index.d.ts +1 -1
- package/dist/data/node-sqlite/index.d.cts +1 -1
- package/dist/data/node-sqlite/index.d.ts +1 -1
- package/dist/data/pglite/index.cjs +2 -2
- package/dist/data/pglite/index.d.cts +1 -1
- package/dist/data/pglite/index.d.ts +1 -1
- package/dist/data/pglite/index.js +1 -1
- package/dist/data/postgres-core/index.cjs +2 -2
- package/dist/data/postgres-core/index.d.cts +63 -66
- package/dist/data/postgres-core/index.d.ts +63 -66
- package/dist/data/postgres-core/index.js +1 -1
- package/dist/data/postgresjs/index.d.cts +1 -1
- package/dist/data/postgresjs/index.d.ts +1 -1
- package/dist/data/postgresjs/index.js +1 -1
- package/dist/data/ppg/index.d.cts +1 -1
- package/dist/data/ppg/index.d.ts +1 -1
- package/dist/data/sqlite-core/index.d.cts +1 -1
- package/dist/data/sqlite-core/index.d.ts +1 -1
- package/dist/data/sqlite-core/index.js +2 -2
- package/dist/{index-2horhMcs.d.ts → index-prZB-RVI.d.cts} +1 -1
- package/dist/{index-2horhMcs.d.cts → index-prZB-RVI.d.ts} +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-SVIBGHVN.js +0 -10
- package/dist/chunk-WHLVNWIR.js +0 -10
|
@@ -1,71 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as BuilderRequirements, Q as Query, d as AdapterRequirements, A as Adapter, c as QueryResult, j as AdapterIntrospectResult, g as AdapterInsertDetails, e as AdapterQueryDetails, h as AdapterUpdateDetails, f as AdapterDeleteDetails } from '../../index-prZB-RVI.cjs';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
|
|
4
|
-
type PostgresAdapterRequirements = AdapterRequirements;
|
|
5
|
-
declare function createPostgresAdapter(requirements: PostgresAdapterRequirements): Adapter;
|
|
6
|
-
/**
|
|
7
|
-
* For testing purposes.
|
|
8
|
-
*/
|
|
9
|
-
declare function mockIntrospect(): {
|
|
10
|
-
schemas: { [K in "zoo" | "public"]: {
|
|
11
|
-
name: K;
|
|
12
|
-
tables: { [T in "animals" | "users" | "composite_pk"]: Table; };
|
|
13
|
-
}; };
|
|
14
|
-
timezone: "UTC";
|
|
15
|
-
filterOperators: FilterOperator[];
|
|
16
|
-
query: Query;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Inserts one or more rows into a table and returns the inserted rows along with their `ctid`.
|
|
21
|
-
*/
|
|
22
|
-
declare function getInsertQuery(details: AdapterInsertDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
|
23
|
-
[x: string]: unknown;
|
|
24
|
-
} & {
|
|
25
|
-
__ps_inserted_at__: `${bigint}`;
|
|
26
|
-
}>;
|
|
27
|
-
/**
|
|
28
|
-
* Returns a query that selects all columns from a table, along with an unbound row count as `__ps_count__`.
|
|
29
|
-
*/
|
|
30
|
-
declare function getSelectQuery(details: AdapterQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
|
31
|
-
[x: string]: unknown;
|
|
32
|
-
__ps_count__: `${bigint}`;
|
|
33
|
-
}>;
|
|
34
|
-
/**
|
|
35
|
-
* For testing purposes.
|
|
36
|
-
*/
|
|
37
|
-
declare function mockSelectQuery(): [{
|
|
38
|
-
readonly created_at: Date;
|
|
39
|
-
readonly deleted_at: null;
|
|
40
|
-
readonly id: 1;
|
|
41
|
-
readonly name: "John Doe";
|
|
42
|
-
readonly __ps_count__: "2";
|
|
43
|
-
readonly role: "admin";
|
|
44
|
-
readonly name_role: "Jonn Doe - admin";
|
|
45
|
-
}, {
|
|
46
|
-
readonly created_at: Date;
|
|
47
|
-
readonly deleted_at: null;
|
|
48
|
-
readonly id: 2;
|
|
49
|
-
readonly name: "Jane Doe";
|
|
50
|
-
readonly __ps_count__: "2";
|
|
51
|
-
readonly role: "poweruser";
|
|
52
|
-
readonly name_role: "Jane Doe - poweruser";
|
|
53
|
-
}];
|
|
54
|
-
/**
|
|
55
|
-
* Returns a query that updates a given row in a table with given changes.
|
|
56
|
-
*/
|
|
57
|
-
declare function getUpdateQuery(details: AdapterUpdateDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
|
58
|
-
[x: string]: unknown;
|
|
59
|
-
__ps_updated_at__: `${bigint}`;
|
|
60
|
-
}>;
|
|
61
|
-
/**
|
|
62
|
-
* Returns a query that deletes a given set of rows.
|
|
63
|
-
*/
|
|
64
|
-
declare function getDeleteQuery(details: AdapterDeleteDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
|
65
|
-
[x: string]: unknown;
|
|
66
|
-
__ps_deleted_at__: `${bigint}`;
|
|
67
|
-
}>;
|
|
68
|
-
|
|
69
4
|
/**
|
|
70
5
|
* Returns a query that returns metadata for all user-defined tables and views in the database.
|
|
71
6
|
*/
|
|
@@ -235,6 +170,68 @@ declare function mockTimezoneQuery(): [{
|
|
|
235
170
|
readonly timezone: "UTC";
|
|
236
171
|
}];
|
|
237
172
|
|
|
173
|
+
type PostgresAdapterRequirements = AdapterRequirements;
|
|
174
|
+
declare function createPostgresAdapter(requirements: PostgresAdapterRequirements): Adapter;
|
|
175
|
+
declare function createIntrospection(args: {
|
|
176
|
+
query: Query;
|
|
177
|
+
tables: QueryResult<typeof getTablesQuery>;
|
|
178
|
+
timezone: string;
|
|
179
|
+
}): AdapterIntrospectResult;
|
|
180
|
+
/**
|
|
181
|
+
* For testing purposes.
|
|
182
|
+
*/
|
|
183
|
+
declare function mockIntrospect(): ReturnType<typeof createIntrospection>;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Inserts one or more rows into a table and returns the inserted rows along with their `ctid`.
|
|
187
|
+
*/
|
|
188
|
+
declare function getInsertQuery(details: AdapterInsertDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
|
189
|
+
[x: string]: unknown;
|
|
190
|
+
} & {
|
|
191
|
+
__ps_inserted_at__: `${bigint}`;
|
|
192
|
+
}>;
|
|
193
|
+
/**
|
|
194
|
+
* Returns a query that selects all columns from a table, along with an unbound row count as `__ps_count__`.
|
|
195
|
+
*/
|
|
196
|
+
declare function getSelectQuery(details: AdapterQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
|
197
|
+
[x: string]: unknown;
|
|
198
|
+
__ps_count__: `${bigint}`;
|
|
199
|
+
}>;
|
|
200
|
+
/**
|
|
201
|
+
* For testing purposes.
|
|
202
|
+
*/
|
|
203
|
+
declare function mockSelectQuery(): [{
|
|
204
|
+
readonly created_at: Date;
|
|
205
|
+
readonly deleted_at: null;
|
|
206
|
+
readonly id: 1;
|
|
207
|
+
readonly name: "John Doe";
|
|
208
|
+
readonly __ps_count__: "2";
|
|
209
|
+
readonly role: "admin";
|
|
210
|
+
readonly name_role: "Jonn Doe - admin";
|
|
211
|
+
}, {
|
|
212
|
+
readonly created_at: Date;
|
|
213
|
+
readonly deleted_at: null;
|
|
214
|
+
readonly id: 2;
|
|
215
|
+
readonly name: "Jane Doe";
|
|
216
|
+
readonly __ps_count__: "2";
|
|
217
|
+
readonly role: "poweruser";
|
|
218
|
+
readonly name_role: "Jane Doe - poweruser";
|
|
219
|
+
}];
|
|
220
|
+
/**
|
|
221
|
+
* Returns a query that updates a given row in a table with given changes.
|
|
222
|
+
*/
|
|
223
|
+
declare function getUpdateQuery(details: AdapterUpdateDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
|
224
|
+
[x: string]: unknown;
|
|
225
|
+
__ps_updated_at__: `${bigint}`;
|
|
226
|
+
}>;
|
|
227
|
+
/**
|
|
228
|
+
* Returns a query that deletes a given set of rows.
|
|
229
|
+
*/
|
|
230
|
+
declare function getDeleteQuery(details: AdapterDeleteDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
|
231
|
+
[x: string]: unknown;
|
|
232
|
+
__ps_deleted_at__: `${bigint}`;
|
|
233
|
+
}>;
|
|
234
|
+
|
|
238
235
|
declare function getPIDQuery(): Query<{
|
|
239
236
|
pid: unknown;
|
|
240
237
|
}>;
|
|
@@ -1,71 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as BuilderRequirements, Q as Query, d as AdapterRequirements, A as Adapter, c as QueryResult, j as AdapterIntrospectResult, g as AdapterInsertDetails, e as AdapterQueryDetails, h as AdapterUpdateDetails, f as AdapterDeleteDetails } from '../../index-prZB-RVI.js';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
|
|
4
|
-
type PostgresAdapterRequirements = AdapterRequirements;
|
|
5
|
-
declare function createPostgresAdapter(requirements: PostgresAdapterRequirements): Adapter;
|
|
6
|
-
/**
|
|
7
|
-
* For testing purposes.
|
|
8
|
-
*/
|
|
9
|
-
declare function mockIntrospect(): {
|
|
10
|
-
schemas: { [K in "zoo" | "public"]: {
|
|
11
|
-
name: K;
|
|
12
|
-
tables: { [T in "animals" | "users" | "composite_pk"]: Table; };
|
|
13
|
-
}; };
|
|
14
|
-
timezone: "UTC";
|
|
15
|
-
filterOperators: FilterOperator[];
|
|
16
|
-
query: Query;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Inserts one or more rows into a table and returns the inserted rows along with their `ctid`.
|
|
21
|
-
*/
|
|
22
|
-
declare function getInsertQuery(details: AdapterInsertDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
|
23
|
-
[x: string]: unknown;
|
|
24
|
-
} & {
|
|
25
|
-
__ps_inserted_at__: `${bigint}`;
|
|
26
|
-
}>;
|
|
27
|
-
/**
|
|
28
|
-
* Returns a query that selects all columns from a table, along with an unbound row count as `__ps_count__`.
|
|
29
|
-
*/
|
|
30
|
-
declare function getSelectQuery(details: AdapterQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
|
31
|
-
[x: string]: unknown;
|
|
32
|
-
__ps_count__: `${bigint}`;
|
|
33
|
-
}>;
|
|
34
|
-
/**
|
|
35
|
-
* For testing purposes.
|
|
36
|
-
*/
|
|
37
|
-
declare function mockSelectQuery(): [{
|
|
38
|
-
readonly created_at: Date;
|
|
39
|
-
readonly deleted_at: null;
|
|
40
|
-
readonly id: 1;
|
|
41
|
-
readonly name: "John Doe";
|
|
42
|
-
readonly __ps_count__: "2";
|
|
43
|
-
readonly role: "admin";
|
|
44
|
-
readonly name_role: "Jonn Doe - admin";
|
|
45
|
-
}, {
|
|
46
|
-
readonly created_at: Date;
|
|
47
|
-
readonly deleted_at: null;
|
|
48
|
-
readonly id: 2;
|
|
49
|
-
readonly name: "Jane Doe";
|
|
50
|
-
readonly __ps_count__: "2";
|
|
51
|
-
readonly role: "poweruser";
|
|
52
|
-
readonly name_role: "Jane Doe - poweruser";
|
|
53
|
-
}];
|
|
54
|
-
/**
|
|
55
|
-
* Returns a query that updates a given row in a table with given changes.
|
|
56
|
-
*/
|
|
57
|
-
declare function getUpdateQuery(details: AdapterUpdateDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
|
58
|
-
[x: string]: unknown;
|
|
59
|
-
__ps_updated_at__: `${bigint}`;
|
|
60
|
-
}>;
|
|
61
|
-
/**
|
|
62
|
-
* Returns a query that deletes a given set of rows.
|
|
63
|
-
*/
|
|
64
|
-
declare function getDeleteQuery(details: AdapterDeleteDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
|
65
|
-
[x: string]: unknown;
|
|
66
|
-
__ps_deleted_at__: `${bigint}`;
|
|
67
|
-
}>;
|
|
68
|
-
|
|
69
4
|
/**
|
|
70
5
|
* Returns a query that returns metadata for all user-defined tables and views in the database.
|
|
71
6
|
*/
|
|
@@ -235,6 +170,68 @@ declare function mockTimezoneQuery(): [{
|
|
|
235
170
|
readonly timezone: "UTC";
|
|
236
171
|
}];
|
|
237
172
|
|
|
173
|
+
type PostgresAdapterRequirements = AdapterRequirements;
|
|
174
|
+
declare function createPostgresAdapter(requirements: PostgresAdapterRequirements): Adapter;
|
|
175
|
+
declare function createIntrospection(args: {
|
|
176
|
+
query: Query;
|
|
177
|
+
tables: QueryResult<typeof getTablesQuery>;
|
|
178
|
+
timezone: string;
|
|
179
|
+
}): AdapterIntrospectResult;
|
|
180
|
+
/**
|
|
181
|
+
* For testing purposes.
|
|
182
|
+
*/
|
|
183
|
+
declare function mockIntrospect(): ReturnType<typeof createIntrospection>;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Inserts one or more rows into a table and returns the inserted rows along with their `ctid`.
|
|
187
|
+
*/
|
|
188
|
+
declare function getInsertQuery(details: AdapterInsertDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
|
189
|
+
[x: string]: unknown;
|
|
190
|
+
} & {
|
|
191
|
+
__ps_inserted_at__: `${bigint}`;
|
|
192
|
+
}>;
|
|
193
|
+
/**
|
|
194
|
+
* Returns a query that selects all columns from a table, along with an unbound row count as `__ps_count__`.
|
|
195
|
+
*/
|
|
196
|
+
declare function getSelectQuery(details: AdapterQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
|
197
|
+
[x: string]: unknown;
|
|
198
|
+
__ps_count__: `${bigint}`;
|
|
199
|
+
}>;
|
|
200
|
+
/**
|
|
201
|
+
* For testing purposes.
|
|
202
|
+
*/
|
|
203
|
+
declare function mockSelectQuery(): [{
|
|
204
|
+
readonly created_at: Date;
|
|
205
|
+
readonly deleted_at: null;
|
|
206
|
+
readonly id: 1;
|
|
207
|
+
readonly name: "John Doe";
|
|
208
|
+
readonly __ps_count__: "2";
|
|
209
|
+
readonly role: "admin";
|
|
210
|
+
readonly name_role: "Jonn Doe - admin";
|
|
211
|
+
}, {
|
|
212
|
+
readonly created_at: Date;
|
|
213
|
+
readonly deleted_at: null;
|
|
214
|
+
readonly id: 2;
|
|
215
|
+
readonly name: "Jane Doe";
|
|
216
|
+
readonly __ps_count__: "2";
|
|
217
|
+
readonly role: "poweruser";
|
|
218
|
+
readonly name_role: "Jane Doe - poweruser";
|
|
219
|
+
}];
|
|
220
|
+
/**
|
|
221
|
+
* Returns a query that updates a given row in a table with given changes.
|
|
222
|
+
*/
|
|
223
|
+
declare function getUpdateQuery(details: AdapterUpdateDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
|
224
|
+
[x: string]: unknown;
|
|
225
|
+
__ps_updated_at__: `${bigint}`;
|
|
226
|
+
}>;
|
|
227
|
+
/**
|
|
228
|
+
* Returns a query that deletes a given set of rows.
|
|
229
|
+
*/
|
|
230
|
+
declare function getDeleteQuery(details: AdapterDeleteDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
|
231
|
+
[x: string]: unknown;
|
|
232
|
+
__ps_deleted_at__: `${bigint}`;
|
|
233
|
+
}>;
|
|
234
|
+
|
|
238
235
|
declare function getPIDQuery(): Query<{
|
|
239
236
|
pid: unknown;
|
|
240
237
|
}>;
|
|
@@ -6,5 +6,5 @@ function require(mod) {
|
|
|
6
6
|
if (mod === 'react-dom') return ___react_dom___;
|
|
7
7
|
throw new Error(`Unknown module ${mod}`);
|
|
8
8
|
}
|
|
9
|
-
import{a,b,c,d,e,f,g,h,i,j,k}from"../../chunk-
|
|
9
|
+
import{a,b,c,d,e,f,g,h,i,j,k}from"../../chunk-YFPWAXKU.js";import{a as l,b as m}from"../../chunk-M7E5UEO3.js";import"../../chunk-OTK4ZF2W.js";import"../../chunk-A6CVKSUD.js";import"../../chunk-GDQBQ7MK.js";export{j as createPostgresAdapter,m as getCancelQuery,e as getDeleteQuery,a as getInsertQuery,l as getPIDQuery,b as getSelectQuery,f as getTablesQuery,h as getTimezoneQuery,d as getUpdateQuery,k as mockIntrospect,c as mockSelectQuery,g as mockTablesQuery,i as mockTimezoneQuery};
|
|
10
10
|
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFtdLAogICJzb3VyY2VzQ29udGVudCI6IFtdLAogICJtYXBwaW5ncyI6ICIiLAogICJuYW1lcyI6IFtdCn0K
|
|
@@ -6,5 +6,5 @@ function require(mod) {
|
|
|
6
6
|
if (mod === 'react-dom') return ___react_dom___;
|
|
7
7
|
throw new Error(`Unknown module ${mod}`);
|
|
8
8
|
}
|
|
9
|
-
import{b as s}from"../../chunk-AHIV4VYN.js";import{a as p,b as P}from"../../chunk-
|
|
9
|
+
import{b as s}from"../../chunk-AHIV4VYN.js";import{a as p,b as P}from"../../chunk-M7E5UEO3.js";import"../../chunk-A6CVKSUD.js";import{e as v}from"../../chunk-GDQBQ7MK.js";v();function g(o){return{execute:async(e,t)=>{let{abortSignal:n}=t||{};if(!n)try{return[null,await o.unsafe(e.sql,e.parameters)]}catch(a){return[a]}if(n.aborted)return s();let i,r;try{let a,c=new Promise(q=>a=q);n.addEventListener("abort",i=()=>a());let u=o.reserve(),l=await Promise.race([u,c]);if(!l)return u.catch(()=>{}),s();if(r=l,n.aborted)return r.release(),s();let d=w(r),f=await Promise.race([d,c]);if(f===void 0)return d.catch(()=>{}).finally(()=>r?.release()),s();if(n.aborted)return r.release(),s();let m=r.unsafe(e.sql,e.parameters),y=await Promise.race([m,c]);return y?(r.release(),[null,y]):(Promise.allSettled([b(o,f),m]).finally(()=>r?.release()),s())}catch(a){return r?.release(),[a]}finally{i&&n?.removeEventListener("abort",i)}}}}async function b(o,e){let t=P(e);try{await o.unsafe(t.sql,t.parameters)}catch(n){console.error("Failed to cancel query:",n)}}async function w(o){let e=p();try{let[t]=await o.unsafe(e.sql,e.parameters);return t?.pid}catch(t){console.error("Failed to get connection PID:",t);return}}export{g as createPostgresJSExecutor};
|
|
10
10
|
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vZGF0YS9wb3N0Z3Jlc2pzL2luZGV4LnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJpbXBvcnQgdHlwZSB7IFJlc2VydmVkU3FsLCBTcWwgfSBmcm9tIFwicG9zdGdyZXNcIjtcblxuaW1wb3J0IHsgdHlwZSBFeGVjdXRvciwgZ2V0QWJvcnRSZXN1bHQgfSBmcm9tIFwiLi4vZXhlY3V0b3JcIjtcbmltcG9ydCB7IGdldENhbmNlbFF1ZXJ5LCBnZXRQSURRdWVyeSB9IGZyb20gXCIuLi9wb3N0Z3Jlcy1jb3JlL3V0aWxpdHlcIjtcbmltcG9ydCB0eXBlIHsgUXVlcnlSZXN1bHQgfSBmcm9tIFwiLi4vcXVlcnlcIjtcblxuZXhwb3J0IGZ1bmN0aW9uIGNyZWF0ZVBvc3RncmVzSlNFeGVjdXRvcihwb3N0Z3Jlc2pzOiBTcWwpOiBFeGVjdXRvciB7XG4gIHJldHVybiB7XG4gICAgZXhlY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ICJnZXRBYm9ydFJlc3VsdCIsICJhYm9ydExpc3RlbmVyIiwgImNvbm5lY3Rpb24iLCAiYWJvcnRlZCIsICJhYm9ydGlvblByb21pc2UiLCAicmVzb2x2ZSIsICJjb25uZWN0aW9uUHJvbWlzZSIsICJjb25uZWN0aW9uUmVzdWx0IiwgInBpZFByb21pc2UiLCAiZ2V0Q29ubmVjdGlvblBJRCIsICJwaWRSZXN1bHQiLCAicXVlcnlQcm9taXNlIiwgInF1ZXJ5UmVzdWx0IiwgImNhbmNlbFF1ZXJ5IiwgInBpZCIsICJnZXRDYW5jZWxRdWVyeSIsICJnZXRQSURRdWVyeSIsICJyZXN1bHQiXQp9Cg==
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RawResponse, AccelerateHttpClient } from '../accelerate/index.cjs';
|
|
2
2
|
export { DeserializedResponse, QueryIntrospectionBuiltinType, deserializeRawResult } from '../accelerate/index.cjs';
|
|
3
|
-
import '../../index-
|
|
3
|
+
import '../../index-prZB-RVI.cjs';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
|
|
6
6
|
interface PrismaPostgresHttpClientParams {
|
package/dist/data/ppg/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RawResponse, AccelerateHttpClient } from '../accelerate/index.js';
|
|
2
2
|
export { DeserializedResponse, QueryIntrospectionBuiltinType, deserializeRawResult } from '../accelerate/index.js';
|
|
3
|
-
import '../../index-
|
|
3
|
+
import '../../index-prZB-RVI.js';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
|
|
6
6
|
interface PrismaPostgresHttpClientParams {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as AdapterRequirements, A as Adapter, T as Table, F as FilterOperator, Q as Query, e as AdapterQueryDetails, B as BuilderRequirements, f as AdapterDeleteDetails, g as AdapterInsertDetails, h as AdapterUpdateDetails } from '../../index-
|
|
1
|
+
import { d as AdapterRequirements, A as Adapter, T as Table, F as FilterOperator, Q as Query, e as AdapterQueryDetails, B as BuilderRequirements, f as AdapterDeleteDetails, g as AdapterInsertDetails, h as AdapterUpdateDetails } from '../../index-prZB-RVI.cjs';
|
|
2
2
|
import * as kysely from 'kysely';
|
|
3
3
|
|
|
4
4
|
type SQLIteAdapterRequirements = AdapterRequirements;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as AdapterRequirements, A as Adapter, T as Table, F as FilterOperator, Q as Query, e as AdapterQueryDetails, B as BuilderRequirements, f as AdapterDeleteDetails, g as AdapterInsertDetails, h as AdapterUpdateDetails } from '../../index-
|
|
1
|
+
import { d as AdapterRequirements, A as Adapter, T as Table, F as FilterOperator, Q as Query, e as AdapterQueryDetails, B as BuilderRequirements, f as AdapterDeleteDetails, g as AdapterInsertDetails, h as AdapterUpdateDetails } from '../../index-prZB-RVI.js';
|
|
2
2
|
import * as kysely from 'kysely';
|
|
3
3
|
|
|
4
4
|
type SQLIteAdapterRequirements = AdapterRequirements;
|