Skip to content

Instantly share code, notes, and snippets.

View kansson's full-sized avatar

Isak kansson

  • Sweden
  • 22:27 (UTC +01:00)
View GitHub Profile
@kansson
kansson / drizzle-orm+0.29.3.patch
Created January 28, 2024 22:40
Drizzle ORM Bun Patch
diff --git a/node_modules/drizzle-orm/bun-sqlite/session.js b/node_modules/drizzle-orm/bun-sqlite/session.js
index ce48d1a..50a5b4f 100644
--- a/node_modules/drizzle-orm/bun-sqlite/session.js
+++ b/node_modules/drizzle-orm/bun-sqlite/session.js
@@ -76,14 +76,14 @@ class PreparedQuery extends PreparedQueryBase {
get(placeholderValues) {
const params = fillPlaceholders(this.query.params, placeholderValues ?? {});
this.logger.logQuery(this.query.sql, params);
- const row = this.stmt.get(...params);
+ const { fields, joinsNotNullableMap, customResultMapper, stmt } = this;