Seeding | Drizzle ORM Comprehensive Course | Part-8
Вставка
- Опубліковано 14 жов 2024
- This video is part 8 of a comprehensive course on Drizzle ORM. In this episode, you will learn how to seed your database with dummy data for testing purposes using Drizzle ORM.
Here are the key points covered in the video:
What Seeding is and Why it's Useful
Seeding allows you to populate your database with dummy data for testing purposes.
This is helpful because you don't need to manually add the data each time you want to test your application.
How to Create a Schema Diagram for Your Drizzle ORM Schema
The video walks you through creating a visual representation of your database tables and their relationships.
This can help you understand the structure of your database and how the tables are connected.
How to Implement Seeding Functionality with Drizzle ORM
The video demonstrates how to create a seed file that inserts dummy data into your database tables.
You will learn how to use the Faker package to generate more realistic data for your seed file.
How to Run the Seeding Functionality
The video shows you how to run the seed file from your terminal.
Once you run the seed file, your database will be populated with dummy data.
By the end of this video, you will be able to seed your database with Drizzle ORM and use the Faker package to generate more realistic data for your seed file.
Glad to see the seeding after the long waiting. Appreciated.
A-Z Complete 😍 Thanks for your efforts on this series
Thanks a lot 🙏😊
Thank you very much, Professor Vahid, it was great as always
Hey 👋, thank you so much 🙂
Would love to see a full course with DrizzleORM and NestJS.
Thank you for making this video.
Hi Sakura, can you please explain how can I query table from different schemas in PG if I've implemented schema based multitenancy in database.???
If it is possible, I need to know to change environments in Nextjs and drizzle config between test, dev and production.
it would be better to use fakerjs here