@prisma/studio-core 0.11.0 → 0.11.1

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.
Files changed (43) hide show
  1. package/dist/chunk-I4OGOLAT.js +10 -0
  2. package/dist/chunk-J6YP3MM4.js +10 -0
  3. package/dist/data/accelerate/index.d.cts +1 -1
  4. package/dist/data/accelerate/index.d.ts +1 -1
  5. package/dist/data/bff/index.d.cts +1 -1
  6. package/dist/data/bff/index.d.ts +1 -1
  7. package/dist/data/index.d.cts +1 -1
  8. package/dist/data/index.d.ts +1 -1
  9. package/dist/data/mysql-core/index.cjs +2 -2
  10. package/dist/data/mysql-core/index.d.cts +49 -2
  11. package/dist/data/mysql-core/index.d.ts +49 -2
  12. package/dist/data/mysql-core/index.js +3 -3
  13. package/dist/data/mysql2/index.d.cts +1 -1
  14. package/dist/data/mysql2/index.d.ts +1 -1
  15. package/dist/data/node-sqlite/index.d.cts +1 -1
  16. package/dist/data/node-sqlite/index.d.ts +1 -1
  17. package/dist/data/pglite/index.cjs +1 -1
  18. package/dist/data/pglite/index.d.cts +1 -1
  19. package/dist/data/pglite/index.d.ts +1 -1
  20. package/dist/data/pglite/index.js +1 -1
  21. package/dist/data/postgres-core/index.cjs +1 -1
  22. package/dist/data/postgres-core/index.d.cts +1 -1
  23. package/dist/data/postgres-core/index.d.ts +1 -1
  24. package/dist/data/postgres-core/index.js +1 -1
  25. package/dist/data/postgresjs/index.d.cts +1 -1
  26. package/dist/data/postgresjs/index.d.ts +1 -1
  27. package/dist/data/ppg/index.d.cts +1 -1
  28. package/dist/data/ppg/index.d.ts +1 -1
  29. package/dist/data/sqlite-core/index.cjs +2 -2
  30. package/dist/data/sqlite-core/index.d.cts +13 -1
  31. package/dist/data/sqlite-core/index.d.ts +13 -1
  32. package/dist/data/sqlite-core/index.js +2 -2
  33. package/dist/{executor-B5UdD1ZH.d.cts → executor-CFej-Wsy.d.cts} +1 -1
  34. package/dist/{executor-B5UdD1ZH.d.ts → executor-CFej-Wsy.d.ts} +1 -1
  35. package/dist/metafile-cjs.json +1 -1
  36. package/dist/metafile-esm.json +1 -1
  37. package/dist/ui/index.cjs +1 -1
  38. package/dist/ui/index.d.cts +1 -1
  39. package/dist/ui/index.d.ts +1 -1
  40. package/dist/ui/index.js +1 -1
  41. package/package.json +1 -1
  42. package/dist/chunk-DUKJZEWA.js +0 -10
  43. package/dist/chunk-PYMTS4U4.js +0 -10
@@ -1,4 +1,4 @@
1
- import { A as AdapterRequirements, S as SequenceExecutor, d as Adapter, T as Table, F as FilterOperator, Q as Query, y as AdapterDeleteDetails, K as BuilderRequirements, w as AdapterUpdateDetails, n as AdapterQueryDetails } from '../../executor-B5UdD1ZH.cjs';
1
+ import { A as AdapterRequirements, S as SequenceExecutor, d as Adapter, T as Table, F as FilterOperator, Q as Query, y as AdapterDeleteDetails, K as BuilderRequirements, w as AdapterUpdateDetails, n as AdapterQueryDetails } from '../../executor-CFej-Wsy.cjs';
2
2
  import { OkPacketParams } from 'mysql2';
3
3
  import * as kysely from 'kysely';
4
4
 
