What problem does it solve?
This Skill simplifies database interactions in TypeScript applications by providing a type-safe way to define schemas, write queries, and manage migrations, reducing runtime errors and improving developer productivity.
Core Features & Use Cases
- Type-Safe Schema Definition: Define your database schema once in TypeScript, and Drizzle ensures type safety across your application.
- SQL-like Query Builder: Write expressive and performant queries using a familiar JavaScript/TypeScript API.
- Automated Migrations: Generate and apply database schema changes with
drizzle-kit.
- Relational Queries: Easily fetch related data with nested queries, similar to an ORM's capabilities.
- Use Case: When building a new feature that requires creating, reading, updating, and deleting user data, use Drizzle ORM to define the user schema and interact with the database reliably.
Quick Start
Use the drizzle-orm skill to define a new PostgreSQL table named 'users' with 'id' and 'name' columns.