Drizzle Toolbelt (v1.2.0) is a utility library for drizzle-orm, providing helper functions like takeFirst, takeFirstOrThrow, and aggregate to simplify common query patterns. It is actively maintained and ships TypeScript definitions. Key differentiators include a data-first API style and customizable error handling, making it a practical companion to drizzle-orm for Node.js and edge environments.
npm install drizzle-toolbeltNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use takeFirstOrThrow to get a single user or throw a custom error.
Use takeFirstOrThrow() to invoke with default, or pass error as argument.
Ensure fields object uses correct column aliases from the query.
npm install drizzle-toolbelt; use import instead of require
No dependency data recorded yet.