@planetscale/database
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -22,3 +22,2 @@ export { format } from './sanitization.js'; | ||
rowsAffected: number | null; | ||
error: VitessError | null; | ||
time: number; | ||
@@ -25,0 +24,0 @@ } |
@@ -76,2 +76,5 @@ import { format } from './sanitization.js'; | ||
const { result, session, error } = saved; | ||
if (error) { | ||
throw new DatabaseError(error.message, 400, error); | ||
} | ||
const rowsAffected = result?.rowsAffected ? parseInt(result.rowsAffected, 10) : null; | ||
@@ -90,3 +93,2 @@ const insertId = result?.insertId ?? null; | ||
insertId, | ||
error: error ?? null, | ||
size: rows.length, | ||
@@ -93,0 +95,0 @@ statement: sql, |
@@ -1,1 +0,1 @@ | ||
export declare const Version = "1.1.0"; | ||
export declare const Version = "1.2.0"; |
@@ -1,1 +0,1 @@ | ||
export const Version = '1.1.0'; | ||
export const Version = '1.2.0'; |
{ | ||
"name": "@planetscale/database", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "A Fetch API-compatible PlanetScale database driver", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
28900
367