@prisma/studio-core 0.0.0-dev.202504301931 → 0.0.0-dev.202504301933
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.
- package/dist/{adapter-BBkqN5ib.d.cts → adapter-B9MiXpUz.d.cts} +19 -1
- package/dist/{adapter-BBkqN5ib.d.ts → adapter-B9MiXpUz.d.ts} +19 -1
- package/dist/{chunk-U6LHXUXE.js → chunk-GNXJUBVK.js} +1 -1
- package/dist/chunk-OF2BKSP4.js +1 -0
- package/dist/data/accelerate/index.d.cts +2 -2
- package/dist/data/accelerate/index.d.ts +2 -2
- package/dist/data/bff/index.d.cts +2 -2
- package/dist/data/bff/index.d.ts +2 -2
- package/dist/data/index.cjs +1 -1
- package/dist/data/index.d.cts +2 -2
- package/dist/data/index.d.ts +2 -2
- package/dist/data/index.js +1 -1
- package/dist/data/pglite/index.cjs +1 -1
- package/dist/data/pglite/index.d.cts +2 -2
- package/dist/data/pglite/index.d.ts +2 -2
- package/dist/data/pglite/index.js +1 -1
- package/dist/data/postgres-core/index.cjs +1 -1
- package/dist/data/postgres-core/index.d.cts +8 -4
- package/dist/data/postgres-core/index.d.ts +8 -4
- package/dist/data/postgres-core/index.js +1 -1
- package/dist/{index-C-8aKf_b.d.cts → index-BQXHy3Nu.d.ts} +19 -6
- package/dist/{index-BcpDF4Jc.d.ts → index-CWPK1srI.d.cts} +19 -6
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-O2Q3TKIC.js +0 -1
|
@@ -27,6 +27,10 @@ interface Adapter {
|
|
|
27
27
|
* Updates a given row in the database with given changes.
|
|
28
28
|
*/
|
|
29
29
|
update(details: AdapterUpdateDetails, options: AdapterUpdateOptions): Promise<Either<Error, AdapterUpdateResult>>;
|
|
30
|
+
/**
|
|
31
|
+
* Deletes given rows from the database.
|
|
32
|
+
*/
|
|
33
|
+
delete(details: AdapterDeleteDetails, options: AdapterDeleteOptions): Promise<Either<Error, AdapterDeleteResult>>;
|
|
30
34
|
}
|
|
31
35
|
interface AdapterBaseOptions {
|
|
32
36
|
}
|
|
@@ -39,6 +43,8 @@ interface AdapterInsertOptions extends AdapterBaseOptions {
|
|
|
39
43
|
}
|
|
40
44
|
interface AdapterUpdateOptions extends AdapterBaseOptions {
|
|
41
45
|
}
|
|
46
|
+
interface AdapterDeleteOptions extends AdapterBaseOptions {
|
|
47
|
+
}
|
|
42
48
|
type SchemaName = string;
|
|
43
49
|
interface Introspection {
|
|
44
50
|
schemas: Record<SchemaName, Schema>;
|
|
@@ -177,5 +183,17 @@ interface AdapterUpdateResult {
|
|
|
177
183
|
__ps_updated_at__: string | number | Date;
|
|
178
184
|
};
|
|
179
185
|
}
|
|
186
|
+
interface AdapterDeleteDetails {
|
|
187
|
+
/**
|
|
188
|
+
* The rows to delete.
|
|
189
|
+
*/
|
|
190
|
+
rows: Record<ColumnName, unknown>[];
|
|
191
|
+
/**
|
|
192
|
+
* The table to delete from.
|
|
193
|
+
*/
|
|
194
|
+
table: Table;
|
|
195
|
+
}
|
|
196
|
+
interface AdapterDeleteResult {
|
|
197
|
+
}
|
|
180
198
|
|
|
181
|
-
export type { Adapter as A, BigIntString as B, Column as C, DataType as D, Either as E, Introspection as I, NumericString as N, Schema as S, Table as T, AdapterInsertDetails as a, AdapterQueryDetails as b, AdapterUpdateDetails as c,
|
|
199
|
+
export type { Adapter as A, BigIntString as B, Column as C, DataType as D, Either as E, Introspection as I, NumericString as N, Schema as S, Table as T, AdapterInsertDetails as a, AdapterQueryDetails as b, AdapterUpdateDetails as c, AdapterDeleteDetails as d, AdapterBaseOptions as e, AdapterIntrospectOptions as f, AdapterQueryOptions as g, AdapterInsertOptions as h, AdapterUpdateOptions as i, AdapterDeleteOptions as j, DataTypeGroup as k, SortOrderItem as l, SortDirection as m, AdapterQueryResult as n, AdapterInsertResult as o, AdapterUpdateResult as p, AdapterDeleteResult as q };
|
|
@@ -27,6 +27,10 @@ interface Adapter {
|
|
|
27
27
|
* Updates a given row in the database with given changes.
|
|
28
28
|
*/
|
|
29
29
|
update(details: AdapterUpdateDetails, options: AdapterUpdateOptions): Promise<Either<Error, AdapterUpdateResult>>;
|
|
30
|
+
/**
|
|
31
|
+
* Deletes given rows from the database.
|
|
32
|
+
*/
|
|
33
|
+
delete(details: AdapterDeleteDetails, options: AdapterDeleteOptions): Promise<Either<Error, AdapterDeleteResult>>;
|
|
30
34
|
}
|
|
31
35
|
interface AdapterBaseOptions {
|
|
32
36
|
}
|
|
@@ -39,6 +43,8 @@ interface AdapterInsertOptions extends AdapterBaseOptions {
|
|
|
39
43
|
}
|
|
40
44
|
interface AdapterUpdateOptions extends AdapterBaseOptions {
|
|
41
45
|
}
|
|
46
|
+
interface AdapterDeleteOptions extends AdapterBaseOptions {
|
|
47
|
+
}
|
|
42
48
|
type SchemaName = string;
|
|
43
49
|
interface Introspection {
|
|
44
50
|
schemas: Record<SchemaName, Schema>;
|
|
@@ -177,5 +183,17 @@ interface AdapterUpdateResult {
|
|
|
177
183
|
__ps_updated_at__: string | number | Date;
|
|
178
184
|
};
|
|
179
185
|
}
|
|
186
|
+
interface AdapterDeleteDetails {
|
|
187
|
+
/**
|
|
188
|
+
* The rows to delete.
|
|
189
|
+
*/
|
|
190
|
+
rows: Record<ColumnName, unknown>[];
|
|
191
|
+
/**
|
|
192
|
+
* The table to delete from.
|
|
193
|
+
*/
|
|
194
|
+
table: Table;
|
|
195
|
+
}
|
|
196
|
+
interface AdapterDeleteResult {
|
|
197
|
+
}
|
|
180
198
|
|
|
181
|
-
export type { Adapter as A, BigIntString as B, Column as C, DataType as D, Either as E, Introspection as I, NumericString as N, Schema as S, Table as T, AdapterInsertDetails as a, AdapterQueryDetails as b, AdapterUpdateDetails as c,
|
|
199
|
+
export type { Adapter as A, BigIntString as B, Column as C, DataType as D, Either as E, Introspection as I, NumericString as N, Schema as S, Table as T, AdapterInsertDetails as a, AdapterQueryDetails as b, AdapterUpdateDetails as c, AdapterDeleteDetails as d, AdapterBaseOptions as e, AdapterIntrospectOptions as f, AdapterQueryOptions as g, AdapterInsertOptions as h, AdapterUpdateOptions as i, AdapterDeleteOptions as j, DataTypeGroup as k, SortOrderItem as l, SortDirection as m, AdapterQueryResult as n, AdapterInsertResult as o, AdapterUpdateResult as p, AdapterDeleteResult as q };
|