@prisma/studio-core 0.0.0-dev.202505122034 → 0.0.0-dev.202505122216

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, F as FilterOperator, a as AdapterInsertDetails, b as AdapterQueryDetails, c as AdapterUpdateDetails, d as AdapterDeleteDetails } from '../../adapter-BQaQoUNI.cjs';
2
- import { E as Executor, B as BuilderRequirements, Q as Query } from '../../index-DuLnmKEq.cjs';
1
+ import { A as Adapter, T as Table, F as FilterOperator, a as AdapterInsertDetails, b as AdapterQueryDetails, c as AdapterUpdateDetails, d as AdapterDeleteDetails } from '../../adapter-Bt_0JnjE.cjs';
2
+ import { E as Executor, B as BuilderRequirements, Q as Query } from '../../index-C9ZnIXOd.cjs';
3
3
  import * as kysely from 'kysely';
4
4
 
5
5
  interface PostgresAdapterRequirements {
@@ -12,7 +12,7 @@ declare function createPostgresAdapter(requirements: PostgresAdapterRequirements
12
12
  */
13
13
  declare function mockIntrospect(): {
14
14
  schemas: { [K in "public"]: {
15
- tables: { [T in "users"]: Table; };
15
+ tables: { [T in "users" | "posts"]: Table; };
16
16
  }; };
17
17
  timezone: "UTC";
18
18
  filterOperators: FilterOperator[];
@@ -85,6 +85,9 @@ declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapte
85
85
  name: string;
86
86
  datatype: string;
87
87
  datatype_schema: string;
88
+ foreign_key_schema: string | null;
89
+ foreign_key_table: string | null;
90
+ foreign_key_column: string | null;
88
91
  pk: boolean;
89
92
  computed: boolean;
90
93
  nullable: boolean;
@@ -105,6 +108,9 @@ declare function mockTablesQuery(): [{
105
108
  readonly computed: false;
106
109
  readonly options: [];
107
110
  readonly nullable: true;
111
+ readonly foreign_key_schema: null;
112
+ readonly foreign_key_table: null;
113
+ readonly foreign_key_column: null;
108
114
  }, {
109
115
  readonly name: "name";
110
116
  readonly datatype: "varchar";
@@ -113,6 +119,9 @@ declare function mockTablesQuery(): [{
113
119
  readonly computed: false;
114
120
  readonly options: [];
115
121
  readonly nullable: true;
122
+ readonly foreign_key_schema: null;
123
+ readonly foreign_key_table: null;
124
+ readonly foreign_key_column: null;
116
125
  }, {
117
126
  readonly name: "role";
118
127
  readonly datatype: "role";
@@ -121,6 +130,9 @@ declare function mockTablesQuery(): [{
121
130
  readonly computed: false;
122
131
  readonly options: ["admin", "maintainer", "member"];
123
132
  readonly nullable: true;
133
+ readonly foreign_key_schema: null;
134
+ readonly foreign_key_table: null;
135
+ readonly foreign_key_column: null;
124
136
  }, {
125
137
  readonly name: "created_at";
126
138
  readonly datatype: "timestamptz";
@@ -129,6 +141,9 @@ declare function mockTablesQuery(): [{
129
141
  readonly computed: false;
130
142
  readonly options: [];
131
143
  readonly nullable: true;
144
+ readonly foreign_key_schema: null;
145
+ readonly foreign_key_table: null;
146
+ readonly foreign_key_column: null;
132
147
  }, {
133
148
  readonly name: "deleted_at";
134
149
  readonly datatype: "timestamptz";
@@ -137,6 +152,46 @@ declare function mockTablesQuery(): [{
137
152
  readonly computed: false;
138
153
  readonly options: [];
139
154
  readonly nullable: true;
155
+ readonly foreign_key_schema: null;
156
+ readonly foreign_key_table: null;
157
+ readonly foreign_key_column: null;
158
+ }];
159
+ }, {
160
+ readonly schema: "public";
161
+ readonly name: "posts";
162
+ readonly columns: [{
163
+ readonly name: "id";
164
+ readonly datatype: "bigint";
165
+ readonly datatype_schema: "public";
166
+ readonly pk: true;
167
+ readonly computed: false;
168
+ readonly options: [];
169
+ readonly nullable: true;
170
+ readonly foreign_key_schema: null;
171
+ readonly foreign_key_table: null;
172
+ readonly foreign_key_column: null;
173
+ }, {
174
+ readonly name: "user_id";
175
+ readonly datatype: "bigint";
176
+ readonly datatype_schema: "public";
177
+ readonly pk: false;
178
+ readonly computed: false;
179
+ readonly options: [];
180
+ readonly nullable: false;
181
+ readonly foreign_key_schema: "public";
182
+ readonly foreign_key_table: "users";
183
+ readonly foreign_key_column: "id";
184
+ }, {
185
+ readonly name: "content";
186
+ readonly datatype: "text";
187
+ readonly datatype_schema: "public";
188
+ readonly pk: false;
189
+ readonly computed: false;
190
+ readonly options: [];
191
+ readonly nullable: true;
192
+ readonly foreign_key_schema: null;
193
+ readonly foreign_key_table: null;
194
+ readonly foreign_key_column: null;
140
195
  }];
141
196
  }];
142
197
  /**
@@ -1,5 +1,5 @@
1
- import { A as Adapter, T as Table, F as FilterOperator, a as AdapterInsertDetails, b as AdapterQueryDetails, c as AdapterUpdateDetails, d as AdapterDeleteDetails } from '../../adapter-BQaQoUNI.js';
2
- import { E as Executor, B as BuilderRequirements, Q as Query } from '../../index-Crb7VQNF.js';
1
+ import { A as Adapter, T as Table, F as FilterOperator, a as AdapterInsertDetails, b as AdapterQueryDetails, c as AdapterUpdateDetails, d as AdapterDeleteDetails } from '../../adapter-Bt_0JnjE.js';
2
+ import { E as Executor, B as BuilderRequirements, Q as Query } from '../../index-B6_kEBLg.js';
3
3
  import * as kysely from 'kysely';
4
4
 
5
5
  interface PostgresAdapterRequirements {
@@ -12,7 +12,7 @@ declare function createPostgresAdapter(requirements: PostgresAdapterRequirements
12
12
  */
13
13
  declare function mockIntrospect(): {
14
14
  schemas: { [K in "public"]: {
15
- tables: { [T in "users"]: Table; };
15
+ tables: { [T in "users" | "posts"]: Table; };
16
16
  }; };
17
17
  timezone: "UTC";
18
18
  filterOperators: FilterOperator[];
@@ -85,6 +85,9 @@ declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapte
85
85
  name: string;
86
86
  datatype: string;
87
87
  datatype_schema: string;
88
+ foreign_key_schema: string | null;
89
+ foreign_key_table: string | null;
90
+ foreign_key_column: string | null;
88
91
  pk: boolean;
89
92
  computed: boolean;
90
93
  nullable: boolean;
@@ -105,6 +108,9 @@ declare function mockTablesQuery(): [{
105
108
  readonly computed: false;
106
109
  readonly options: [];
107
110
  readonly nullable: true;
111
+ readonly foreign_key_schema: null;
112
+ readonly foreign_key_table: null;
113
+ readonly foreign_key_column: null;
108
114
  }, {
109
115
  readonly name: "name";
110
116
  readonly datatype: "varchar";
@@ -113,6 +119,9 @@ declare function mockTablesQuery(): [{
113
119
  readonly computed: false;
114
120
  readonly options: [];
115
121
  readonly nullable: true;
122
+ readonly foreign_key_schema: null;
123
+ readonly foreign_key_table: null;
124
+ readonly foreign_key_column: null;
116
125
  }, {
117
126
  readonly name: "role";
118
127
  readonly datatype: "role";
@@ -121,6 +130,9 @@ declare function mockTablesQuery(): [{
121
130
  readonly computed: false;
122
131
  readonly options: ["admin", "maintainer", "member"];
123
132
  readonly nullable: true;
133
+ readonly foreign_key_schema: null;
134
+ readonly foreign_key_table: null;
135
+ readonly foreign_key_column: null;
124
136
  }, {
125
137
  readonly name: "created_at";
126
138
  readonly datatype: "timestamptz";
@@ -129,6 +141,9 @@ declare function mockTablesQuery(): [{
129
141
  readonly computed: false;
130
142
  readonly options: [];
131
143
  readonly nullable: true;
144
+ readonly foreign_key_schema: null;
145
+ readonly foreign_key_table: null;
146
+ readonly foreign_key_column: null;
132
147
  }, {
133
148
  readonly name: "deleted_at";
134
149
  readonly datatype: "timestamptz";
@@ -137,6 +152,46 @@ declare function mockTablesQuery(): [{
137
152
  readonly computed: false;
138
153
  readonly options: [];
139
154
  readonly nullable: true;
155
+ readonly foreign_key_schema: null;
156
+ readonly foreign_key_table: null;
157
+ readonly foreign_key_column: null;
158
+ }];
159
+ }, {
160
+ readonly schema: "public";
161
+ readonly name: "posts";
162
+ readonly columns: [{
163
+ readonly name: "id";
164
+ readonly datatype: "bigint";
165
+ readonly datatype_schema: "public";
166
+ readonly pk: true;
167
+ readonly computed: false;
168
+ readonly options: [];
169
+ readonly nullable: true;
170
+ readonly foreign_key_schema: null;
171
+ readonly foreign_key_table: null;
172
+ readonly foreign_key_column: null;
173
+ }, {
174
+ readonly name: "user_id";
175
+ readonly datatype: "bigint";
176
+ readonly datatype_schema: "public";
177
+ readonly pk: false;
178
+ readonly computed: false;
179
+ readonly options: [];
180
+ readonly nullable: false;
181
+ readonly foreign_key_schema: "public";
182
+ readonly foreign_key_table: "users";
183
+ readonly foreign_key_column: "id";
184
+ }, {
185
+ readonly name: "content";
186
+ readonly datatype: "text";
187
+ readonly datatype_schema: "public";
188
+ readonly pk: false;
189
+ readonly computed: false;
190
+ readonly options: [];
191
+ readonly nullable: true;
192
+ readonly foreign_key_schema: null;
193
+ readonly foreign_key_table: null;
194
+ readonly foreign_key_column: null;
140
195
  }];
141
196
  }];
142
197
  /**
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f,g,h,i,j,k}from"../../chunk-IAE3ZG42.js";import"../../chunk-OGMDOPWW.js";import"../../chunk-XBQ4XZ2M.js";export{j as createPostgresAdapter,e as getDeleteQuery,a as getInsertQuery,b as getSelectQuery,f as getTablesQuery,h as getTimezoneQuery,d as getUpdateQuery,k as mockIntrospect,c as mockSelectQuery,g as mockTablesQuery,i as mockTimezoneQuery};
1
+ import{a,b,c,d,e,f,g,h,i,j,k}from"../../chunk-KBBN6R5J.js";import"../../chunk-OGMDOPWW.js";import"../../chunk-XBQ4XZ2M.js";export{j as createPostgresAdapter,e as getDeleteQuery,a as getInsertQuery,b as getSelectQuery,f as getTablesQuery,h as getTimezoneQuery,d as getUpdateQuery,k as mockIntrospect,c as mockSelectQuery,g as mockTablesQuery,i as mockTimezoneQuery};
2
2
  //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFtdLAogICJzb3VyY2VzQ29udGVudCI6IFtdLAogICJtYXBwaW5ncyI6ICIiLAogICJuYW1lcyI6IFtdCn0K
@@ -1,4 +1,4 @@
1
- import { T as Table, E as Either } from './adapter-BQaQoUNI.js';
1
+ import { T as Table, E as Either } from './adapter-Bt_0JnjE.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-BQaQoUNI.cjs';
1
+ import { T as Table, E as Either } from './adapter-Bt_0JnjE.cjs';
2
2
  import { WhereInterface, DialectAdapter, QueryCompiler } from 'kysely';
3
3
 
4
4
  interface BuilderRequirements {