@prisma/studio-core 0.0.0-dev.202503210039 → 0.0.0-dev.202503211142
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/data/index.cjs +1 -1
- package/dist/data/index.js +1 -1
- package/dist/data/postgres-core/index.cjs +1 -1
- package/dist/data/postgres-core/index.d.cts +18 -2
- package/dist/data/postgres-core/index.d.ts +18 -2
- package/dist/data/postgres-core/index.js +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +7 -16
- package/dist/chunk-TIBQMYJF.js +0 -1
- package/dist/data/accelerate/index.cjs +0 -1
- package/dist/data/accelerate/index.d.cts +0 -29
- package/dist/data/accelerate/index.d.ts +0 -29
- package/dist/data/accelerate/index.js +0 -1
- package/dist/query-YoAEw-K9.d.cts +0 -20
- package/dist/query-YoAEw-K9.d.ts +0 -20
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { DialectAdapter, QueryCompiler } from 'kysely';
|
|
2
|
+
|
|
3
|
+
interface BuilderRequirements {
|
|
4
|
+
Adapter: {
|
|
5
|
+
new (): DialectAdapter;
|
|
6
|
+
};
|
|
7
|
+
noParameters?: boolean;
|
|
8
|
+
QueryCompiler: {
|
|
9
|
+
new (): QueryCompiler;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
declare const queryType: unique symbol;
|
|
13
|
+
interface Query<T> {
|
|
14
|
+
[queryType]?: T;
|
|
15
|
+
parameters: readonly unknown[];
|
|
16
|
+
sql: string;
|
|
17
|
+
}
|
|
18
|
+
type QueryResult<T> = T extends Query<infer R> ? R[] : T extends (...args: any[]) => Query<infer R> ? R[] : never;
|
|
3
19
|
|
|
4
20
|
declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapter" | "Compiler">): Query<{
|
|
5
21
|
schema: string;
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { DialectAdapter, QueryCompiler } from 'kysely';
|
|
2
|
+
|
|
3
|
+
interface BuilderRequirements {
|
|
4
|
+
Adapter: {
|
|
5
|
+
new (): DialectAdapter;
|
|
6
|
+
};
|
|
7
|
+
noParameters?: boolean;
|
|
8
|
+
QueryCompiler: {
|
|
9
|
+
new (): QueryCompiler;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
declare const queryType: unique symbol;
|
|
13
|
+
interface Query<T> {
|
|
14
|
+
[queryType]?: T;
|
|
15
|
+
parameters: readonly unknown[];
|
|
16
|
+
sql: string;
|
|
17
|
+
}
|
|
18
|
+
type QueryResult<T> = T extends Query<infer R> ? R[] : T extends (...args: any[]) => Query<infer R> ? R[] : never;
|
|
3
19
|
|
|
4
20
|
declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapter" | "Compiler">): Query<{
|
|
5
21
|
schema: string;
|