什麼是 drizzle-orm?
Drizzle ORM 用於 PostgreSQL、MySQL 和 SQLite 的類型安全 SQL。在定義模式、撰寫查詢、管理關係、執行遷移或使用 drizzle-kit 時使用。用於 drizzle、orm、schema、查詢、遷移、pgTable、關係、drizzle-kit、drizzle-zod。 來源:oakoss/agent-skills。
Drizzle ORM 用於 PostgreSQL、MySQL 和 SQLite 的類型安全 SQL。在定義模式、撰寫查詢、管理關係、執行遷移或使用 drizzle-kit 時使用。用於 drizzle、orm、schema、查詢、遷移、pgTable、關係、drizzle-kit、drizzle-zod。
透過命令列快速安裝 drizzle-orm AI 技能到你的開發環境
來源:oakoss/agent-skills。
Drizzle ORM is a lightweight, type-safe TypeScript ORM that maps directly to SQL for PostgreSQL, MySQL, and SQLite. It provides both a SQL-like query builder and a relational queries API, with zero dependencies and full serverless compatibility. Use Drizzle when you need compile-time type safety with SQL-level control; avoid it when you need a full active-record ORM with automatic migrations (use Prisma) or when w...
| Schema definition | pgTable('name', { columns }, (t) => [indexes]) | Third arg returns array of indexes/constraints | | Column types | text(), integer(), boolean(), timestamp() | Import from drizzle-orm/pg-core | | Type inference | typeof table.$inferSelect, $inferInsert | Derive TS types directly from schema |
| Relational queries | db.query.table.findMany({ with, where }) | Requires schema passed to drizzle() client | | SQL-like queries | db.select().from(table).where() | Chainable, returns array of rows | | Insert | db.insert(table).values({}).returning() | .returning() for getting inserted rows |
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/oakoss/agent-skills --skill drizzle-ormDrizzle ORM 用於 PostgreSQL、MySQL 和 SQLite 的類型安全 SQL。在定義模式、撰寫查詢、管理關係、執行遷移或使用 drizzle-kit 時使用。用於 drizzle、orm、schema、查詢、遷移、pgTable、關係、drizzle-kit、drizzle-zod。 來源:oakoss/agent-skills。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/oakoss/agent-skills --skill drizzle-orm 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/oakoss/agent-skills