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