@prisma/studio-core 0.0.0-dev.202504151900 → 0.0.0-dev.202504151908
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-DnrnbSIC.d.ts → adapter-DOfxRYJO.d.cts} +23 -6
- package/dist/{adapter-B6MTgAD1.d.cts → adapter-dDnGaS1S.d.ts} +23 -6
- package/dist/{chunk-YMPRBKIC.js → chunk-CDTENDXB.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.d.cts +3 -3
- package/dist/data/index.d.ts +3 -3
- package/dist/data/pglite/index.cjs +1 -1
- package/dist/data/pglite/index.d.cts +3 -3
- package/dist/data/pglite/index.d.ts +3 -3
- 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/{executor-CySfZPUK.d.ts → executor-DI7JTcqO.d.ts} +1 -1
- package/dist/{executor-BLAClqkI.d.cts → executor-DbZM00RR.d.cts} +1 -1
- package/dist/{index-RCHJGGEM.css → index-F7IW2RD6.css} +2 -5
- package/dist/type-utils-u92OZz8n.d.cts +4 -0
- package/dist/type-utils-u92OZz8n.d.ts +4 -0
- package/dist/ui/index.cjs +117 -117
- package/dist/ui/index.d.cts +2 -2
- package/dist/ui/index.d.ts +2 -2
- package/dist/ui/index.js +1 -1
- package/package.json +1 -2
- package/dist/type-utils-rTHUvEmt.d.cts +0 -3
- package/dist/type-utils-rTHUvEmt.d.ts +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as Either } from './type-utils-
|
|
1
|
+
import { E as Either, N as NumericString } from './type-utils-u92OZz8n.cjs';
|
|
2
2
|
|
|
3
3
|
interface Adapter {
|
|
4
4
|
/**
|
|
@@ -16,7 +16,7 @@ interface Adapter {
|
|
|
16
16
|
/**
|
|
17
17
|
* Executes a structured query against the database.
|
|
18
18
|
*/
|
|
19
|
-
query(details:
|
|
19
|
+
query(details: AdapterQueryDetails, options: QueryOptions): Promise<Either<Error, AdapterQueryResult>>;
|
|
20
20
|
}
|
|
21
21
|
interface BaseOptions {
|
|
22
22
|
abortSignal: AbortSignal;
|
|
@@ -63,18 +63,35 @@ interface DataType {
|
|
|
63
63
|
name: string;
|
|
64
64
|
}
|
|
65
65
|
type DataTypeGroup = "string" | "datetime" | "time" | "unsupported";
|
|
66
|
-
interface
|
|
66
|
+
interface AdapterQueryDetails {
|
|
67
|
+
/**
|
|
68
|
+
* Zero-based index of the page to fetch.
|
|
69
|
+
*/
|
|
70
|
+
pageIndex: number;
|
|
71
|
+
/**
|
|
72
|
+
* Maximum number of rows to fetch from the database.
|
|
73
|
+
*/
|
|
74
|
+
pageSize: number;
|
|
67
75
|
/**
|
|
68
76
|
* The database schema where the table is located. Defaults to "public".
|
|
69
77
|
*/
|
|
70
|
-
schema
|
|
78
|
+
schema: string;
|
|
71
79
|
/**
|
|
72
80
|
* The name of the table to select from.
|
|
73
81
|
*/
|
|
74
82
|
table: string;
|
|
75
83
|
}
|
|
76
|
-
interface
|
|
84
|
+
interface AdapterQueryResult {
|
|
85
|
+
/**
|
|
86
|
+
* The total number of rows the query would return if not limited.
|
|
87
|
+
*
|
|
88
|
+
* If the database does not support counting rows, this should be set to `Infinity`.
|
|
89
|
+
*/
|
|
90
|
+
filteredRowCount: number | bigint | NumericString;
|
|
91
|
+
/**
|
|
92
|
+
* The rows returned by the query.
|
|
93
|
+
*/
|
|
77
94
|
rows: Record<ColumnName, unknown>[];
|
|
78
95
|
}
|
|
79
96
|
|
|
80
|
-
export type { Adapter as A, BaseOptions as B, Column as C, DataType as D, IntrospectOptions as I, QueryOptions as Q, Schema as S, Table as T, Introspection as a, DataTypeGroup as b,
|
|
97
|
+
export type { Adapter as A, BaseOptions as B, Column as C, DataType as D, IntrospectOptions as I, QueryOptions as Q, Schema as S, Table as T, Introspection as a, DataTypeGroup as b, AdapterQueryDetails as c, AdapterQueryResult as d };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as Either } from './type-utils-
|
|
1
|
+
import { E as Either, N as NumericString } from './type-utils-u92OZz8n.js';
|
|
2
2
|
|
|
3
3
|
interface Adapter {
|
|
4
4
|
/**
|
|
@@ -16,7 +16,7 @@ interface Adapter {
|
|
|
16
16
|
/**
|
|
17
17
|
* Executes a structured query against the database.
|
|
18
18
|
*/
|
|
19
|
-
query(details:
|
|
19
|
+
query(details: AdapterQueryDetails, options: QueryOptions): Promise<Either<Error, AdapterQueryResult>>;
|
|
20
20
|
}
|
|
21
21
|
interface BaseOptions {
|
|
22
22
|
abortSignal: AbortSignal;
|
|
@@ -63,18 +63,35 @@ interface DataType {
|
|
|
63
63
|
name: string;
|
|
64
64
|
}
|
|
65
65
|
type DataTypeGroup = "string" | "datetime" | "time" | "unsupported";
|
|
66
|
-
interface
|
|
66
|
+
interface AdapterQueryDetails {
|
|
67
|
+
/**
|
|
68
|
+
* Zero-based index of the page to fetch.
|
|
69
|
+
*/
|
|
70
|
+
pageIndex: number;
|
|
71
|
+
/**
|
|
72
|
+
* Maximum number of rows to fetch from the database.
|
|
73
|
+
*/
|
|
74
|
+
pageSize: number;
|
|
67
75
|
/**
|
|
68
76
|
* The database schema where the table is located. Defaults to "public".
|
|
69
77
|
*/
|
|
70
|
-
schema
|
|
78
|
+
schema: string;
|
|
71
79
|
/**
|
|
72
80
|
* The name of the table to select from.
|
|
73
81
|
*/
|
|
74
82
|
table: string;
|
|
75
83
|
}
|
|
76
|
-
interface
|
|
84
|
+
interface AdapterQueryResult {
|
|
85
|
+
/**
|
|
86
|
+
* The total number of rows the query would return if not limited.
|
|
87
|
+
*
|
|
88
|
+
* If the database does not support counting rows, this should be set to `Infinity`.
|
|
89
|
+
*/
|
|
90
|
+
filteredRowCount: number | bigint | NumericString;
|
|
91
|
+
/**
|
|
92
|
+
* The rows returned by the query.
|
|
93
|
+
*/
|
|
77
94
|
rows: Record<ColumnName, unknown>[];
|
|
78
95
|
}
|
|
79
96
|
|
|
80
|
-
export type { Adapter as A, BaseOptions as B, Column as C, DataType as D, IntrospectOptions as I, QueryOptions as Q, Schema as S, Table as T, Introspection as a, DataTypeGroup as b,
|
|
97
|
+
export type { Adapter as A, BaseOptions as B, Column as C, DataType as D, IntrospectOptions as I, QueryOptions as Q, Schema as S, Table as T, Introspection as a, DataTypeGroup as b, AdapterQueryDetails as c, AdapterQueryResult as d };
|