@prisma/studio-core 0.0.0-dev.202504291931 → 0.0.0-dev.202504292016
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-j-6Et1B2.d.cts → adapter-ClY8JSgB.d.cts} +1 -19
- package/dist/{adapter-j-6Et1B2.d.ts → adapter-ClY8JSgB.d.ts} +1 -19
- package/dist/{chunk-7RDDMKLR.js → chunk-QTG5SZZY.js} +1 -1
- package/dist/{chunk-CTDYDLYG.js → chunk-RGBMDID6.js} +1 -1
- 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.cjs +1 -1
- 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 +4 -8
- package/dist/data/postgres-core/index.d.ts +4 -8
- package/dist/data/postgres-core/index.js +1 -1
- package/dist/{index-Bn0mpB7C.d.cts → index-BanPmfQa.d.cts} +6 -19
- package/dist/{index-BxcCRvMw.d.ts → index-LzQyewM3.d.ts} +6 -19
- package/dist/ui/index.cjs +42 -42
- package/dist/ui/index.css +0 -16
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as Adapter, T as Table, a as AdapterInsertDetails, b as AdapterQueryDetails, c as AdapterUpdateDetails
|
|
2
|
-
import { E as Executor, B as BuilderRequirements, Q as Query } from '../../index-
|
|
3
|
-
import
|
|
1
|
+
import { A as Adapter, T as Table, a as AdapterInsertDetails, b as AdapterQueryDetails, c as AdapterUpdateDetails } from '../../adapter-ClY8JSgB.cjs';
|
|
2
|
+
import { E as Executor, B as BuilderRequirements, Q as Query } from '../../index-BanPmfQa.cjs';
|
|
3
|
+
import 'kysely';
|
|
4
4
|
|
|
5
5
|
interface PostgresAdapterRequirements {
|
|
6
6
|
executor: Executor;
|
|
@@ -69,10 +69,6 @@ declare function getUpdateQuery(details: AdapterUpdateDetails, requirements?: Om
|
|
|
69
69
|
ctid: `(${number},${number})`;
|
|
70
70
|
__ps_updated_at__: `${bigint}`;
|
|
71
71
|
}>;
|
|
72
|
-
/**
|
|
73
|
-
* Returns a query that deletes a given det of rows.
|
|
74
|
-
*/
|
|
75
|
-
declare function getDeleteQuery(details: AdapterDeleteDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<kysely.DeleteResult>;
|
|
76
72
|
|
|
77
73
|
/**
|
|
78
74
|
* Returns a query that returns metadata for all user-defined tables and views in the database.
|
|
@@ -133,4 +129,4 @@ declare function mockTimezoneQuery(): [{
|
|
|
133
129
|
readonly timezone: "UTC";
|
|
134
130
|
}];
|
|
135
131
|
|
|
136
|
-
export { type CTIDasText, type PostgresAdapterRequirements, createPostgresAdapter,
|
|
132
|
+
export { type CTIDasText, type PostgresAdapterRequirements, createPostgresAdapter, getInsertQuery, getSelectQuery, getTablesQuery, getTimezoneQuery, getUpdateQuery, mockIntrospect, mockSelectQuery, mockTablesQuery, mockTimezoneQuery };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as Adapter, T as Table, a as AdapterInsertDetails, b as AdapterQueryDetails, c as AdapterUpdateDetails
|
|
2
|
-
import { E as Executor, B as BuilderRequirements, Q as Query } from '../../index-
|
|
3
|
-
import
|
|
1
|
+
import { A as Adapter, T as Table, a as AdapterInsertDetails, b as AdapterQueryDetails, c as AdapterUpdateDetails } from '../../adapter-ClY8JSgB.js';
|
|
2
|
+
import { E as Executor, B as BuilderRequirements, Q as Query } from '../../index-LzQyewM3.js';
|
|
3
|
+
import 'kysely';
|
|
4
4
|
|
|
5
5
|
interface PostgresAdapterRequirements {
|
|
6
6
|
executor: Executor;
|
|
@@ -69,10 +69,6 @@ declare function getUpdateQuery(details: AdapterUpdateDetails, requirements?: Om
|
|
|
69
69
|
ctid: `(${number},${number})`;
|
|
70
70
|
__ps_updated_at__: `${bigint}`;
|
|
71
71
|
}>;
|
|
72
|
-
/**
|
|
73
|
-
* Returns a query that deletes a given det of rows.
|
|
74
|
-
*/
|
|
75
|
-
declare function getDeleteQuery(details: AdapterDeleteDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<kysely.DeleteResult>;
|
|
76
72
|
|
|
77
73
|
/**
|
|
78
74
|
* Returns a query that returns metadata for all user-defined tables and views in the database.
|
|
@@ -133,4 +129,4 @@ declare function mockTimezoneQuery(): [{
|
|
|
133
129
|
readonly timezone: "UTC";
|
|
134
130
|
}];
|
|
135
131
|
|
|
136
|
-
export { type CTIDasText, type PostgresAdapterRequirements, createPostgresAdapter,
|
|
132
|
+
export { type CTIDasText, type PostgresAdapterRequirements, createPostgresAdapter, getInsertQuery, getSelectQuery, getTablesQuery, getTimezoneQuery, getUpdateQuery, mockIntrospect, mockSelectQuery, mockTablesQuery, mockTimezoneQuery };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j}from"../../chunk-QTG5SZZY.js";import"../../chunk-RGBMDID6.js";import"../../chunk-BMVJYUJW.js";export{i as createPostgresAdapter,a as getInsertQuery,b as getSelectQuery,e as getTablesQuery,g as getTimezoneQuery,d as getUpdateQuery,j as mockIntrospect,c as mockSelectQuery,f as mockTablesQuery,h as mockTimezoneQuery};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Table, E as Either } from './adapter-
|
|
1
|
+
import { T as Table, E as Either } from './adapter-ClY8JSgB.cjs';
|
|
2
2
|
import { WhereInterface, DialectAdapter, QueryCompiler } from 'kysely';
|
|
3
3
|
|
|
4
4
|
interface BuilderRequirements {
|
|
@@ -18,25 +18,12 @@ interface Query<T = unknown> {
|
|
|
18
18
|
}
|
|
19
19
|
type QueryResult<T> = T extends Query<infer R> ? R[] : T extends (...args: any[]) => Query<infer R> ? R[] : never;
|
|
20
20
|
/**
|
|
21
|
-
* Applies a filter to the given
|
|
21
|
+
* Applies a filter to the given row based on the primary key columns of the table.
|
|
22
22
|
*
|
|
23
|
-
* @example db.selectFrom("users").$call(
|
|
23
|
+
* @example db.selectFrom("users").$call(applyInferredFilter(row, columns)).selectAll()
|
|
24
24
|
*/
|
|
25
|
-
declare function
|
|
26
|
-
|
|
27
|
-
* Part of a filter that predicts a match.
|
|
28
|
-
* ie. ... WHERE $ColumName = $Value ...
|
|
29
|
-
*/
|
|
30
|
-
type RowFilterPredicate = [ColumnName: string, Value: unknown];
|
|
31
|
-
/**
|
|
32
|
-
* A row filter is comprised of one or more predicates.
|
|
33
|
-
*/
|
|
34
|
-
type RowFilter = RowFilterPredicate[];
|
|
35
|
-
/**
|
|
36
|
-
* Infers the filter that is necessary to uniquely identify a given row
|
|
37
|
-
* individually.
|
|
38
|
-
*/
|
|
39
|
-
declare function inferRowFilter(row: Record<string, unknown>, columns: Table["columns"]): RowFilter;
|
|
25
|
+
declare function applyInferredRowFilter(row: Record<string, unknown>, columns: Table["columns"]): <QB extends WhereInterface<any, any>>(qb: QB) => QB;
|
|
26
|
+
declare function inferRowFilter(row: Record<string, unknown>, columns: Table["columns"]): [ColumnName: string, Value: unknown][];
|
|
40
27
|
|
|
41
28
|
interface Executor {
|
|
42
29
|
execute<Q extends Query>(query: Q, options?: ExecuteOptions): Promise<Either<Error, QueryResult<Q>>>;
|
|
@@ -45,4 +32,4 @@ interface ExecuteOptions {
|
|
|
45
32
|
abortSignal?: AbortSignal;
|
|
46
33
|
}
|
|
47
34
|
|
|
48
|
-
export { type BuilderRequirements as B, type Executor as E, type Query as Q, type ExecuteOptions as a, type QueryResult as b,
|
|
35
|
+
export { type BuilderRequirements as B, type Executor as E, type Query as Q, type ExecuteOptions as a, type QueryResult as b, applyInferredRowFilter as c, inferRowFilter as i };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Table, E as Either } from './adapter-
|
|
1
|
+
import { T as Table, E as Either } from './adapter-ClY8JSgB.js';
|
|
2
2
|
import { WhereInterface, DialectAdapter, QueryCompiler } from 'kysely';
|
|
3
3
|
|
|
4
4
|
interface BuilderRequirements {
|
|
@@ -18,25 +18,12 @@ interface Query<T = unknown> {
|
|
|
18
18
|
}
|
|
19
19
|
type QueryResult<T> = T extends Query<infer R> ? R[] : T extends (...args: any[]) => Query<infer R> ? R[] : never;
|
|
20
20
|
/**
|
|
21
|
-
* Applies a filter to the given
|
|
21
|
+
* Applies a filter to the given row based on the primary key columns of the table.
|
|
22
22
|
*
|
|
23
|
-
* @example db.selectFrom("users").$call(
|
|
23
|
+
* @example db.selectFrom("users").$call(applyInferredFilter(row, columns)).selectAll()
|
|
24
24
|
*/
|
|
25
|
-
declare function
|
|
26
|
-
|
|
27
|
-
* Part of a filter that predicts a match.
|
|
28
|
-
* ie. ... WHERE $ColumName = $Value ...
|
|
29
|
-
*/
|
|
30
|
-
type RowFilterPredicate = [ColumnName: string, Value: unknown];
|
|
31
|
-
/**
|
|
32
|
-
* A row filter is comprised of one or more predicates.
|
|
33
|
-
*/
|
|
34
|
-
type RowFilter = RowFilterPredicate[];
|
|
35
|
-
/**
|
|
36
|
-
* Infers the filter that is necessary to uniquely identify a given row
|
|
37
|
-
* individually.
|
|
38
|
-
*/
|
|
39
|
-
declare function inferRowFilter(row: Record<string, unknown>, columns: Table["columns"]): RowFilter;
|
|
25
|
+
declare function applyInferredRowFilter(row: Record<string, unknown>, columns: Table["columns"]): <QB extends WhereInterface<any, any>>(qb: QB) => QB;
|
|
26
|
+
declare function inferRowFilter(row: Record<string, unknown>, columns: Table["columns"]): [ColumnName: string, Value: unknown][];
|
|
40
27
|
|
|
41
28
|
interface Executor {
|
|
42
29
|
execute<Q extends Query>(query: Q, options?: ExecuteOptions): Promise<Either<Error, QueryResult<Q>>>;
|
|
@@ -45,4 +32,4 @@ interface ExecuteOptions {
|
|
|
45
32
|
abortSignal?: AbortSignal;
|
|
46
33
|
}
|
|
47
34
|
|
|
48
|
-
export { type BuilderRequirements as B, type Executor as E, type Query as Q, type ExecuteOptions as a, type QueryResult as b,
|
|
35
|
+
export { type BuilderRequirements as B, type Executor as E, type Query as Q, type ExecuteOptions as a, type QueryResult as b, applyInferredRowFilter as c, inferRowFilter as i };
|