@prisma/accelerate-contract
Advanced tools
Comparing version 6.3.0-integration-studio-ux-refinements.2 to 6.3.0-integration-studio-ux-refinements.3
@@ -125,2 +125,20 @@ /** | ||
declare type CompilerWasmLoadingConfig = { | ||
/** | ||
* WASM-bindgen runtime for corresponding module | ||
*/ | ||
getRuntime: () => { | ||
__wbg_set_wasm(exports: unknown): any; | ||
QueryCompiler: QueryCompilerConstructor; | ||
}; | ||
/** | ||
* Loads the raw wasm module for the wasm compiler engine. This configuration is | ||
* generated specifically for each type of client, eg. Node.js client and Edge | ||
* clients will have different implementations. | ||
* @remarks this is a callback on purpose, we only load the wasm if needed. | ||
* @remarks only used by ClientEngine | ||
*/ | ||
getQueryCompilerWasmModule: () => Promise<unknown>; | ||
}; | ||
declare type ConnectionInfo = { | ||
@@ -520,3 +538,4 @@ schemaName?: string; | ||
*/ | ||
engineWasm?: WasmLoadingConfig; | ||
engineWasm?: EngineWasmLoadingConfig; | ||
compilerWasm?: CompilerWasmLoadingConfig; | ||
/** | ||
@@ -573,2 +592,20 @@ * Allows Accelerate to use runtime utilities from the client. These are | ||
declare type EngineWasmLoadingConfig = { | ||
/** | ||
* WASM-bindgen runtime for corresponding module | ||
*/ | ||
getRuntime: () => { | ||
__wbg_set_wasm(exports: unknown): any; | ||
QueryEngine: QueryEngineConstructor; | ||
}; | ||
/** | ||
* Loads the raw wasm module for the wasm query engine. This configuration is | ||
* generated specifically for each type of client, eg. Node.js client and Edge | ||
* clients will have different implementations. | ||
* @remarks this is a callback on purpose, we only load the wasm if needed. | ||
* @remarks only used by LibraryEngine | ||
*/ | ||
getQueryEngineWasmModule: () => Promise<unknown>; | ||
}; | ||
declare type EnvPaths = { | ||
@@ -667,2 +704,4 @@ rootEnvPath: string | null; | ||
declare type Flavour = 'mysql' | 'postgres' | 'sqlite'; | ||
declare interface GeneratorConfig { | ||
@@ -768,3 +807,4 @@ name: string; | ||
*/ | ||
engineWasm?: WasmLoadingConfig; | ||
engineWasm?: EngineWasmLoadingConfig; | ||
compilerWasm?: CompilerWasmLoadingConfig; | ||
}; | ||
@@ -978,3 +1018,3 @@ | ||
declare interface Queryable { | ||
readonly provider: 'mysql' | 'postgres' | 'sqlite'; | ||
readonly provider: Flavour; | ||
readonly adapterName: (typeof officialPrismaAdapters)[number] | (string & {}); | ||
@@ -998,2 +1038,16 @@ /** | ||
declare type QueryCompiler = { | ||
compile(request: string): Promise<string>; | ||
}; | ||
declare interface QueryCompilerConstructor { | ||
new (options: QueryCompilerOptions): QueryCompiler; | ||
} | ||
declare type QueryCompilerOptions = { | ||
datamodel: string; | ||
flavour: Flavour; | ||
connectionInfo: ConnectionInfo; | ||
}; | ||
declare type QueryEngineBatchGraphQLRequest = { | ||
@@ -1513,20 +1567,2 @@ batch: QueryEngineRequest[]; | ||
declare type WasmLoadingConfig = { | ||
/** | ||
* WASM-bindgen runtime for corresponding module | ||
*/ | ||
getRuntime: () => { | ||
__wbg_set_wasm(exports: unknown): any; | ||
QueryEngine: QueryEngineConstructor; | ||
}; | ||
/** | ||
* Loads the raw wasm module for the wasm query engine. This configuration is | ||
* generated specifically for each type of client, eg. Node.js client and Edge | ||
* clients will have different implementations. | ||
* @remarks this is a callback on purpose, we only load the wasm if needed. | ||
* @remarks only used by LibraryEngine.ts | ||
*/ | ||
getQueryEngineWasmModule: () => Promise<unknown>; | ||
}; | ||
declare type WithErrors<T> = T | { | ||
@@ -1533,0 +1569,0 @@ errors: RequestError[]; |
{ | ||
"name": "@prisma/accelerate-contract", | ||
"version": "6.3.0-integration-studio-ux-refinements.2", | ||
"version": "6.3.0-integration-studio-ux-refinements.3", | ||
"description": "This package is intended for Prisma's internal use", | ||
@@ -15,3 +15,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@prisma/client": "6.3.0-integration-studio-ux-refinements.2" | ||
"@prisma/client": "6.3.0-integration-studio-ux-refinements.3" | ||
}, | ||
@@ -18,0 +18,0 @@ "dependencies": {}, |
71618
1532