@prisma/studio-core 0.1.0 → 0.2.1
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-BUOKRYKO.js +10 -0
- package/dist/chunk-FRW62KTF.js +10 -0
- package/dist/chunk-P5LRZ6C2.js +10 -0
- package/dist/chunk-T2BEVNT5.js +10 -0
- package/dist/data/accelerate/index.cjs +2 -1
- package/dist/data/accelerate/index.d.cts +10 -2
- package/dist/data/accelerate/index.d.ts +10 -2
- package/dist/data/accelerate/index.js +10 -1
- package/dist/data/bff/index.cjs +2 -1
- package/dist/data/bff/index.d.cts +10 -3
- package/dist/data/bff/index.d.ts +10 -3
- package/dist/data/bff/index.js +10 -1
- package/dist/data/index.cjs +2 -1
- package/dist/data/index.d.cts +11 -2
- package/dist/data/index.d.ts +11 -2
- package/dist/data/index.js +10 -1
- package/dist/data/pglite/index.cjs +2 -1
- package/dist/data/pglite/index.d.cts +22 -5
- package/dist/data/pglite/index.d.ts +22 -5
- package/dist/data/pglite/index.js +10 -1
- package/dist/data/postgres-core/index.cjs +2 -1
- package/dist/data/postgres-core/index.d.cts +103 -18
- package/dist/data/postgres-core/index.d.ts +103 -18
- package/dist/data/postgres-core/index.js +10 -1
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -0
- package/dist/query-Q-ZKX_Vr.d.cts +288 -0
- package/dist/query-Q-ZKX_Vr.d.ts +288 -0
- package/dist/ui/index.cjs +263 -1367
- package/dist/ui/index.css +1327 -680
- package/dist/ui/index.d.cts +69 -3
- package/dist/ui/index.d.ts +69 -3
- package/dist/ui/index.js +274 -41
- package/package.json +38 -31
- package/dist/CPIOZS5X-NALOZFPD.js +0 -1
- package/dist/OKF6E45R-6KC3BLVB.js +0 -1
- package/dist/adapter-Co8KY8Hi.d.cts +0 -166
- package/dist/adapter-Co8KY8Hi.d.ts +0 -166
- package/dist/chunk-2FW6TKD6.js +0 -1
- package/dist/chunk-5MNS4IJC.js +0 -1332
- package/dist/chunk-N2MLAUEV.js +0 -1
- package/dist/chunk-RGBMDID6.js +0 -1
- package/dist/chunk-ZCFLMQMM.js +0 -1
- package/dist/index-CnVNNyod.d.cts +0 -35
- package/dist/index-M4EjPWNJ.d.ts +0 -35
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/studio-core",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Modular Prisma Studio components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -72,26 +72,56 @@
|
|
|
72
72
|
"license": "ISC",
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@arethetypeswrong/cli": "0.17.4",
|
|
75
|
-
"@
|
|
75
|
+
"@dnd-kit/core": "6.3.1",
|
|
76
|
+
"@dnd-kit/sortable": "10.0.0",
|
|
77
|
+
"@dnd-kit/utilities": "3.2.2",
|
|
78
|
+
"@electric-sql/pglite": "0.3.0",
|
|
76
79
|
"@prisma/client": "6.5.0",
|
|
77
80
|
"@prisma/generator": "6.6.0-integration-push-xmzqvqxpztks.1",
|
|
78
|
-
"@
|
|
79
|
-
"@
|
|
81
|
+
"@radix-ui/react-checkbox": "1.1.4",
|
|
82
|
+
"@radix-ui/react-context-menu": "2.2.6",
|
|
83
|
+
"@radix-ui/react-dialog": "1.1.6",
|
|
84
|
+
"@radix-ui/react-dropdown-menu": "2.1.6",
|
|
85
|
+
"@radix-ui/react-label": "2.1.4",
|
|
86
|
+
"@radix-ui/react-popover": "1.1.6",
|
|
87
|
+
"@radix-ui/react-select": "2.1.6",
|
|
88
|
+
"@radix-ui/react-slot": "1.1.2",
|
|
89
|
+
"@radix-ui/react-switch": "1.2.2",
|
|
90
|
+
"@radix-ui/react-tooltip": "1.2.4",
|
|
91
|
+
"@tanstack/react-query": "5.72.2",
|
|
92
|
+
"@tanstack/react-table": "8.20.1",
|
|
80
93
|
"@types/node": "22.3.0",
|
|
81
|
-
"@types/react": "^19.0.12",
|
|
82
94
|
"@types/react-dom": "^19.0.4",
|
|
83
95
|
"autoprefixer": "10.4.21",
|
|
84
|
-
"
|
|
85
|
-
"
|
|
96
|
+
"class-variance-authority": "0.7.0",
|
|
97
|
+
"clsx": "2.1.1",
|
|
98
|
+
"date-fns": "4.1.0",
|
|
99
|
+
"dayjs": "1.11.13",
|
|
100
|
+
"kysely": "0.28.2",
|
|
101
|
+
"lucide-react": "0.466.0",
|
|
102
|
+
"motion": "12.9.2",
|
|
103
|
+
"motion-plus": "0.1.6",
|
|
104
|
+
"next-themes": "0.4.6",
|
|
105
|
+
"nuqs": "2.4.1",
|
|
86
106
|
"postcss": "8.4.41",
|
|
107
|
+
"postcss-import": "16.1.0",
|
|
108
|
+
"postcss-prefix-selector": "2.1.1",
|
|
109
|
+
"react-day-picker": "9.6.7",
|
|
110
|
+
"reactflow": "11.11.4",
|
|
111
|
+
"remeda": "2.21.3",
|
|
112
|
+
"short-uuid": "5.2.0",
|
|
113
|
+
"sonner": "2.0.3",
|
|
87
114
|
"std-env": "3.8.1",
|
|
88
115
|
"tailwind-merge": "2.5.2",
|
|
89
116
|
"tailwindcss": "3.4.17",
|
|
90
117
|
"tailwindcss-animate": "1.0.7",
|
|
118
|
+
"tailwindcss-scoped-preflight": "3.4.12",
|
|
91
119
|
"tsup": "8.0.2",
|
|
92
120
|
"tsx": "4.17.0",
|
|
93
121
|
"typescript": "5.5.4",
|
|
94
|
-
"
|
|
122
|
+
"uuid": "11.1.0",
|
|
123
|
+
"vitest": "3.0.9",
|
|
124
|
+
"zod": "3.24.2"
|
|
95
125
|
},
|
|
96
126
|
"files": [
|
|
97
127
|
"dist"
|
|
@@ -102,29 +132,6 @@
|
|
|
102
132
|
"react": "18.3.0",
|
|
103
133
|
"react-dom": "18.3.0"
|
|
104
134
|
},
|
|
105
|
-
"dependencies": {
|
|
106
|
-
"@dnd-kit/core": "6.3.1",
|
|
107
|
-
"@dnd-kit/sortable": "10.0.0",
|
|
108
|
-
"@dnd-kit/utilities": "3.2.2",
|
|
109
|
-
"@radix-ui/react-checkbox": "1.1.4",
|
|
110
|
-
"@radix-ui/react-context-menu": "2.2.6",
|
|
111
|
-
"@radix-ui/react-dialog": "1.1.6",
|
|
112
|
-
"@radix-ui/react-dropdown-menu": "2.1.6",
|
|
113
|
-
"@radix-ui/react-popover": "1.1.6",
|
|
114
|
-
"@radix-ui/react-select": "2.1.6",
|
|
115
|
-
"@radix-ui/react-slot": "1.1.2",
|
|
116
|
-
"@radix-ui/react-tooltip": "1.2.4",
|
|
117
|
-
"@tanstack/react-query": "5.72.2",
|
|
118
|
-
"@tanstack/react-table": "8.20.1",
|
|
119
|
-
"class-variance-authority": "0.7.0",
|
|
120
|
-
"clsx": "2.1.1",
|
|
121
|
-
"dayjs": "1.11.13",
|
|
122
|
-
"next-themes": "0.4.6",
|
|
123
|
-
"nuqs": "2.4.1",
|
|
124
|
-
"remeda": "2.21.3",
|
|
125
|
-
"sonner": "2.0.3",
|
|
126
|
-
"zod": "3.24.2"
|
|
127
|
-
},
|
|
128
135
|
"scripts": {
|
|
129
136
|
"build": "tsup",
|
|
130
137
|
"dev": "tsup --watch",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as l,b as a,c as m,d as s,e as u,f as v}from"./chunk-5MNS4IJC.js";import{Z as c,g as n,q as e}from"./chunk-N2MLAUEV.js";import"./chunk-2FW6TKD6.js";var p=i=>{let[r,t]=l({prefix:"TanstackQueryDevtools"}),d=c(),f=n(()=>{let o=r.theme_preference||a;return o!=="system"?o:d()});return e(m.Provider,{value:i,get children(){return e(s,{localStore:r,setLocalStore:t,get children(){return e(u.Provider,{value:f,get children(){return e(v,{localStore:r,setLocalStore:t})}})}})}})},E=p;export{E as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c,b as s,c as u,d as i,e as m,g as d,h as P}from"./chunk-5MNS4IJC.js";import{Z as a,g as l,q as e}from"./chunk-N2MLAUEV.js";import"./chunk-2FW6TKD6.js";var C=t=>{let[r,o]=c({prefix:"TanstackQueryDevtools"}),v=a(),h=l(()=>{let n=r.theme_preference||s;return n!=="system"?n:v()});return e(u.Provider,{value:t,get children(){return e(i,{disabled:!0,localStore:r,setLocalStore:o,get children(){return e(m.Provider,{value:h,get children(){return e(d,{get children(){return e(P,{localStore:r,setLocalStore:o,get onClose(){return t.onClose},showPanelViewOnly:!0})}})}})}})}})},E=C;export{E as default};
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
type Either<E, R> = [E] | [null, R];
|
|
2
|
-
type NumericString = `${number}`;
|
|
3
|
-
type BigIntString = `${bigint}`;
|
|
4
|
-
|
|
5
|
-
interface Adapter {
|
|
6
|
-
/**
|
|
7
|
-
* The schema studio will choose by default.
|
|
8
|
-
*
|
|
9
|
-
* e.g. `public` for PostgreSQL
|
|
10
|
-
*/
|
|
11
|
-
readonly defaultSchema?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Introspects the database and returns structured information about the schemas, tables, etc.
|
|
14
|
-
*
|
|
15
|
-
* @param options - Options for the introspection request.
|
|
16
|
-
*/
|
|
17
|
-
introspect(options: AdapterIntrospectOptions): Promise<Either<Error, Introspection>>;
|
|
18
|
-
/**
|
|
19
|
-
* Executes a structured query against the database.
|
|
20
|
-
*/
|
|
21
|
-
query(details: AdapterQueryDetails, options: AdapterQueryOptions): Promise<Either<Error, AdapterQueryResult>>;
|
|
22
|
-
/**
|
|
23
|
-
* Inserts a single row into the database.
|
|
24
|
-
*/
|
|
25
|
-
insert(details: AdapterInsertDetails, options: AdapterInsertOptions): Promise<Either<Error, AdapterInsertResult>>;
|
|
26
|
-
/**
|
|
27
|
-
* Updates a given row in the database with given changes.
|
|
28
|
-
*/
|
|
29
|
-
update(details: AdapterUpdateDetails, options: AdapterUpdateOptions): Promise<Either<Error, AdapterUpdateResult>>;
|
|
30
|
-
}
|
|
31
|
-
interface AdapterBaseOptions {
|
|
32
|
-
}
|
|
33
|
-
interface AdapterIntrospectOptions extends AdapterBaseOptions {
|
|
34
|
-
}
|
|
35
|
-
interface AdapterQueryOptions extends AdapterBaseOptions {
|
|
36
|
-
abortSignal: AbortSignal;
|
|
37
|
-
}
|
|
38
|
-
interface AdapterInsertOptions extends AdapterBaseOptions {
|
|
39
|
-
}
|
|
40
|
-
interface AdapterUpdateOptions extends AdapterBaseOptions {
|
|
41
|
-
}
|
|
42
|
-
type SchemaName = string;
|
|
43
|
-
interface Introspection {
|
|
44
|
-
schemas: Record<SchemaName, Schema>;
|
|
45
|
-
timezone: string;
|
|
46
|
-
}
|
|
47
|
-
type TableName = string;
|
|
48
|
-
interface Schema {
|
|
49
|
-
tables: Record<TableName, Table>;
|
|
50
|
-
}
|
|
51
|
-
type ColumnName = string;
|
|
52
|
-
interface Table {
|
|
53
|
-
columns: Record<ColumnName, Column>;
|
|
54
|
-
name: TableName;
|
|
55
|
-
schema: SchemaName;
|
|
56
|
-
}
|
|
57
|
-
interface Column {
|
|
58
|
-
datatype: DataType;
|
|
59
|
-
name: ColumnName;
|
|
60
|
-
schema: SchemaName;
|
|
61
|
-
table: TableName;
|
|
62
|
-
isInPrimaryKey: boolean;
|
|
63
|
-
}
|
|
64
|
-
interface DataType {
|
|
65
|
-
/**
|
|
66
|
-
* A simplification/normalization for UI usage.
|
|
67
|
-
*
|
|
68
|
-
* e.g. varchar and char are strings.
|
|
69
|
-
*/
|
|
70
|
-
group: DataTypeGroup;
|
|
71
|
-
/**
|
|
72
|
-
* Is this a native array type?
|
|
73
|
-
*/
|
|
74
|
-
isArray: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Will be displayed as-is.
|
|
77
|
-
*/
|
|
78
|
-
name: string;
|
|
79
|
-
}
|
|
80
|
-
type DataTypeGroup = "string" | "datetime" | "time" | "raw";
|
|
81
|
-
interface AdapterQueryDetails {
|
|
82
|
-
/**
|
|
83
|
-
* Zero-based index of the page to fetch.
|
|
84
|
-
*/
|
|
85
|
-
pageIndex: number;
|
|
86
|
-
/**
|
|
87
|
-
* Maximum number of rows to fetch from the database.
|
|
88
|
-
*/
|
|
89
|
-
pageSize: number;
|
|
90
|
-
/**
|
|
91
|
-
* Sort order for the query.
|
|
92
|
-
*/
|
|
93
|
-
sortOrder: SortOrderItem[];
|
|
94
|
-
/**
|
|
95
|
-
* The table to select from.
|
|
96
|
-
*/
|
|
97
|
-
table: Table;
|
|
98
|
-
}
|
|
99
|
-
interface SortOrderItem {
|
|
100
|
-
/**
|
|
101
|
-
* The column to sort by.
|
|
102
|
-
*/
|
|
103
|
-
column: ColumnName;
|
|
104
|
-
/**
|
|
105
|
-
* The direction to sort the column by.
|
|
106
|
-
*/
|
|
107
|
-
direction: SortDirection;
|
|
108
|
-
}
|
|
109
|
-
type SortDirection = "asc" | "desc";
|
|
110
|
-
interface AdapterQueryResult {
|
|
111
|
-
/**
|
|
112
|
-
* The total number of rows the query would return if not limited.
|
|
113
|
-
*
|
|
114
|
-
* If the database does not support counting rows, this should be set to `Infinity`.
|
|
115
|
-
*/
|
|
116
|
-
filteredRowCount: number | bigint | NumericString | BigIntString;
|
|
117
|
-
/**
|
|
118
|
-
* The rows returned by the query.
|
|
119
|
-
*/
|
|
120
|
-
rows: Record<ColumnName, unknown>[];
|
|
121
|
-
}
|
|
122
|
-
interface AdapterInsertDetails {
|
|
123
|
-
/**
|
|
124
|
-
* The table to insert into.
|
|
125
|
-
*/
|
|
126
|
-
table: Table;
|
|
127
|
-
/**
|
|
128
|
-
* The values to insert into the table.
|
|
129
|
-
* - The keys should match the column names in the table.
|
|
130
|
-
* - The values should be the values to insert into the table.
|
|
131
|
-
*/
|
|
132
|
-
row: Record<string, unknown>;
|
|
133
|
-
}
|
|
134
|
-
interface AdapterInsertResult {
|
|
135
|
-
/**
|
|
136
|
-
* The freshly inserted row data.
|
|
137
|
-
*/
|
|
138
|
-
row: Record<string, unknown>;
|
|
139
|
-
}
|
|
140
|
-
interface AdapterUpdateDetails {
|
|
141
|
-
/**
|
|
142
|
-
* Changes to apply to the row.
|
|
143
|
-
*/
|
|
144
|
-
changes: Record<ColumnName, unknown>;
|
|
145
|
-
/**
|
|
146
|
-
* The row to update.
|
|
147
|
-
*/
|
|
148
|
-
row: Record<ColumnName, unknown>;
|
|
149
|
-
/**
|
|
150
|
-
* The table to update in.
|
|
151
|
-
*/
|
|
152
|
-
table: Table;
|
|
153
|
-
}
|
|
154
|
-
interface AdapterUpdateResult {
|
|
155
|
-
/**
|
|
156
|
-
* The updated row data.
|
|
157
|
-
*/
|
|
158
|
-
row: Record<ColumnName, unknown> & {
|
|
159
|
-
/**
|
|
160
|
-
* When the changes were applied in database time.
|
|
161
|
-
*/
|
|
162
|
-
__ps_updated_at__: string | number | Date;
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
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, AdapterBaseOptions as d, AdapterIntrospectOptions as e, AdapterQueryOptions as f, AdapterInsertOptions as g, AdapterUpdateOptions as h, DataTypeGroup as i, SortOrderItem as j, SortDirection as k, AdapterQueryResult as l, AdapterInsertResult as m, AdapterUpdateResult as n };
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
type Either<E, R> = [E] | [null, R];
|
|
2
|
-
type NumericString = `${number}`;
|
|
3
|
-
type BigIntString = `${bigint}`;
|
|
4
|
-
|
|
5
|
-
interface Adapter {
|
|
6
|
-
/**
|
|
7
|
-
* The schema studio will choose by default.
|
|
8
|
-
*
|
|
9
|
-
* e.g. `public` for PostgreSQL
|
|
10
|
-
*/
|
|
11
|
-
readonly defaultSchema?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Introspects the database and returns structured information about the schemas, tables, etc.
|
|
14
|
-
*
|
|
15
|
-
* @param options - Options for the introspection request.
|
|
16
|
-
*/
|
|
17
|
-
introspect(options: AdapterIntrospectOptions): Promise<Either<Error, Introspection>>;
|
|
18
|
-
/**
|
|
19
|
-
* Executes a structured query against the database.
|
|
20
|
-
*/
|
|
21
|
-
query(details: AdapterQueryDetails, options: AdapterQueryOptions): Promise<Either<Error, AdapterQueryResult>>;
|
|
22
|
-
/**
|
|
23
|
-
* Inserts a single row into the database.
|
|
24
|
-
*/
|
|
25
|
-
insert(details: AdapterInsertDetails, options: AdapterInsertOptions): Promise<Either<Error, AdapterInsertResult>>;
|
|
26
|
-
/**
|
|
27
|
-
* Updates a given row in the database with given changes.
|
|
28
|
-
*/
|
|
29
|
-
update(details: AdapterUpdateDetails, options: AdapterUpdateOptions): Promise<Either<Error, AdapterUpdateResult>>;
|
|
30
|
-
}
|
|
31
|
-
interface AdapterBaseOptions {
|
|
32
|
-
}
|
|
33
|
-
interface AdapterIntrospectOptions extends AdapterBaseOptions {
|
|
34
|
-
}
|
|
35
|
-
interface AdapterQueryOptions extends AdapterBaseOptions {
|
|
36
|
-
abortSignal: AbortSignal;
|
|
37
|
-
}
|
|
38
|
-
interface AdapterInsertOptions extends AdapterBaseOptions {
|
|
39
|
-
}
|
|
40
|
-
interface AdapterUpdateOptions extends AdapterBaseOptions {
|
|
41
|
-
}
|
|
42
|
-
type SchemaName = string;
|
|
43
|
-
interface Introspection {
|
|
44
|
-
schemas: Record<SchemaName, Schema>;
|
|
45
|
-
timezone: string;
|
|
46
|
-
}
|
|
47
|
-
type TableName = string;
|
|
48
|
-
interface Schema {
|
|
49
|
-
tables: Record<TableName, Table>;
|
|
50
|
-
}
|
|
51
|
-
type ColumnName = string;
|
|
52
|
-
interface Table {
|
|
53
|
-
columns: Record<ColumnName, Column>;
|
|
54
|
-
name: TableName;
|
|
55
|
-
schema: SchemaName;
|
|
56
|
-
}
|
|
57
|
-
interface Column {
|
|
58
|
-
datatype: DataType;
|
|
59
|
-
name: ColumnName;
|
|
60
|
-
schema: SchemaName;
|
|
61
|
-
table: TableName;
|
|
62
|
-
isInPrimaryKey: boolean;
|
|
63
|
-
}
|
|
64
|
-
interface DataType {
|
|
65
|
-
/**
|
|
66
|
-
* A simplification/normalization for UI usage.
|
|
67
|
-
*
|
|
68
|
-
* e.g. varchar and char are strings.
|
|
69
|
-
*/
|
|
70
|
-
group: DataTypeGroup;
|
|
71
|
-
/**
|
|
72
|
-
* Is this a native array type?
|
|
73
|
-
*/
|
|
74
|
-
isArray: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Will be displayed as-is.
|
|
77
|
-
*/
|
|
78
|
-
name: string;
|
|
79
|
-
}
|
|
80
|
-
type DataTypeGroup = "string" | "datetime" | "time" | "raw";
|
|
81
|
-
interface AdapterQueryDetails {
|
|
82
|
-
/**
|
|
83
|
-
* Zero-based index of the page to fetch.
|
|
84
|
-
*/
|
|
85
|
-
pageIndex: number;
|
|
86
|
-
/**
|
|
87
|
-
* Maximum number of rows to fetch from the database.
|
|
88
|
-
*/
|
|
89
|
-
pageSize: number;
|
|
90
|
-
/**
|
|
91
|
-
* Sort order for the query.
|
|
92
|
-
*/
|
|
93
|
-
sortOrder: SortOrderItem[];
|
|
94
|
-
/**
|
|
95
|
-
* The table to select from.
|
|
96
|
-
*/
|
|
97
|
-
table: Table;
|
|
98
|
-
}
|
|
99
|
-
interface SortOrderItem {
|
|
100
|
-
/**
|
|
101
|
-
* The column to sort by.
|
|
102
|
-
*/
|
|
103
|
-
column: ColumnName;
|
|
104
|
-
/**
|
|
105
|
-
* The direction to sort the column by.
|
|
106
|
-
*/
|
|
107
|
-
direction: SortDirection;
|
|
108
|
-
}
|
|
109
|
-
type SortDirection = "asc" | "desc";
|
|
110
|
-
interface AdapterQueryResult {
|
|
111
|
-
/**
|
|
112
|
-
* The total number of rows the query would return if not limited.
|
|
113
|
-
*
|
|
114
|
-
* If the database does not support counting rows, this should be set to `Infinity`.
|
|
115
|
-
*/
|
|
116
|
-
filteredRowCount: number | bigint | NumericString | BigIntString;
|
|
117
|
-
/**
|
|
118
|
-
* The rows returned by the query.
|
|
119
|
-
*/
|
|
120
|
-
rows: Record<ColumnName, unknown>[];
|
|
121
|
-
}
|
|
122
|
-
interface AdapterInsertDetails {
|
|
123
|
-
/**
|
|
124
|
-
* The table to insert into.
|
|
125
|
-
*/
|
|
126
|
-
table: Table;
|
|
127
|
-
/**
|
|
128
|
-
* The values to insert into the table.
|
|
129
|
-
* - The keys should match the column names in the table.
|
|
130
|
-
* - The values should be the values to insert into the table.
|
|
131
|
-
*/
|
|
132
|
-
row: Record<string, unknown>;
|
|
133
|
-
}
|
|
134
|
-
interface AdapterInsertResult {
|
|
135
|
-
/**
|
|
136
|
-
* The freshly inserted row data.
|
|
137
|
-
*/
|
|
138
|
-
row: Record<string, unknown>;
|
|
139
|
-
}
|
|
140
|
-
interface AdapterUpdateDetails {
|
|
141
|
-
/**
|
|
142
|
-
* Changes to apply to the row.
|
|
143
|
-
*/
|
|
144
|
-
changes: Record<ColumnName, unknown>;
|
|
145
|
-
/**
|
|
146
|
-
* The row to update.
|
|
147
|
-
*/
|
|
148
|
-
row: Record<ColumnName, unknown>;
|
|
149
|
-
/**
|
|
150
|
-
* The table to update in.
|
|
151
|
-
*/
|
|
152
|
-
table: Table;
|
|
153
|
-
}
|
|
154
|
-
interface AdapterUpdateResult {
|
|
155
|
-
/**
|
|
156
|
-
* The updated row data.
|
|
157
|
-
*/
|
|
158
|
-
row: Record<ColumnName, unknown> & {
|
|
159
|
-
/**
|
|
160
|
-
* When the changes were applied in database time.
|
|
161
|
-
*/
|
|
162
|
-
__ps_updated_at__: string | number | Date;
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
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, AdapterBaseOptions as d, AdapterIntrospectOptions as e, AdapterQueryOptions as f, AdapterInsertOptions as g, AdapterUpdateOptions as h, DataTypeGroup as i, SortOrderItem as j, SortDirection as k, AdapterQueryResult as l, AdapterInsertResult as m, AdapterUpdateResult as n };
|
package/dist/chunk-2FW6TKD6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var c={postgres:{encoded:"ZGF0YXNvdXJjZSBkYiB7CiAgICBwcm92aWRlciA9ICJwb3N0Z3JlcyIKICAgIHVybCAgICAgID0gZW52KCJEQVRBQkFTRV9VUkwiKQp9CiAgICAKZ2VuZXJhdG9yIGNsaWVudCB7CiAgICBwcm92aWRlciA9ICJwcmlzbWEtY2xpZW50LWpzIgp9",hash:"54195896aeafa3318ca33f5a8bb44c6b4d89c368cb15288f3bd5ace35a3f9227"}};export{c as a};
|