Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

Learning Drizzle ORM and working on a next14 project

6.5K views
•
November 18, 2023
by
Web Dev Cody
YouTube video player
Learning Drizzle ORM and working on a next14 project

TL;DR

The speaker discusses transitioning from Prisma to Drizzle for a new Pantry Tracker project.

Transcript

how's it going everyone I haven't streamed in a while and I had to like remember how to get my whole chat set up and all this other stuff all right how's it going everyone figur I do a little bit of work on a side project on a stream uh yeah this will be posted later so you should be able to find it the one thing I've been doing is uh spending some... Read More

Key Insights

  • 😀 Drizzle ORM offers a simplified setup for serverless environments compared to Prisma, making it an appealing choice for developers facing deployment challenges.
  • 💗 Clean architecture principles help streamline project management by promoting separation of concerns, making future maintenance easier as codebases grow.
  • 🛟 Effective handling of server actions and component organization is crucial when using frameworks like Next.js, which impose specific architectural constraints.
  • 🤗 The speaker values practical learning through building projects, leveraging hands-on experience to understand new technologies like Drizzle and its capabilities.
  • 😥 Managing environment variables correctly is essential for seamless database interactions and migrations, highlighting a common pain point in development setups.
  • 👨‍💻 The transition from one ORM to another provides opportunities to evaluate different approaches to handling data, improving overall coding practices by exposing potential inefficiencies.
  • 👨‍💻 Engaging with the developer community through platforms like Discord enhances knowledge sharing, offering support and solutions to common coding dilemmas.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: Why did you decide to switch from Prisma to Drizzle?

The transition from Prisma to Drizzle was primarily driven by frustration with Prisma’s deployment process on serverless environments. With Prisma, changes to the schema require rerunning migrations that can complicate server operations. Drizzle, being a TypeScript library, simplifies deployment as it does not rely on a Rust binary, which is advantageous for serverless executions.

Q: How are you structuring your project using clean architecture?

In clean architecture, organizing the project with separate layers is key. The speaker mentions having a data access layer for database operations, a business layer for handling logic, and a presentation layer for client interactions. This tiered approach minimizes dependencies and improves code maintainability over the long term.

Q: Can you explain what a use case is in terms of clean architecture?

A use case, often referred to as an interactor, encapsulates a specific business logic function within clean architecture. It acts as a bridge between the application's data layer and business entities. This arrangement ensures that the core logic remains insulated from both the database details and the user interface.

Q: What are some of the challenges you faced while using Next.js with Drizzle?

One challenge the speaker encountered is the enforced separation of client and server components in Next.js, which complicates file structure and architecture decisions. Additionally, managing server actions effectively became cumbersome, necessitating a clearer organization of functions and actions to avoid complexity.

Q: How does Drizzle handle migrations, and what are your experiences with it so far?

Drizzle uses a migration approach similar to Prisma but with its own migration generation system. The speaker expressed appreciation for its simplicity, as Drizzle does not require a separate binary layer. However, there have been some difficulties with environment variable management and ensuring that the correct migration scripts are applied.

Q: What features of Drizzle have impressed you the most?

The speaker appreciates Drizzle's developer experience, particularly its ease of use and the absence of complicated deployment requirements that Prisma has. The streamlined process for generating and applying migrations significantly improves workflow, making it a compelling alternative to Prisma despite its own learning curve.

Summary & Key Takeaways

  • The speaker is working on a side project called Pantry Tracker and is experimenting with the Drizzle ORM after facing deployment issues with Prisma. The project aims to help users keep track of food items at home.

  • Clean architecture principles are being applied to maintain a structured file organization in the Next.js project. This involves separating business logic from the frontend to ensure scalability and maintainability.

  • Challenges faced during the development process include handling server actions in Next.js effectively and managing environment variables to ensure smooth database migrations.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from Web Dev Cody 📚

How I'm doing authentication on my simple Go app (with Fiber) thumbnail
How I'm doing authentication on my simple Go app (with Fiber)
Web Dev Cody
How Does the MacBook Air M1 Compare for Coding? thumbnail
How Does the MacBook Air M1 Compare for Coding?
Web Dev Cody
Live Coding a Shopping Cart using React thumbnail
Live Coding a Shopping Cart using React
Web Dev Cody
How I setup pagination in my Next.js app (with Drizzle ORM) thumbnail
How I setup pagination in my Next.js app (with Drizzle ORM)
Web Dev Cody
I got my first DDoS (and what you can do to help prevent it) thumbnail
I got my first DDoS (and what you can do to help prevent it)
Web Dev Cody

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.