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