@prisma/studio-core 0.0.0-dev.202504301553 → 0.0.0-dev.202504301809

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,5 +1,5 @@
1
- import { A as Adapter, T as Table, a as AdapterInsertDetails, b as AdapterQueryDetails, c as AdapterUpdateDetails } from '../../adapter-D9mf0fDl.cjs';
2
- import { E as Executor, B as BuilderRequirements, Q as Query } from '../../index-B19_fEW8.cjs';
1
+ import { A as Adapter, T as Table, a as AdapterInsertDetails, b as AdapterQueryDetails, c as AdapterUpdateDetails } from '../../adapter-DZMVLGcT.cjs';
2
+ import { E as Executor, B as BuilderRequirements, Q as Query } from '../../index-tfZkctV4.cjs';
3
3
  import 'kysely';
4
4
 
5
5
  interface PostgresAdapterRequirements {
@@ -38,8 +38,8 @@ declare function getInsertQuery(details: AdapterInsertDetails, requirements?: Om
38
38
  */
39
39
  declare function getSelectQuery(details: AdapterQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
40
40
  [x: string]: unknown;
41
- ctid: `(${number},${number})`;
42
41
  oid: `${bigint}`;
42
+ ctid: `(${number},${number})`;
43
43
  }>;
44
44
  /**
45
45
  * For testing purposes.
@@ -79,9 +79,10 @@ declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapte
79
79
  columns: {
80
80
  name: string;
81
81
  datatype: string;
82
+ datatype_schema: string;
82
83
  pk: boolean;
83
84
  computed: boolean;
84
- notnull: boolean;
85
+ options: string[];
85
86
  }[];
86
87
  }>;
87
88
  /**
@@ -93,33 +94,38 @@ declare function mockTablesQuery(): [{
93
94
  readonly columns: [{
94
95
  readonly name: "id";
95
96
  readonly datatype: "bigint";
97
+ readonly datatype_schema: "public";
96
98
  readonly pk: true;
97
99
  readonly computed: false;
98
- readonly notnull: true;
100
+ readonly options: [];
99
101
  }, {
100
102
  readonly name: "name";
101
103
  readonly datatype: "varchar";
104
+ readonly datatype_schema: "public";
102
105
  readonly pk: false;
103
106
  readonly computed: false;
104
- readonly notnull: true;
107
+ readonly options: [];
105
108
  }, {
106
109
  readonly name: "role";
107
- readonly datatype: "varchar";
110
+ readonly datatype: "role";
111
+ readonly datatype_schema: "public";
108
112
  readonly pk: false;
109
113
  readonly computed: false;
110
- readonly notnull: true;
114
+ readonly options: ["admin", "maintainer", "member"];
111
115
  }, {
112
116
  readonly name: "created_at";
113
117
  readonly datatype: "timestamptz";
118
+ readonly datatype_schema: "public";
114
119
  readonly pk: false;
115
120
  readonly computed: false;
116
- readonly notnull: true;
121
+ readonly options: [];
117
122
  }, {
118
123
  readonly name: "deleted_at";
119
124
  readonly datatype: "timestamptz";
125
+ readonly datatype_schema: "public";
120
126
  readonly pk: false;
121
127
  readonly computed: false;
122
- readonly notnull: true;
128
+ readonly options: [];
123
129
  }];
124
130
  }];
125
131
  /**
@@ -1,5 +1,5 @@
1
- import { A as Adapter, T as Table, a as AdapterInsertDetails, b as AdapterQueryDetails, c as AdapterUpdateDetails } from '../../adapter-D9mf0fDl.js';
2
- import { E as Executor, B as BuilderRequirements, Q as Query } from '../../index-B9kfkRZt.js';
1
+ import { A as Adapter, T as Table, a as AdapterInsertDetails, b as AdapterQueryDetails, c as AdapterUpdateDetails } from '../../adapter-DZMVLGcT.js';
2
+ import { E as Executor, B as BuilderRequirements, Q as Query } from '../../index-B2QY7jfB.js';
3
3
  import 'kysely';
4
4
 
5
5
  interface PostgresAdapterRequirements {
@@ -38,8 +38,8 @@ declare function getInsertQuery(details: AdapterInsertDetails, requirements?: Om
38
38
  */
39
39
  declare function getSelectQuery(details: AdapterQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
40
40
  [x: string]: unknown;
41
- ctid: `(${number},${number})`;
42
41
  oid: `${bigint}`;
42
+ ctid: `(${number},${number})`;
43
43
  }>;
44
44
  /**
45
45
  * For testing purposes.
@@ -79,9 +79,10 @@ declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapte
79
79
  columns: {
80
80
  name: string;
81
81
  datatype: string;
82
+ datatype_schema: string;
82
83
  pk: boolean;
83
84
  computed: boolean;
84
- notnull: boolean;
85
+ options: string[];
85
86
  }[];
86
87
  }>;
87
88
  /**
@@ -93,33 +94,38 @@ declare function mockTablesQuery(): [{
93
94
  readonly columns: [{
94
95
  readonly name: "id";
95
96
  readonly datatype: "bigint";
97
+ readonly datatype_schema: "public";
96
98
  readonly pk: true;
97
99
  readonly computed: false;
98
- readonly notnull: true;
100
+ readonly options: [];
99
101
  }, {
100
102
  readonly name: "name";
101
103
  readonly datatype: "varchar";
104
+ readonly datatype_schema: "public";
102
105
  readonly pk: false;
103
106
  readonly computed: false;
104
- readonly notnull: true;
107
+ readonly options: [];
105
108
  }, {
106
109
  readonly name: "role";
107
- readonly datatype: "varchar";
110
+ readonly datatype: "role";
111
+ readonly datatype_schema: "public";
108
112
  readonly pk: false;
109
113
  readonly computed: false;
110
- readonly notnull: true;
114
+ readonly options: ["admin", "maintainer", "member"];
111
115
  }, {
112
116
  readonly name: "created_at";
113
117
  readonly datatype: "timestamptz";
118
+ readonly datatype_schema: "public";
114
119
  readonly pk: false;
115
120
  readonly computed: false;
116
- readonly notnull: true;
121
+ readonly options: [];
117
122
  }, {
118
123
  readonly name: "deleted_at";
119
124
  readonly datatype: "timestamptz";
125
+ readonly datatype_schema: "public";
120
126
  readonly pk: false;
121
127
  readonly computed: false;
122
- readonly notnull: true;
128
+ readonly options: [];
123
129
  }];
124
130
  }];
125
131
  /**
@@ -1 +1 @@
1
- import{a,b,c,d,e,f,g,h,i,j}from"../../chunk-F6Y2SIK5.js";import"../../chunk-RGBMDID6.js";import"../../chunk-BMVJYUJW.js";export{i as createPostgresAdapter,a as getInsertQuery,b as getSelectQuery,e as getTablesQuery,g as getTimezoneQuery,d as getUpdateQuery,j as mockIntrospect,c as mockSelectQuery,f as mockTablesQuery,h as mockTimezoneQuery};
1
+ import{a,b,c,d,e,f,g,h,i,j}from"../../chunk-ESRQTUP7.js";import"../../chunk-U6LHXUXE.js";import"../../chunk-BMVJYUJW.js";export{i as createPostgresAdapter,a as getInsertQuery,b as getSelectQuery,e as getTablesQuery,g as getTimezoneQuery,d as getUpdateQuery,j as mockIntrospect,c as mockSelectQuery,f as mockTablesQuery,h as mockTimezoneQuery};
@@ -1,4 +1,4 @@
1
- import { T as Table, E as Either } from './adapter-D9mf0fDl.js';
1
+ import { T as Table, E as Either } from './adapter-DZMVLGcT.js';
2
2
  import { WhereInterface, DialectAdapter, QueryCompiler } from 'kysely';
3
3
 
4
4
  interface BuilderRequirements {
@@ -1,4 +1,4 @@
1
- import { T as Table, E as Either } from './adapter-D9mf0fDl.cjs';
1
+ import { T as Table, E as Either } from './adapter-DZMVLGcT.cjs';
2
2
  import { WhereInterface, DialectAdapter, QueryCompiler } from 'kysely';
3
3
 
4
4
  interface BuilderRequirements {