@prisma/studio-core 0.0.0-dev.202504280807 → 0.0.0-dev.202504280930

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.
@@ -13,26 +13,30 @@ interface Adapter {
13
13
  *
14
14
  * @param options - Options for the introspection request.
15
15
  */
16
- introspect(options: IntrospectOptions): Promise<Either<Error, Introspection>>;
16
+ introspect(options: AdapterIntrospectOptions): Promise<Either<Error, Introspection>>;
17
17
  /**
18
18
  * Executes a structured query against the database.
19
19
  */
20
- query(details: AdapterQueryDetails, options: QueryOptions): Promise<Either<Error, AdapterQueryResult>>;
20
+ query(details: AdapterQueryDetails, options: AdapterQueryOptions): Promise<Either<Error, AdapterQueryResult>>;
21
21
  /**
22
22
  * Inserts a single row into the database.
23
23
  */
24
- insert(details: AdapterInsertDetails, options: QueryOptions): Promise<Either<Error, AdapterInsertResult>>;
24
+ insert(details: AdapterInsertDetails, options: AdapterInsertOptions): Promise<Either<Error, AdapterInsertResult>>;
25
25
  /**
26
26
  * Updates a given row in the database with given changes.
27
27
  */
28
- update(details: AdapterUpdateDetails, options: QueryOptions): Promise<Either<Error, AdapterUpdateResult>>;
28
+ update(details: AdapterUpdateDetails, options: AdapterUpdateOptions): Promise<Either<Error, AdapterUpdateResult>>;
29
29
  }
30
- interface BaseOptions {
30
+ interface AdapterBaseOptions {
31
+ }
32
+ interface AdapterIntrospectOptions extends AdapterBaseOptions {
33
+ }
34
+ interface AdapterQueryOptions extends AdapterBaseOptions {
31
35
  abortSignal: AbortSignal;
32
36
  }
33
- interface IntrospectOptions extends BaseOptions {
37
+ interface AdapterInsertOptions extends AdapterBaseOptions {
34
38
  }
35
- interface QueryOptions extends BaseOptions {
39
+ interface AdapterUpdateOptions extends AdapterBaseOptions {
36
40
  }
37
41
  type SchemaName = string;
38
42
  interface Introspection {
@@ -150,4 +154,4 @@ interface AdapterUpdateResult {
150
154
  row: Record<ColumnName, unknown>;
151
155
  }
152
156
 
153
- export type { Adapter as A, BaseOptions as B, Column as C, DataType as D, Either as E, IntrospectOptions as I, NumericString as N, QueryOptions as Q, Schema as S, Table as T, AdapterInsertDetails as a, AdapterQueryDetails as b, AdapterUpdateDetails as c, Introspection as d, DataTypeGroup as e, SortOrderItem as f, SortDirection as g, AdapterQueryResult as h, AdapterInsertResult as i, AdapterUpdateResult as j };
157
+ export type { Adapter as A, 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 };
@@ -13,26 +13,30 @@ interface Adapter {
13
13
  *
14
14
  * @param options - Options for the introspection request.
15
15
  */
16
- introspect(options: IntrospectOptions): Promise<Either<Error, Introspection>>;
16
+ introspect(options: AdapterIntrospectOptions): Promise<Either<Error, Introspection>>;
17
17
  /**
18
18
  * Executes a structured query against the database.
19
19
  */
20
- query(details: AdapterQueryDetails, options: QueryOptions): Promise<Either<Error, AdapterQueryResult>>;
20
+ query(details: AdapterQueryDetails, options: AdapterQueryOptions): Promise<Either<Error, AdapterQueryResult>>;
21
21
  /**
22
22
  * Inserts a single row into the database.
23
23
  */
24
- insert(details: AdapterInsertDetails, options: QueryOptions): Promise<Either<Error, AdapterInsertResult>>;
24
+ insert(details: AdapterInsertDetails, options: AdapterInsertOptions): Promise<Either<Error, AdapterInsertResult>>;
25
25
  /**
26
26
  * Updates a given row in the database with given changes.
27
27
  */
28
- update(details: AdapterUpdateDetails, options: QueryOptions): Promise<Either<Error, AdapterUpdateResult>>;
28
+ update(details: AdapterUpdateDetails, options: AdapterUpdateOptions): Promise<Either<Error, AdapterUpdateResult>>;
29
29
  }
30
- interface BaseOptions {
30
+ interface AdapterBaseOptions {
31
+ }
32
+ interface AdapterIntrospectOptions extends AdapterBaseOptions {
33
+ }
34
+ interface AdapterQueryOptions extends AdapterBaseOptions {
31
35
  abortSignal: AbortSignal;
32
36
  }
33
- interface IntrospectOptions extends BaseOptions {
37
+ interface AdapterInsertOptions extends AdapterBaseOptions {
34
38
  }
35
- interface QueryOptions extends BaseOptions {
39
+ interface AdapterUpdateOptions extends AdapterBaseOptions {
36
40
  }
37
41
  type SchemaName = string;
38
42
  interface Introspection {
@@ -150,4 +154,4 @@ interface AdapterUpdateResult {
150
154
  row: Record<ColumnName, unknown>;
151
155
  }
152
156
 
153
- export type { Adapter as A, BaseOptions as B, Column as C, DataType as D, Either as E, IntrospectOptions as I, NumericString as N, QueryOptions as Q, Schema as S, Table as T, AdapterInsertDetails as a, AdapterQueryDetails as b, AdapterUpdateDetails as c, Introspection as d, DataTypeGroup as e, SortOrderItem as f, SortDirection as g, AdapterQueryResult as h, AdapterInsertResult as i, AdapterUpdateResult as j };
157
+ export type { Adapter as A, 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 };