@prisma/studio-core 0.0.0-dev.202503281209 → 0.0.0-dev.202503281302

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.
@@ -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 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;
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: SelectQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
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 SelectQueryDetails, getSelectQuery, getTablesQuery, mockSelectQuery, mockTablesQuery };
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 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;
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: SelectQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
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 SelectQueryDetails, getSelectQuery, getTablesQuery, mockSelectQuery, mockTablesQuery };
42
+ export { type CTID, type PostgresAdapterRequirements, createPostgresAdapter, getSelectQuery, getTablesQuery, mockSelectQuery, mockTablesQuery };