@prisma/studio-core 0.0.0-dev.202504140111 → 0.0.0-dev.202504141546
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-D0mwGLmg.d.cts → adapter-HKDKKEfD.d.cts} +19 -4
- package/dist/{adapter-CqrlY1Ga.d.ts → adapter-Mns6pO37.d.ts} +19 -4
- package/dist/{chunk-4V7MKTII.js → chunk-FF75SZBJ.js} +1 -1
- package/dist/data/index.d.cts +1 -1
- package/dist/data/index.d.ts +1 -1
- package/dist/data/pglite/index.cjs +1 -1
- package/dist/data/pglite/index.d.cts +1 -1
- package/dist/data/pglite/index.d.ts +1 -1
- 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 +13 -2
- package/dist/data/postgres-core/index.d.ts +13 -2
- package/dist/data/postgres-core/index.js +1 -1
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -28,6 +28,7 @@ interface QueryOptions extends BaseOptions {
|
|
|
28
28
|
type SchemaName = string;
|
|
29
29
|
interface Introspection {
|
|
30
30
|
schemas: Record<SchemaName, Schema>;
|
|
31
|
+
timezone: string;
|
|
31
32
|
}
|
|
32
33
|
type TableName = string;
|
|
33
34
|
interface Schema {
|
|
@@ -35,15 +36,29 @@ interface Schema {
|
|
|
35
36
|
}
|
|
36
37
|
type ColumnName = string;
|
|
37
38
|
interface Table {
|
|
38
|
-
schema: SchemaName;
|
|
39
|
-
name: TableName;
|
|
40
39
|
columns: Record<ColumnName, Column>;
|
|
40
|
+
name: TableName;
|
|
41
|
+
schema: SchemaName;
|
|
41
42
|
}
|
|
42
43
|
interface Column {
|
|
44
|
+
datatype: DataType;
|
|
45
|
+
name: ColumnName;
|
|
43
46
|
schema: SchemaName;
|
|
44
47
|
table: TableName;
|
|
45
|
-
name: ColumnName;
|
|
46
48
|
}
|
|
49
|
+
interface DataType {
|
|
50
|
+
/**
|
|
51
|
+
* A simplification/normalization for UI usage.
|
|
52
|
+
*
|
|
53
|
+
* e.g. varchar and char are strings.
|
|
54
|
+
*/
|
|
55
|
+
group: DataTypeGroup;
|
|
56
|
+
/**
|
|
57
|
+
* Will be displayed as-is.
|
|
58
|
+
*/
|
|
59
|
+
name: string;
|
|
60
|
+
}
|
|
61
|
+
type DataTypeGroup = "string" | "datetime";
|
|
47
62
|
interface QueryDetails {
|
|
48
63
|
/**
|
|
49
64
|
* The database schema where the table is located. Defaults to "public".
|
|
@@ -58,4 +73,4 @@ interface QueryResult {
|
|
|
58
73
|
rows: Record<ColumnName, unknown>[];
|
|
59
74
|
}
|
|
60
75
|
|
|
61
|
-
export type { Adapter as A, BaseOptions as B, Column as C, IntrospectOptions as I, QueryOptions as Q, Schema as S, Table as T, Introspection as a,
|
|
76
|
+
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, QueryDetails as c };
|
|
@@ -28,6 +28,7 @@ interface QueryOptions extends BaseOptions {
|
|
|
28
28
|
type SchemaName = string;
|
|
29
29
|
interface Introspection {
|
|
30
30
|
schemas: Record<SchemaName, Schema>;
|
|
31
|
+
timezone: string;
|
|
31
32
|
}
|
|
32
33
|
type TableName = string;
|
|
33
34
|
interface Schema {
|
|
@@ -35,15 +36,29 @@ interface Schema {
|
|
|
35
36
|
}
|
|
36
37
|
type ColumnName = string;
|
|
37
38
|
interface Table {
|
|
38
|
-
schema: SchemaName;
|
|
39
|
-
name: TableName;
|
|
40
39
|
columns: Record<ColumnName, Column>;
|
|
40
|
+
name: TableName;
|
|
41
|
+
schema: SchemaName;
|
|
41
42
|
}
|
|
42
43
|
interface Column {
|
|
44
|
+
datatype: DataType;
|
|
45
|
+
name: ColumnName;
|
|
43
46
|
schema: SchemaName;
|
|
44
47
|
table: TableName;
|
|
45
|
-
name: ColumnName;
|
|
46
48
|
}
|
|
49
|
+
interface DataType {
|
|
50
|
+
/**
|
|
51
|
+
* A simplification/normalization for UI usage.
|
|
52
|
+
*
|
|
53
|
+
* e.g. varchar and char are strings.
|
|
54
|
+
*/
|
|
55
|
+
group: DataTypeGroup;
|
|
56
|
+
/**
|
|
57
|
+
* Will be displayed as-is.
|
|
58
|
+
*/
|
|
59
|
+
name: string;
|
|
60
|
+
}
|
|
61
|
+
type DataTypeGroup = "string" | "datetime";
|
|
47
62
|
interface QueryDetails {
|
|
48
63
|
/**
|
|
49
64
|
* The database schema where the table is located. Defaults to "public".
|
|
@@ -58,4 +73,4 @@ interface QueryResult {
|
|
|
58
73
|
rows: Record<ColumnName, unknown>[];
|
|
59
74
|
}
|
|
60
75
|
|
|
61
|
-
export type { Adapter as A, BaseOptions as B, Column as C, IntrospectOptions as I, QueryOptions as Q, Schema as S, Table as T, Introspection as a,
|
|
76
|
+
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, QueryDetails as c };
|