Skip to main content

cursor-drizzle

Cursor IDE rules for drizzle

소스 정보

저장소
GrayCodeAI/starling
최근 소스 활동
2026년 7월 29일 08:53
감지된 SKILL.md 언어
영어
스타
2
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
cursor-drizzle
description
Cursor IDE rules for drizzle
license
MIT
tags
["cursor","ide-rules"]
domain
coding
version
1
author
cursorrules-collection
category
engineering
auto_invoke
false
compatibility
node>=20 typescript>=5
allowed_tools
bash file_search
agents
["hawk","claude-code","cursor"]
invoke
cursor:drizzle
chain_after
["cursor-rules"]
chain_enhances
["mdc-drizzle"]
# Drizzle ORM Rules ## Schema - Define all tables in a central schema file (db/schema.ts) - Use the appropriate column types for your database (pgTable, mysqlTable, sqliteTable) - Always define relations explicitly using the relations() function - Add indexes for columns used in WHERE clauses and JOINs ## Queries - Use the query API (db.query.users.findMany()) for complex joins and nested data - Use the CRUD API (db.select().from()) for simple queries - Always use parameterized queries — never interpolate values into SQL strings - Use transactions (db.transaction()) for multi-step operations that must be atomic ## Migrations - Generate migrations with drizzle-kit generate - Review generated SQL before applying — never auto-apply without inspection - Keep migration files in version control - Use drizzle-kit push for development, drizzle-kit migrate for production ## Type Safety - Infer types from schema: type User = typeof users.$inferSelect - Use insert types for write operations: type NewUser = typeof users.$inferInsert - Do not manually define types that duplicate schema definitions ## Anti-patterns - Do not use raw SQL when Drizzle's query builder can express the same query - Do not skip the migration step — always generate and apply migrations for schema changes - Do not mix different database dialects in the same project
GitHub에서 보기