@prisma/studio-core 0.5.2 → 0.6.0

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.
@@ -20,21 +20,11 @@ declare function mockIntrospect(): {
20
20
  query: Query;
21
21
  };
22
22
 
23
- /**
24
- * `ctid` is a system column that represents the physical location of a row in a table.
25
- * It is a tuple of two integers: `(blockNumber, tupleIndex)`.
26
- * It is used to uniquely identify a row in a table, even if the row has no primary key, or other unique constraints.
27
- *
28
- * Example: '(0,23)' represents the 24th row in the first block of the table.
29
- */
30
- type CTIDasText = `(${number},${number})`;
31
23
  /**
32
24
  * Inserts one or more rows into a table and returns the inserted rows along with their `ctid`.
33
25
  */
34
26
  declare function getInsertQuery(details: AdapterInsertDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
35
27
  [x: string]: unknown;
36
- } & {
37
- ctid: `(${number},${number})`;
38
28
  }>;
39
29
  /**
40
30
  * Returns a query that selects all columns from a table, along with the `ctid` column, and unbound row count as `oid` (reserved column name that cannot conflict with user columns).
@@ -42,14 +32,12 @@ declare function getInsertQuery(details: AdapterInsertDetails, requirements?: Om
42
32
  declare function getSelectQuery(details: AdapterQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
43
33
  [x: string]: unknown;
44
34
  oid: `${bigint}`;
45
- ctid: `(${number},${number})`;
46
35
  }>;
47
36
  /**
48
37
  * For testing purposes.
49
38
  */
