@prisma/studio-core 0.0.0-dev.202504140108 → 0.0.0-dev.202504141517

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.
@@ -43,7 +43,20 @@ interface Column {
43
43
  schema: SchemaName;
44
44
  table: TableName;
45
45
  name: ColumnName;
46
+ datatype: {
47
+ /**
48
+ * Will be displayed as-is.
49
+ */
50
+ name: string;
51
+ /**
52
+ * A simplification/normalization for UI usage.
53
+ *
54
+ * e.g. varchar and char are strings.
55
+ */
56
+ group: DataTypeGroup;
57
+ };
46
58
  }
59
+ type DataTypeGroup = "string" | "datetime";
47
60
  interface QueryDetails {
48
61
  /**
49
62
  * The database schema where the table is located. Defaults to "public".
@@ -58,4 +71,4 @@ interface QueryResult {
58
71
  rows: Record<ColumnName, unknown>[];
59
72
  }
60
73
 
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, QueryDetails as b };
74
+ export type { Adapter as A, BaseOptions as B, Column as C, DataTypeGroup as D, IntrospectOptions as I, QueryOptions as Q, Schema as S, Table as T, Introspection as a, QueryDetails as b };
@@ -43,7 +43,20 @@ interface Column {
43
43
  schema: SchemaName;
44
44
  table: TableName;
45
45
  name: ColumnName;
46
+ datatype: {
47
+ /**
48
+ * Will be displayed as-is.
49
+ */
50
+ name: string;
51
+ /**
52
+ * A simplification/normalization for UI usage.
53
+ *
54
+ * e.g. varchar and char are strings.
55
+ */
56
+ group: DataTypeGroup;
57
+ };
46
58
  }
59
+ type DataTypeGroup = "string" | "datetime";
47
60
  interface QueryDetails {
48
61
  /**
49
62
  * The database schema where the table is located. Defaults to "public".
@@ -58,4 +71,4 @@ interface QueryResult {
58
71
  rows: Record<ColumnName, unknown>[];
59
72
  }
60
73
 
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, QueryDetails as b };
74
+ export type { Adapter as A, BaseOptions as B, Column as C, DataTypeGroup as D, IntrospectOptions as I, QueryOptions as Q, Schema as S, Table as T, Introspection as a, QueryDetails as b };