@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.
@@ -1,4 +1,4 @@
1
- import { A as Adapter, b as QueryDetails } from '../../adapter-D0mwGLmg.cjs';
1
+ import { A as Adapter, b as QueryDetails } from '../../adapter-B6K_-LEb.cjs';
2
2
  import { E as Executor, B as BuilderRequirements, Q as Query, a as QueryResult } from '../../executor-BLAClqkI.cjs';
3
3
  import '../../type-utils-rTHUvEmt.cjs';
4
4
  import 'kysely';
@@ -26,16 +26,27 @@ declare function getSelectQuery(details: QueryDetails, requirements?: Omit<Build
26
26
  */
27
27
  declare function mockSelectQuery(): QueryResult<typeof getSelectQuery>;
28
28
 
29
+ /**
30
+ * Returns a query that returns metadata for all user-defined tables and views in the database.
31
+ */
29
32
  declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
30
33
  schema: string;
31
34
  name: string;
32
35
  columns: {
33
36
  name: string;
37
+ datatype: string;
34
38
  }[];
35
39
  }>;
36
40
  /**
37
41
  * For testing purposes.
38
42
  */
39
43
  declare function mockTablesQuery(): QueryResult<typeof getTablesQuery>;
44
+ /**
45
+ * Returns a query that returns the current timezone setting of the PostgreSQL database.
46
+ */
47
+ declare function getTimezoneQuery(): Query<{
48
+ timezone: string;
49
+ }>;
50
+ declare function mockTimezoneQuery(): QueryResult<typeof getTimezoneQuery>;
40
51
 
41
- export { type CTIDasText, type PostgresAdapterRequirements, createPostgresAdapter, getSelectQuery, getTablesQuery, mockSelectQuery, mockTablesQuery };
52
+ export { type CTIDasText, type PostgresAdapterRequirements, createPostgresAdapter, getSelectQuery, getTablesQuery, getTimezoneQuery, mockSelectQuery, mockTablesQuery, mockTimezoneQuery };
@@ -1,4 +1,4 @@
1
- import { A as Adapter, b as QueryDetails } from '../../adapter-CqrlY1Ga.js';
1
+ import { A as Adapter, b as QueryDetails } from '../../adapter-DxrvUXtb.js';
2
2
  import { E as Executor, B as BuilderRequirements, Q as Query, a as QueryResult } from '../../executor-CySfZPUK.js';
3
3
  import '../../type-utils-rTHUvEmt.js';
4
4
  import 'kysely';
@@ -26,16 +26,27 @@ declare function getSelectQuery(details: QueryDetails, requirements?: Omit<Build
26
26
  */
27
27
  declare function mockSelectQuery(): QueryResult<typeof getSelectQuery>;
28
28
 
29
+ /**
30
+ * Returns a query that returns metadata for all user-defined tables and views in the database.
31
+ */
29
32
  declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
30
33
  schema: string;
31
34
  name: string;
32
35
  columns: {
33
36
  name: string;
37
+ datatype: string;
34
38
  }[];
35
39
  }>;
36
40
  /**
37
41
  * For testing purposes.
38
42
  */
39
43
  declare function mockTablesQuery(): QueryResult<typeof getTablesQuery>;
44
+ /**
45
+ * Returns a query that returns the current timezone setting of the PostgreSQL database.
46
+ */
47
+ declare function getTimezoneQuery(): Query<{
48
+ timezone: string;
49
+ }>;
50
+ declare function mockTimezoneQuery(): QueryResult<typeof getTimezoneQuery>;
40
51
 
41
- export { type CTIDasText, type PostgresAdapterRequirements, createPostgresAdapter, getSelectQuery, getTablesQuery, mockSelectQuery, mockTablesQuery };
52
+ export { type CTIDasText, type PostgresAdapterRequirements, createPostgresAdapter, getSelectQuery, getTablesQuery, getTimezoneQuery, mockSelectQuery, mockTablesQuery, mockTimezoneQuery };
@@ -1 +1 @@
1
- import{a,b,c,d,e}from"../../chunk-4V7MKTII.js";import"../../chunk-2FW6TKD6.js";export{e as createPostgresAdapter,a as getSelectQuery,c as getTablesQuery,b as mockSelectQuery,d as mockTablesQuery};
1
+ import{a,b,c,d,e,f,g}from"../../chunk-VXPGBRXM.js";import"../../chunk-2FW6TKD6.js";export{g as createPostgresAdapter,a as getSelectQuery,c as getTablesQuery,e as getTimezoneQuery,b as mockSelectQuery,d as mockTablesQuery,f as mockTimezoneQuery};
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { A as Adapter } from '../adapter-D0mwGLmg.cjs';
2
+ import { A as Adapter } from '../adapter-B6K_-LEb.cjs';
3
3
  import '../type-utils-rTHUvEmt.cjs';
4
4
 
5
5
  interface StudioProps {
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { A as Adapter } from '../adapter-CqrlY1Ga.js';
2
+ import { A as Adapter } from '../adapter-DxrvUXtb.js';
3
3
  import '../type-utils-rTHUvEmt.js';
4
4
 
5
5
  interface StudioProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/studio-core",
3
- "version": "0.0.0-dev.202504140108",
3
+ "version": "0.0.0-dev.202504141517",
4
4
  "description": "Modular Prisma Studio components",
5
5
  "type": "module",
6
6
  "sideEffects": false,