@prisma/studio-core 0.0.0-dev.202504271644 → 0.0.0-dev.202504280803
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-DnY5GQR_.d.cts → adapter-BOYOEPRL.d.cts} +8 -12
- package/dist/{adapter-DnY5GQR_.d.ts → adapter-BOYOEPRL.d.ts} +8 -12
- package/dist/{chunk-RGBMDID6.js → chunk-FM7CI5YG.js} +1 -1
- package/dist/{chunk-UVMSMMNS.js → chunk-O3FFLQK6.js} +1 -1
- 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 +2 -2
- package/dist/data/postgres-core/index.d.ts +2 -2
- package/dist/data/postgres-core/index.js +1 -1
- package/dist/{index-7Rl3ArFE.d.ts → index-CLd0EllQ.d.cts} +3 -4
- package/dist/{index-DJNljgpQ.d.cts → index-D6voXKsD.d.ts} +3 -4
- package/dist/ui/index.cjs +125 -117
- package/dist/ui/index.css +63 -8
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +14 -6
- package/package.json +4 -3
|
@@ -13,30 +13,26 @@ interface Adapter {
|
|
|
13
13
|
*
|
|
14
14
|
* @param options - Options for the introspection request.
|
|
15
15
|
*/
|
|
16
|
-
introspect(options:
|
|
16
|
+
introspect(options: IntrospectOptions): Promise<Either<Error, Introspection>>;
|
|
17
17
|
/**
|
|
18
18
|
* Executes a structured query against the database.
|
|
19
19
|
*/
|
|
20
|
-
query(details: AdapterQueryDetails, options:
|
|
20
|
+
query(details: AdapterQueryDetails, options: QueryOptions): Promise<Either<Error, AdapterQueryResult>>;
|
|
21
21
|
/**
|
|
22
22
|
* Inserts a single row into the database.
|
|
23
23
|
*/
|
|
24
|
-
insert(details: AdapterInsertDetails, options:
|
|
24
|
+
insert(details: AdapterInsertDetails, options: QueryOptions): Promise<Either<Error, AdapterInsertResult>>;
|
|
25
25
|
/**
|
|
26
26
|
* Updates a given row in the database with given changes.
|
|
27
27
|
*/
|
|
28
|
-
update(details: AdapterUpdateDetails, options:
|
|
28
|
+
update(details: AdapterUpdateDetails, options: QueryOptions): Promise<Either<Error, AdapterUpdateResult>>;
|
|
29
29
|
}
|
|
30
|
-
interface
|
|
31
|
-
}
|
|
32
|
-
interface AdapterIntrospectOptions extends AdapterBaseOptions {
|
|
33
|
-
}
|
|
34
|
-
interface AdapterQueryOptions extends AdapterBaseOptions {
|
|
30
|
+
interface BaseOptions {
|
|
35
31
|
abortSignal: AbortSignal;
|
|
36
32
|
}
|
|
37
|
-
interface
|
|
33
|
+
interface IntrospectOptions extends BaseOptions {
|
|
38
34
|
}
|
|
39
|
-
interface
|
|
35
|
+
interface QueryOptions extends BaseOptions {
|
|
40
36
|
}
|
|
41
37
|
type SchemaName = string;
|
|
42
38
|
interface Introspection {
|
|
@@ -154,4 +150,4 @@ interface AdapterUpdateResult {
|
|
|
154
150
|
row: Record<ColumnName, unknown>;
|
|
155
151
|
}
|
|
156
152
|
|
|
157
|
-
export type { Adapter as A, Column as C, DataType as D, Either as E,
|
|
153
|
+
export type { Adapter as A, BaseOptions as B, Column as C, DataType as D, Either as E, IntrospectOptions as I, NumericString as N, QueryOptions as Q, Schema as S, Table as T, AdapterInsertDetails as a, AdapterQueryDetails as b, AdapterUpdateDetails as c, Introspection as d, DataTypeGroup as e, SortOrderItem as f, SortDirection as g, AdapterQueryResult as h, AdapterInsertResult as i, AdapterUpdateResult as j };
|
|
@@ -13,30 +13,26 @@ interface Adapter {
|
|
|
13
13
|
*
|
|
14
14
|
* @param options - Options for the introspection request.
|
|
15
15
|
*/
|
|
16
|
-
introspect(options:
|
|
16
|
+
introspect(options: IntrospectOptions): Promise<Either<Error, Introspection>>;
|
|
17
17
|
/**
|
|
18
18
|
* Executes a structured query against the database.
|
|
19
19
|
*/
|
|
20
|
-
query(details: AdapterQueryDetails, options:
|
|
20
|
+
query(details: AdapterQueryDetails, options: QueryOptions): Promise<Either<Error, AdapterQueryResult>>;
|
|
21
21
|
/**
|
|
22
22
|
* Inserts a single row into the database.
|
|
23
23
|
*/
|
|
24
|
-
insert(details: AdapterInsertDetails, options:
|
|
24
|
+
insert(details: AdapterInsertDetails, options: QueryOptions): Promise<Either<Error, AdapterInsertResult>>;
|
|
25
25
|
/**
|
|
26
26
|
* Updates a given row in the database with given changes.
|
|
27
27
|
*/
|
|
28
|
-
update(details: AdapterUpdateDetails, options:
|
|
28
|
+
update(details: AdapterUpdateDetails, options: QueryOptions): Promise<Either<Error, AdapterUpdateResult>>;
|
|
29
29
|
}
|
|
30
|
-
interface
|
|
31
|
-
}
|
|
32
|
-
interface AdapterIntrospectOptions extends AdapterBaseOptions {
|
|
33
|
-
}
|
|
34
|
-
interface AdapterQueryOptions extends AdapterBaseOptions {
|
|
30
|
+
interface BaseOptions {
|
|
35
31
|
abortSignal: AbortSignal;
|
|
36
32
|
}
|
|
37
|
-
interface
|
|
33
|
+
interface IntrospectOptions extends BaseOptions {
|
|
38
34
|
}
|
|
39
|
-
interface
|
|
35
|
+
interface QueryOptions extends BaseOptions {
|
|
40
36
|
}
|
|
41
37
|
type SchemaName = string;
|
|
42
38
|
interface Introspection {
|
|
@@ -154,4 +150,4 @@ interface AdapterUpdateResult {
|
|
|
154
150
|
row: Record<ColumnName, unknown>;
|
|
155
151
|
}
|
|
156
152
|
|
|
157
|
-
export type { Adapter as A, Column as C, DataType as D, Either as E,
|
|
153
|
+
export type { Adapter as A, BaseOptions as B, Column as C, DataType as D, Either as E, IntrospectOptions as I, NumericString as N, QueryOptions as Q, Schema as S, Table as T, AdapterInsertDetails as a, AdapterQueryDetails as b, AdapterUpdateDetails as c, Introspection as d, DataTypeGroup as e, SortOrderItem as f, SortDirection as g, AdapterQueryResult as h, AdapterInsertResult as i, AdapterUpdateResult as j };
|