@prisma/studio-core 0.0.0-dev.202504162212 → 0.0.0-dev.202504162309

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.
@@ -62,7 +62,7 @@ interface DataType {
62
62
  */
63
63
  name: string;
64
64
  }
65
- type DataTypeGroup = "string" | "datetime" | "time" | "unsupported";
65
+ type DataTypeGroup = "string" | "datetime" | "time" | "raw";
66
66
  interface AdapterQueryDetails {
67
67
  /**
68
68
  * Zero-based index of the page to fetch.
@@ -76,11 +76,26 @@ interface AdapterQueryDetails {
76
76
  * The database schema where the table is located. Defaults to "public".
77
77
  */
78
78
  schema: string;
79
+ /**
80
+ * Sort order for the query.
81
+ */
82
+ sortOrder: SortOrderItem[];
79
83
  /**
80
84
  * The name of the table to select from.
81
85
  */
82
86
  table: string;
83
87
  }
88
+ interface SortOrderItem {
89
+ /**
90
+ * The column to sort by.
91
+ */
92
+ column: ColumnName;
93
+ /**
94
+ * The direction to sort the column by.
95
+ */
96
+ direction: SortDirection;
97
+ }
98
+ type SortDirection = "asc" | "desc";
84
99
  interface AdapterQueryResult {
85
100
  /**
86
101
  * The total number of rows the query would return if not limited.
@@ -94,4 +109,4 @@ interface AdapterQueryResult {
94
109
  rows: Record<ColumnName, unknown>[];
95
110
  }
96
111
 
97
- 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, AdapterQueryDetails as c, AdapterQueryResult as d };
112
+ 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, AdapterQueryDetails as c, SortOrderItem as d, SortDirection as e, AdapterQueryResult as f };
@@ -62,7 +62,7 @@ interface DataType {
62
62
  */
63
63
  name: string;
64
64
  }
65
- type DataTypeGroup = "string" | "datetime" | "time" | "unsupported";
65
+ type DataTypeGroup = "string" | "datetime" | "time" | "raw";
66
66
  interface AdapterQueryDetails {
67
67
  /**
68
68
  * Zero-based index of the page to fetch.
@@ -76,11 +76,26 @@ interface AdapterQueryDetails {
76
76
  * The database schema where the table is located. Defaults to "public".
77
77
  */
78
78
  schema: string;
79
+ /**
80
+ * Sort order for the query.
81
+ */
82
+ sortOrder: SortOrderItem[];
79
83
  /**
80
84
  * The name of the table to select from.
81
85
  */
82
86
  table: string;
83
87
  }
88
+ interface SortOrderItem {
89
+ /**
90
+ * The column to sort by.
91
+ */
92
+ column: ColumnName;
93
+ /**
94
+ * The direction to sort the column by.
95
+ */
96
+ direction: SortDirection;
97
+ }
98
+ type SortDirection = "asc" | "desc";
84
99
  interface AdapterQueryResult {
85
100
  /**
86
101
  * The total number of rows the query would return if not limited.
@@ -94,4 +109,4 @@ interface AdapterQueryResult {
94
109
  rows: Record<ColumnName, unknown>[];
95
110
  }
96
111
 
97
- 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, AdapterQueryDetails as c, AdapterQueryResult as d };
112
+ 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, AdapterQueryDetails as c, SortOrderItem as d, SortDirection as e, AdapterQueryResult as f };