@prisma/studio-core 0.0.0-dev.202503262145 → 0.0.0-dev.202503262318

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,6 +1,33 @@
1
1
  import { B as BuilderRequirements, Q as Query, a as QueryResult } from '../../query-L1_vLuFd.cjs';
2
2
  import 'kysely';
3
3
 
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;
13
+ }
14
+ /**
15
+ * `ctid` is a system column that represents the physical location of a row in a table.
16
+ * It is a tuple of two integers: `(blockNumber, tupleIndex)`.
17
+ * It is used to uniquely identify a row in a table, even if the row has no primary key, or other unique constraints.
18
+ *
19
+ * Example: '(0,23)' represents the 24th row in the first block of the table.
20
+ */
21
+ type CTID = `(${number},${number})`;
22
+ declare function getSelectQuery(details: SelectQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
23
+ [x: string]: unknown;
24
+ ctid: `(${number},${number})`;
25
+ }>;
26
+ /**
27
+ * For testing purposes.
28
+ */
29
+ declare function mockSelectQuery(): QueryResult<typeof getSelectQuery>;
30
+
4
31
  declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
5
32
  schema: string;
6
33
  name: string;
@@ -13,4 +40,4 @@ declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapte
13
40
  */
14
41
  declare function mockTablesQuery(): QueryResult<typeof getTablesQuery>;
15
42
 
16
- export { getTablesQuery, mockTablesQuery };
43
+ export { type CTID, type SelectQueryDetails, getSelectQuery, getTablesQuery, mockSelectQuery, mockTablesQuery };
@@ -1,6 +1,33 @@
1
1
  import { B as BuilderRequirements, Q as Query, a as QueryResult } from '../../query-L1_vLuFd.js';
2
2
  import 'kysely';
3
3
 
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;
13
+ }
14
+ /**
15
+ * `ctid` is a system column that represents the physical location of a row in a table.
16
+ * It is a tuple of two integers: `(blockNumber, tupleIndex)`.
17
+ * It is used to uniquely identify a row in a table, even if the row has no primary key, or other unique constraints.
18
+ *
19
+ * Example: '(0,23)' represents the 24th row in the first block of the table.
20
+ */
21
+ type CTID = `(${number},${number})`;
22
+ declare function getSelectQuery(details: SelectQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
23
+ [x: string]: unknown;
24
+ ctid: `(${number},${number})`;
25
+ }>;
26
+ /**
27
+ * For testing purposes.
28
+ */
29
+ declare function mockSelectQuery(): QueryResult<typeof getSelectQuery>;
30
+
4
31
  declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
5
32
  schema: string;
6
33
  name: string;
@@ -13,4 +40,4 @@ declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapte
13
40
  */
14
41
  declare function mockTablesQuery(): QueryResult<typeof getTablesQuery>;
15
42
 
16
- export { getTablesQuery, mockTablesQuery };
43
+ export { type CTID, type SelectQueryDetails, getSelectQuery, getTablesQuery, mockSelectQuery, mockTablesQuery };