@prisma/studio-core 0.0.0-dev.202505151603 → 0.0.0-dev.202505160133
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/chunk-NVCWH6WH.js +2 -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.d.cts +11 -2
- package/dist/data/index.d.ts +11 -2
- package/dist/data/pglite/index.cjs +2 -2
- 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 +2 -2
- package/dist/data/postgres-core/index.d.cts +46 -42
- package/dist/data/postgres-core/index.d.ts +46 -42
- package/dist/data/postgres-core/index.js +1 -1
- package/dist/{adapter-Bt_0JnjE.d.cts → query-Q-ZKX_Vr.d.cts} +71 -7
- package/dist/{adapter-Bt_0JnjE.d.ts → query-Q-ZKX_Vr.d.ts} +71 -7
- package/dist/ui/index.cjs +57 -41
- package/dist/ui/index.css +72 -0
- package/dist/ui/index.d.cts +66 -14
- package/dist/ui/index.d.ts +66 -14
- package/dist/ui/index.js +23 -7
- package/package.json +1 -1
- package/dist/chunk-AJWO5DG3.js +0 -2
- package/dist/index-B6_kEBLg.d.ts +0 -48
- package/dist/index-C9ZnIXOd.d.cts +0 -48
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { T as Table, E as Either } from './adapter-Bt_0JnjE.cjs';
|
|
2
|
-
import { WhereInterface, DialectAdapter, QueryCompiler } from 'kysely';
|
|
3
|
-
|
|
4
|
-
interface BuilderRequirements {
|
|
5
|
-
Adapter: {
|
|
6
|
-
new (): DialectAdapter;
|
|
7
|
-
};
|
|
8
|
-
noParameters?: boolean;
|
|
9
|
-
QueryCompiler: {
|
|
10
|
-
new (): QueryCompiler;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
declare const queryType: unique symbol;
|
|
14
|
-
interface Query<T = unknown> {
|
|
15
|
-
[queryType]?: T;
|
|
16
|
-
parameters: readonly unknown[];
|
|
17
|
-
sql: string;
|
|
18
|
-
}
|
|
19
|
-
type QueryResult<T> = T extends Query<infer R> ? R[] : T extends (...args: any[]) => Query<infer R> ? R[] : never;
|
|
20
|
-
/**
|
|
21
|
-
* Applies a filter to the given rows based on the primary key columns of the table.
|
|
22
|
-
*
|
|
23
|
-
* @example db.selectFrom("users").$call(applyInferredRowFilters(rows, columns)).selectAll()
|
|
24
|
-
*/
|
|
25
|
-
declare function applyInferredRowFilters(rows: Record<string, unknown>[], columns: Table["columns"]): <QB extends WhereInterface<any, any>>(qb: QB) => QB;
|
|
26
|
-
/**
|
|
27
|
-
* Part of a filter that predicts a match.
|
|
28
|
-
* ie. ... WHERE $ColumName = $Value ...
|
|
29
|
-
*/
|
|
30
|
-
type RowFilterPredicate = [ColumnName: string, Value: unknown];
|
|
31
|
-
/**
|
|
32
|
-
* A row filter is comprised of one or more predicates.
|
|
33
|
-
*/
|
|
34
|
-
type RowFilter = RowFilterPredicate[];
|
|
35
|
-
/**
|
|
36
|
-
* Infers the filter that is necessary to uniquely identify a given row
|
|
37
|
-
* individually.
|
|
38
|
-
*/
|
|
39
|
-
declare function inferRowFilter(row: Record<string, unknown>, columns: Table["columns"]): RowFilter;
|
|
40
|
-
|
|
41
|
-
interface Executor {
|
|
42
|
-
execute<Q extends Query>(query: Q, options?: ExecuteOptions): Promise<Either<Error, QueryResult<Q>>>;
|
|
43
|
-
}
|
|
44
|
-
interface ExecuteOptions {
|
|
45
|
-
abortSignal?: AbortSignal;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export { type BuilderRequirements as B, type Executor as E, type Query as Q, type ExecuteOptions as a, type QueryResult as b, applyInferredRowFilters as c, inferRowFilter as i };
|