@prisma/studio-core 0.0.0-dev.202503280212 → 0.0.0-dev.202503281209
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-C2FVF4Hg.d.cts +119 -0
- package/dist/Adapter-C2FVF4Hg.d.ts +119 -0
- package/dist/data/bff/index.cjs +1 -1
- package/dist/data/bff/index.d.cts +7 -4
- package/dist/data/bff/index.d.ts +7 -4
- package/dist/data/bff/index.js +1 -1
- package/dist/data/index.cjs +1 -1
- package/dist/data/index.d.cts +2 -121
- package/dist/data/index.d.ts +2 -121
- package/dist/data/postgres-core/index.cjs +1 -1
- package/dist/data/postgres-core/index.d.cts +11 -9
- package/dist/data/postgres-core/index.d.ts +11 -9
- package/dist/data/postgres-core/index.js +1 -1
- package/dist/index-KSZNOSSS.css +1728 -0
- package/dist/ui/index.cjs +163 -1
- package/dist/ui/index.d.cts +19 -2
- package/dist/ui/index.d.ts +19 -2
- package/dist/ui/index.js +163 -1
- package/package.json +34 -8
- package/dist/adapter-DKF2h1wc.d.cts +0 -40
- package/dist/adapter-sE-cnGiV.d.ts +0 -40
- package/dist/executor-8ESroQWQ.d.ts +0 -9
- package/dist/executor-D1R5ZdYr.d.cts +0 -9
- package/dist/ui/index.css +0 -2
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { A as Adapter, Q as QueryDetails } from '../../adapter-DKF2h1wc.cjs';
|
|
2
|
-
import { E as Executor } from '../../executor-D1R5ZdYr.cjs';
|
|
3
1
|
import { B as BuilderRequirements, Q as Query, a as QueryResult } from '../../query-L1_vLuFd.cjs';
|
|
4
2
|
import 'kysely';
|
|
5
3
|
|
|
6
|
-
interface
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
interface SelectQueryDetails {
|
|
5
|
+
/**
|
|
6
|
+
* The database schema where the table is located. Defaults to "public".
|
|
7
|
+
*/
|
|
8
|
+
schema?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The name of the table to select from.
|
|
11
|
+
*/
|
|
12
|
+
table: string;
|
|
9
13
|
}
|
|
10
|
-
declare function createPostgresAdapter(requirements: PostgresAdapterRequirements): Adapter;
|
|
11
|
-
|
|
12
14
|
/**
|
|
13
15
|
* `ctid` is a system column that represents the physical location of a row in a table.
|
|
14
16
|
* It is a tuple of two integers: `(blockNumber, tupleIndex)`.
|
|
@@ -17,7 +19,7 @@ declare function createPostgresAdapter(requirements: PostgresAdapterRequirements
|
|
|
17
19
|
* Example: '(0,23)' represents the 24th row in the first block of the table.
|
|
18
20
|
*/
|
|
19
21
|
type CTID = `(${number},${number})`;
|
|
20
|
-
declare function getSelectQuery(details:
|
|
22
|
+
declare function getSelectQuery(details: SelectQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
|
21
23
|
[x: string]: unknown;
|
|
22
24
|
ctid: `(${number},${number})`;
|
|
23
25
|
}>;
|
|
@@ -38,4 +40,4 @@ declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapte
|
|
|
38
40
|
*/
|
|
39
41
|
declare function mockTablesQuery(): QueryResult<typeof getTablesQuery>;
|
|
40
42
|
|
|
41
|
-
export { type CTID, type
|
|
43
|
+
export { type CTID, type SelectQueryDetails, getSelectQuery, getTablesQuery, mockSelectQuery, mockTablesQuery };
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { A as Adapter, Q as QueryDetails } from '../../adapter-sE-cnGiV.js';
|
|
2
|
-
import { E as Executor } from '../../executor-8ESroQWQ.js';
|
|
3
1
|
import { B as BuilderRequirements, Q as Query, a as QueryResult } from '../../query-L1_vLuFd.js';
|
|
4
2
|
import 'kysely';
|
|
5
3
|
|
|
6
|
-
interface
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
interface SelectQueryDetails {
|
|
5
|
+
/**
|
|
6
|
+
* The database schema where the table is located. Defaults to "public".
|
|
7
|
+
*/
|
|
8
|
+
schema?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The name of the table to select from.
|
|
11
|
+
*/
|
|
12
|
+
table: string;
|
|
9
13
|
}
|
|
10
|
-
declare function createPostgresAdapter(requirements: PostgresAdapterRequirements): Adapter;
|
|
11
|
-
|
|
12
14
|
/**
|
|
13
15
|
* `ctid` is a system column that represents the physical location of a row in a table.
|
|
14
16
|
* It is a tuple of two integers: `(blockNumber, tupleIndex)`.
|
|
@@ -17,7 +19,7 @@ declare function createPostgresAdapter(requirements: PostgresAdapterRequirements
|
|
|
17
19
|
* Example: '(0,23)' represents the 24th row in the first block of the table.
|
|
18
20
|
*/
|
|
19
21
|
type CTID = `(${number},${number})`;
|
|
20
|
-
declare function getSelectQuery(details:
|
|
22
|
+
declare function getSelectQuery(details: SelectQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
|
21
23
|
[x: string]: unknown;
|
|
22
24
|
ctid: `(${number},${number})`;
|
|
23
25
|
}>;
|
|
@@ -38,4 +40,4 @@ declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapte
|
|
|
38
40
|
*/
|
|
39
41
|
declare function mockTablesQuery(): QueryResult<typeof getTablesQuery>;
|
|
40
42
|
|
|
41
|
-
export { type CTID, type
|
|
43
|
+
export { type CTID, type SelectQueryDetails, getSelectQuery, getTablesQuery, mockSelectQuery, mockTablesQuery };
|