Skip to main content

drizzle-orm

Use when: define type-safe schemas, migrations, and queries with Drizzle ORM and full TS inference.

Informações da origem

Repositório
kimtth/agent-skill-100-lines-or-less
Última atividade na origem
26 de junho de 2026 às 02:15
Idioma detectado do SKILL.md
inglês
Estrelas
2
Forks
0

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
drizzle-orm
description
Use when: define type-safe schemas, migrations, and queries with Drizzle ORM and full TS inference.
Goal: end-to-end type safety from schema to query result. Use for: - modeling tables, relations, and constraints in TypeScript - generating and applying migrations safely - writing queries with inferred result types Workflow: 1. Define tables and columns in the schema with explicit types. 2. Declare relations for type-safe joins and nested reads. 3. Generate migrations from the schema; review the SQL. 4. Apply migrations through the migrator, not ad hoc edits. 5. Query with the typed builder; let result types infer. 6. Derive insert/select types from the schema for app code. Patterns: - single source of truth: the schema drives types and migrations - relations for typed joins instead of manual mapping - prepared statements for hot queries - transactions for multi-step writes Rules: - never hand-edit applied migrations; create a new one - review generated SQL before running it - derive types from the schema; do not duplicate them - scope transactions tightly around the related writes
Ver no GitHub