50
39
  declare function mockSelectQuery(): [{
51
40
  readonly created_at: Date;
52
- readonly ctid: "(0,1)";
53
41
  readonly deleted_at: null;
54
42
  readonly id: 1;
55
43
  readonly name: "John Doe";
@@ -58,7 +46,6 @@ declare function mockSelectQuery(): [{
58
46
  readonly name_role: "Jonn Doe - admin";
59
47
  }, {
60
48
  readonly created_at: Date;
61
- readonly ctid: "(0,2)";
62
49
  readonly deleted_at: null;
63
50
  readonly id: 2;
64
51
  readonly name: "Jane Doe";
@@ -71,7 +58,6 @@ declare function mockSelectQuery(): [{
71
58
  */
72
59
  declare function getUpdateQuery(details: AdapterUpdateDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
73
60
  [x: string]: unknown;
74
- ctid: `(${number},${number})`;
75
61
  __ps_updated_at__: `${bigint}`;
76
62
  }>;
77
63
  /**
@@ -253,4 +239,4 @@ declare function getPIDQuery(): Query<{
253
239
  }>;
254
240
  declare function getCancelQuery(pid: {}): Query<unknown>;
255
241
 
256
- export { type CTIDasText, type PostgresAdapterRequirements, createPostgresAdapter, getCancelQuery, getDeleteQuery, getInsertQuery, getPIDQuery, getSelectQuery, getTablesQuery, getTimezoneQuery, getUpdateQuery, mockIntrospect, mockSelectQuery, mockTablesQuery, mockTimezoneQuery };
242
+ export { type PostgresAdapterRequirements, createPostgresAdapter, getCancelQuery, getDeleteQuery, getInsertQuery, getPIDQuery, getSelectQuery, getTablesQuery, getTimezoneQuery, getUpdateQuery, mockIntrospect, mockSelectQuery, mockTablesQuery, mockTimezoneQuery };
@@ -20,21 +20,11 @@ declare function mockIntrospect(): {
20
20
  query: Query;
21
21
  };
22
22
 
23
- /**
24
- * `ctid` is a system column that represents the physical location of a row in a table.
25
- * It is a tuple of two integers: `(blockNumber, tupleIndex)`.
26
- * It is used to uniquely identify a row in a table, even if the row has no primary key, or other unique constraints.
27
- *
28
- * Example: '(0,23)' represents the 24th row in the first block of the table.
29
- */
30
- type CTIDasText = `(${number},${number})`;
31
23
  /**
32
24
  * Inserts one or more rows into a table and returns the inserted rows along with their `ctid`.
33
25
  */
34
26
  declare function getInsertQuery(details: AdapterInsertDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
35
27
  [x: string]: unknown;
36
- } & {
37
- ctid: `(${number},${number})`;
38
28
  }>;
39
29
  /**
40
30
  * Returns a query that selects all columns from a table, along with the `ctid` column, and unbound row count as `oid` (reserved column name that cannot conflict with user columns).
@@ -42,14 +32,12 @@ declare function getInsertQuery(details: AdapterInsertDetails, requirements?: Om
42
32
  declare function getSelectQuery(details: AdapterQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
43
33
  [x: string]: unknown;
44
34
  oid: `${bigint}`;
45
- ctid: `(${number},${number})`;
46
35
  }>;
47
36
  /**
48
37
  * For testing purposes.
49
38
  */
50
39
  declare function mockSelectQuery(): [{
51
40
  readonly created_at: Date;
52
- readonly ctid: "(0,1)";
53
41
  readonly deleted_at: null;
54
42
  readonly id: 1;
55
43
  readonly name: "John Doe";
@@ -58,7 +46,6 @@ declare function mockSelectQuery(): [{
58
46
  readonly name_role: "Jonn Doe - admin";
59
47
  }, {
60
48
  readonly created_at: Date;
61
- readonly ctid: "(0,2)";
62
49
  readonly deleted_at: null;
63
50
  readonly id: 2;
64
51
  readonly name: "Jane Doe";
@@ -71,7 +58,6 @@ declare function mockSelectQuery(): [{
71
58
  */
72
59
  declare function getUpdateQuery(details: AdapterUpdateDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
73
60
  [x: string]: unknown;
74
- ctid: `(${number},${number})`;
75
61
  __ps_updated_at__: `${bigint}`;
76
62
  }>;
77
63
  /**
@@ -253,4 +239,4 @@ declare function getPIDQuery(): Query<{
253
239
  }>;
254
240
  declare function getCancelQuery(pid: {}): Query<unknown>;
255
241
 
256
- export { type CTIDasText, type PostgresAdapterRequirements, createPostgresAdapter, getCancelQuery, getDeleteQuery, getInsertQuery, getPIDQuery, getSelectQuery, getTablesQuery, getTimezoneQuery, getUpdateQuery, mockIntrospect, mockSelectQuery, mockTablesQuery, mockTimezoneQuery };
242
+ export { type PostgresAdapterRequirements, createPostgresAdapter, getCancelQuery, getDeleteQuery, getInsertQuery, getPIDQuery, getSelectQuery, getTablesQuery, getTimezoneQuery, getUpdateQuery, mockIntrospect, mockSelectQuery, mockTablesQuery, mockTimezoneQuery };
@@ -6,5 +6,5 @@ function require(mod) {
6
6
  if (mod === 'react-dom') return ___react_dom___;
7
7
  throw new Error(`Unknown module ${mod}`);
8
8
  }
9
- import{a,b,c,d,e,f,g,h,i,j,k,l,m}from"../../chunk-DHZCM7MU.js";import"../../chunk-AQXRIQHE.js";import"../../chunk-GDQBQ7MK.js";export{j as createPostgresAdapter,m as getCancelQuery,e as getDeleteQuery,a as getInsertQuery,l as getPIDQuery,b as getSelectQuery,f as getTablesQuery,h as getTimezoneQuery,d as getUpdateQuery,k as mockIntrospect,c as mockSelectQuery,g as mockTablesQuery,i as mockTimezoneQuery};
9
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m}from"../../chunk-WRNNFY3B.js";import"../../chunk-AQXRIQHE.js";import"../../chunk-GDQBQ7MK.js";export{j as createPostgresAdapter,m as getCancelQuery,e as getDeleteQuery,a as getInsertQuery,l as getPIDQuery,b as getSelectQuery,f as getTablesQuery,h as getTimezoneQuery,d as getUpdateQuery,k as mockIntrospect,c as mockSelectQuery,g as mockTablesQuery,i as mockTimezoneQuery};
10
10
  //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFtdLAogICJzb3VyY2VzQ29udGVudCI6IFtdLAogICJtYXBwaW5ncyI6ICIiLAogICJuYW1lcyI6IFtdCn0K