@prisma/engine-core
Advanced tools
Comparing version 0.0.32 to 0.0.33
@@ -21,3 +21,3 @@ export declare class PhotonError extends Error { | ||
abstract stop(): void; | ||
abstract request<T>(query: string): Promise<T>; | ||
abstract request<T>(query: string, typeName?: string): Promise<T>; | ||
abstract handleErrors({ errors, query }: { | ||
@@ -24,0 +24,0 @@ errors?: any; |
@@ -71,3 +71,3 @@ /// <reference types="node" /> | ||
getDmmf(): Promise<any>; | ||
request<T>(query: string): Promise<T>; | ||
request<T>(query: string, typeName?: string): Promise<T>; | ||
handleErrors({ errors, query }: { | ||
@@ -74,0 +74,0 @@ errors?: any; |
@@ -124,2 +124,3 @@ "use strict"; | ||
if (code !== 0 && !this.exiting) { | ||
console.error(`Engine path: ${this.prismaPath}`); | ||
throw new Engine_1.PhotonError(`Error in query engine: ` + this.errorLogs, undefined, undefined, this.errorLogs); | ||
@@ -187,3 +188,3 @@ } | ||
debug(e.message); | ||
if (tries >= 10) { | ||
if (tries >= 50) { | ||
throw e; | ||
@@ -200,3 +201,3 @@ } | ||
} | ||
async request(query) { | ||
async request(query, typeName) { | ||
if (!this.url) { | ||
@@ -203,0 +204,0 @@ await this.startPromise; // allows lazily connecting the client to Rust and Rust to the Datasource |
{ | ||
"name": "@prisma/engine-core", | ||
"version": "0.0.32", | ||
"version": "0.0.33", | ||
"license": "Apache-2.0", | ||
@@ -9,3 +9,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@prisma/fetch-engine": "^0.0.6", | ||
"@prisma/fetch-engine": "^0.0.19", | ||
"@types/node": "^12.0.0", | ||
@@ -17,3 +17,3 @@ "typescript": "^3.5.0-dev.20190512" | ||
"prepublishOnly": "yarn build", | ||
"download": "prisma-fetch-engine $PWD" | ||
"download": "node download.js" | ||
}, | ||
@@ -20,0 +20,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38964
649