filmov
tv
Seed in Database Explained with Real Example (Node.js + MySQL + Drizzle)

Показать описание
To demonstrate pagination, we need lots of URL data — but manually adding it is slow.
So, we’ll use Drizzle ORM’s seeding functionality to generate 100 fake short links, all linked to a single user in our database.
🌱 This is called database seeding — it helps create dummy data for testing and development.
------------------------------------------------------------------------
🚀 Boost Your Skills with these Pre-Requisite Videos:
------------------------------------------------------------------------
------------------------------------------------------------------------
✌️ Join Us!
------------------------------------------------------------------------
⌛TIMELINE⏳
0:00 – WHAT IS SEEDING IN DATABASE – Drizzle
0:15 – What we have done so far in our Node app
0:44 – Pagination in shortlinks
1:45 – Weird output
2:20 – Pagination & must watch videos
3:40 – What is seeding in database
4:30 – Installing drizzle seed
6:35 – Resetting the database with seed
9:20 – Generating 100 fake data in table
12:30 – How fake data looks like
14:00 – Must watch videos
So, we’ll use Drizzle ORM’s seeding functionality to generate 100 fake short links, all linked to a single user in our database.
🌱 This is called database seeding — it helps create dummy data for testing and development.
------------------------------------------------------------------------
🚀 Boost Your Skills with these Pre-Requisite Videos:
------------------------------------------------------------------------
------------------------------------------------------------------------
✌️ Join Us!
------------------------------------------------------------------------
⌛TIMELINE⏳
0:00 – WHAT IS SEEDING IN DATABASE – Drizzle
0:15 – What we have done so far in our Node app
0:44 – Pagination in shortlinks
1:45 – Weird output
2:20 – Pagination & must watch videos
3:40 – What is seeding in database
4:30 – Installing drizzle seed
6:35 – Resetting the database with seed
9:20 – Generating 100 fake data in table
12:30 – How fake data looks like
14:00 – Must watch videos