Introducing nest-drizzle-native: A Nest-native Drizzle ORM integration
The article introduces nest-drizzle-native, a new integration designed for using Drizzle ORM within NestJS applications. This package aims to maintain Drizzle's SQL-first approach while providing the architectural benefits of NestJS, such as dependency injection and transaction management. It offers features like direct Drizzle client injection, query-focused provider classes, and testing utilities, all while avoiding the complexities of traditional ORM solutions.
- ▪Nest-drizzle-native 0.2.1 is a community package that integrates Drizzle ORM with NestJS applications.
- ▪The integration preserves Drizzle's SQL-first philosophy while providing NestJS's architectural benefits.
- ▪It includes features like @DrizzleRepository() for query-focused classes and transaction management via Node.js AsyncLocalStorage.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 806537) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Rodrigo Nogueira Posted on May 17 Introducing nest-drizzle-native: A Nest-native Drizzle ORM integration #nestjs #drizzle #typescript #node The release of nest-drizzle-native 0.2.1 introduces a community package designed to make Drizzle ORM feel entirely natural inside NestJS applications.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).