·drizzle-orm
</>

drizzle-orm

Drizzle ORM 用於 PostgreSQL、MySQL 和 SQLite 的類型安全 SQL。在定義模式、撰寫查詢、管理關係、執行遷移或使用 drizzle-kit 時使用。用於 drizzle、orm、schema、查詢、遷移、pgTable、關係、drizzle-kit、drizzle-zod。

26安裝·2熱度·@oakoss

安裝

$npx skills add https://github.com/oakoss/agent-skills --skill drizzle-orm

如何安裝 drizzle-orm

透過命令列快速安裝 drizzle-orm AI 技能到你的開發環境

  1. 開啟終端機: 開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 執行安裝指令: 複製並執行以下指令:npx skills add https://github.com/oakoss/agent-skills --skill drizzle-orm
  3. 驗證安裝: 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

來源:oakoss/agent-skills。

SKILL.md

查看原文

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-orm
分類
</>開發工具
認證
收錄時間
2026-02-22
更新時間
2026-03-10

Browse more skills from oakoss/agent-skills

快速解答

什麼是 drizzle-orm?

Drizzle ORM 用於 PostgreSQL、MySQL 和 SQLite 的類型安全 SQL。在定義模式、撰寫查詢、管理關係、執行遷移或使用 drizzle-kit 時使用。用於 drizzle、orm、schema、查詢、遷移、pgTable、關係、drizzle-kit、drizzle-zod。 來源:oakoss/agent-skills。

如何安裝 drizzle-orm?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/oakoss/agent-skills --skill drizzle-orm 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

這個 Skill 的原始碼在哪?

https://github.com/oakoss/agent-skills

詳情

分類
</>開發工具
來源
skills.sh
收錄時間
2026-02-22