@@ -12,7 +12,7 @@ declare function createMySQLAdapter(requirements: MySQLAdapterRequirements): Ada
12
12
  declare function mockIntrospect(): {
13
13
  schemas: { [K in "studio"]: {
14
14
  name: K;
15
- tables: { [T in "animals" | "users"]: Table; };
15
+ tables: { [T in "animals" | "composite_pk" | "users"]: Table; };
16
16
  }; };
17
17
  timezone: "UTC";
18
18
  filterOperators: FilterOperator[];
@@ -62,6 +62,7 @@ declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapte
62
62
  schema: string;
63
63
  type: "BASE TABLE" | "VIEW";
64
64
  columns: {
65
+ default: string | null;
65
66
  name: string;
66
67
  datatype: string;
67
68
  position: number;
@@ -78,6 +79,7 @@ declare function mockTablesQuery(): [{
78
79
  readonly autoincrement: 1;
79
80
  readonly computed: 0;
80
81
  readonly datatype: "int";
82
+ readonly default: null;
81
83
  readonly fk_column: null;
82
84
  readonly fk_table: null;
83
85
  readonly name: "id";
@@ -88,6 +90,7 @@ declare function mockTablesQuery(): [{
88
90
  readonly autoincrement: 0;
89
91
  readonly computed: 0;
90
92
  readonly datatype: "binary(16)";
93
+ readonly default: "uuid_to_bin(uuid())";
91
94
  readonly fk_column: null;
92
95
  readonly fk_table: null;
93
96
  readonly name: "uuid";
@@ -98,6 +101,7 @@ declare function mockTablesQuery(): [{
98
101
  readonly autoincrement: 0;
99
102
  readonly computed: 0;
100
103
  readonly datatype: "varchar(255)";
104
+ readonly default: null;
101
105
  readonly fk_column: null;
102
106
  readonly fk_table: null;
103
107
  readonly name: "name";
@@ -108,6 +112,7 @@ declare function mockTablesQuery(): [{
108
112
  readonly autoincrement: 0;
109
113
  readonly computed: 1;
110
114
  readonly datatype: "text";
115
+ readonly default: null;
111
116
  readonly fk_column: null;
112
117
  readonly fk_table: null;
113
118
  readonly name: "id_name";
@@ -118,11 +123,50 @@ declare function mockTablesQuery(): [{
118
123
  readonly name: "animals";
119
124
  readonly schema: "studio";
120
125
  readonly type: "BASE TABLE";
126
+ }, {
127
+ readonly columns: [{
128
+ readonly autoincrement: 0;
129
+ readonly computed: 0;
130
+ readonly datatype: "char(36)";
131
+ readonly default: "uuid()";
132
+ readonly fk_column: null;
133
+ readonly fk_table: null;
134
+ readonly name: "id";
135
+ readonly nullable: 0;
136
+ readonly pk: 1;
137
+ readonly position: 1;
138
+ }, {
139
+ readonly autoincrement: 0;
140
+ readonly computed: 0;
141
+ readonly datatype: "text";
142
+ readonly default: null;
143
+ readonly fk_column: null;
144
+ readonly fk_table: null;
145
+ readonly name: "name";
146
+ readonly nullable: 0;
147
+ readonly pk: 2;
148
+ readonly position: 2;
149
+ }, {
150
+ readonly autoincrement: 0;
151
+ readonly computed: 0;
152
+ readonly datatype: "timestamp";
153
+ readonly default: "CURRENT_TIMESTAMP";
154
+ readonly fk_column: null;
155
+ readonly fk_table: null;
156
+ readonly name: "created_at";
157
+ readonly nullable: 1;
158
+ readonly pk: null;
159
+ readonly position: 3;
160
+ }];
161
+ readonly name: "composite_pk";
162
+ readonly schema: "studio";
163
+ readonly type: "BASE TABLE";
121
164
  }, {
122
165
  readonly columns: [{
123
166
  readonly autoincrement: 1;
124
167
  readonly computed: 0;
125
168
  readonly datatype: "int";
169
+ readonly default: null;
126
170
  readonly fk_column: null;
127
171
  readonly fk_table: null;
128
172
  readonly name: "id";
@@ -133,6 +177,7 @@ declare function mockTablesQuery(): [{
133
177
  readonly autoincrement: 0;
134
178
  readonly computed: 0;
135
179
  readonly datatype: "timestamp";
180
+ readonly default: null;
136
181
  readonly fk_column: null;
137
182
  readonly fk_table: null;
138
183
  readonly name: "created_at";
@@ -143,6 +188,7 @@ declare function mockTablesQuery(): [{
143
188
  readonly autoincrement: 0;
144
189
  readonly computed: 0;
145
190
  readonly datatype: "enum('admin','maintainer','member')";
191
+ readonly default: null;
146
192
  readonly fk_column: null;
147
193
  readonly fk_table: null;
148
194
  readonly name: "role";
@@ -153,6 +199,7 @@ declare function mockTablesQuery(): [{
153
199
  readonly autoincrement: 0;
154
200
  readonly computed: 0;
155
201
  readonly datatype: "int";
202
+ readonly default: null;
156
203
  readonly fk_column: "id";
157
204
  readonly fk_table: "animals";
158
205
  readonly name: "animal_id";
@@ -1,4 +1,4 @@
1
- import { A as AdapterRequirements, S as SequenceExecutor, d as Adapter, T as Table, F as FilterOperator, Q as Query, y as AdapterDeleteDetails, K as BuilderRequirements, w as AdapterUpdateDetails, n as AdapterQueryDetails } from '../../executor-B5UdD1ZH.js';
1
+ import { A as AdapterRequirements, S as SequenceExecutor, d as Adapter, T as Table, F as FilterOperator, Q as Query, y as AdapterDeleteDetails, K as BuilderRequirements, w as AdapterUpdateDetails, n as AdapterQueryDetails } from '../../executor-CFej-Wsy.js';
2
2
  import { OkPacketParams } from 'mysql2';
3
3
  import * as kysely from 'kysely';
4
4
 
@@ -12,7 +12,7 @@ declare function createMySQLAdapter(requirements: MySQLAdapterRequirements): Ada
12
12
  declare function mockIntrospect(): {
13
13
  schemas: { [K in "studio"]: {
14
14
  name: K;
15
- tables: { [T in "animals" | "users"]: Table; };
15
+ tables: { [T in "animals" | "composite_pk" | "users"]: Table; };
16
16
  }; };
17
17
  timezone: "UTC";
18
18
  filterOperators: FilterOperator[];
@@ -62,6 +62,7 @@ declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapte
62
62
  schema: string;
63
63
  type: "BASE TABLE" | "VIEW";
64
64
  columns: {
65
+ default: string | null;
65
66
  name: string;
66
67
  datatype: string;
67
68
  position: number;
@@ -78,6 +79,7 @@ declare function mockTablesQuery(): [{
78
79
  readonly autoincrement: 1;
79
80
  readonly computed: 0;
80
81
  readonly datatype: "int";
82
+ readonly default: null;
81
83
  readonly fk_column: null;
82
84
  readonly fk_table: null;
83
85
  readonly name: "id";
@@ -88,6 +90,7 @@ declare function mockTablesQuery(): [{
88
90
  readonly autoincrement: 0;
89
91
  readonly computed: 0;
90
92
  readonly datatype: "binary(16)";
93
+ readonly default: "uuid_to_bin(uuid())";
91
94
  readonly fk_column: null;
92
95
  readonly fk_table: null;
93
96
  readonly name: "uuid";
@@ -98,6 +101,7 @@ declare function mockTablesQuery(): [{
98
101
  readonly autoincrement: 0;
99
102
  readonly computed: 0;
100
103
  readonly datatype: "varchar(255)";
104
+ readonly default: null;
101
105
  readonly fk_column: null;
102
106
  readonly fk_table: null;
103
107
  readonly name: "name";
@@ -108,6 +112,7 @@ declare function mockTablesQuery(): [{
108
112
  readonly autoincrement: 0;
109
113
  readonly computed: 1;
110
114
  readonly datatype: "text";
115
+ readonly default: null;
111
116
  readonly fk_column: null;
112
117
  readonly fk_table: null;
113
118
  readonly name: "id_name";
@@ -118,11 +123,50 @@ declare function mockTablesQuery(): [{
118
123
  readonly name: "animals";
119
124
  readonly schema: "studio";
120
125
  readonly type: "BASE TABLE";
126
+ }, {
127
+ readonly columns: [{
128
+ readonly autoincrement: 0;
129
+ readonly computed: 0;
130
+ readonly datatype: "char(36)";
131
+ readonly default: "uuid()";
132
+ readonly fk_column: null;
133
+ readonly fk_table: null;
134
+ readonly name: "id";
135
+ readonly nullable: 0;
136
+ readonly pk: 1;
137
+ readonly position: 1;
138
+ }, {
139
+ readonly autoincrement: 0;
140
+ readonly computed: 0;
141
+ readonly datatype: "text";
142
+ readonly default: null;
143
+ readonly fk_column: null;
144
+ readonly fk_table: null;
145
+ readonly name: "name";
146
+ readonly nullable: 0;
147
+ readonly pk: 2;
148
+ readonly position: 2;
149
+ }, {
150
+ readonly autoincrement: 0;
151
+ readonly computed: 0;
152
+ readonly datatype: "timestamp";
153
+ readonly default: "CURRENT_TIMESTAMP";
154
+ readonly fk_column: null;
155
+ readonly fk_table: null;
156
+ readonly name: "created_at";
157
+ readonly nullable: 1;
158
+ readonly pk: null;
159
+ readonly position: 3;
160
+ }];
161
+ readonly name: "composite_pk";
162
+ readonly schema: "studio";
163
+ readonly type: "BASE TABLE";
121
164
  }, {
122
165
  readonly columns: [{
123
166
  readonly autoincrement: 1;
124
167
  readonly computed: 0;
125
168
  readonly datatype: "int";
169
+ readonly default: null;
126
170
  readonly fk_column: null;
127
171
  readonly fk_table: null;
128
172
  readonly name: "id";
@@ -133,6 +177,7 @@ declare function mockTablesQuery(): [{
133
177
  readonly autoincrement: 0;
134
178
  readonly computed: 0;
135
179
  readonly datatype: "timestamp";
180
+ readonly default: null;
136
181
  readonly fk_column: null;
137
182
  readonly fk_table: null;
138
183
  readonly name: "created_at";
@@ -143,6 +188,7 @@ declare function mockTablesQuery(): [{
143
188
  readonly autoincrement: 0;
144
189
  readonly computed: 0;
145
190
  readonly datatype: "enum('admin','maintainer','member')";
191
+ readonly default: null;
146
192
  readonly fk_column: null;
147
193
  readonly fk_table: null;
148
194
  readonly name: "role";
@@ -153,6 +199,7 @@ declare function mockTablesQuery(): [{
153
199
  readonly autoincrement: 0;
154
200
  readonly computed: 0;
155
201
  readonly datatype: "int";
202
+ readonly default: null;
156
203
  readonly fk_column: "id";
157
204
  readonly fk_table: "animals";
158
205
  readonly name: "animal_id";