Scripts2026年4月6日·1 分钟阅读

Drizzle ORM — TypeScript SQL That Feels Like Code

Type-safe TypeScript ORM with SQL-like syntax. Zero overhead, serverless-ready, supports PostgreSQL, MySQL, SQLite. Schema as code with automatic migrations. 28,000+ GitHub stars.

SC
Script Depot · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

npm install drizzle-orm postgres
import { pgTable, serial, text } from "drizzle-orm/pg-core";
export const users = pgTable("users", {
  id: serial("id").primaryKey(),
  name: text("name").notNull(),
});

简介

Drizzle ORM 是一个类型安全的 TypeScript ORM,GitHub 28,000+ stars。SQL 风格语法,零抽象开销,7.4KB 体积。原生支持 Serverless,支持 PostgreSQL/MySQL/SQLite。适合懂 SQL 且想要类型安全的 TypeScript 开发者。


🙏

来源与感谢

Created by Drizzle Team. Licensed under Apache 2.0.

drizzle-orm — ⭐ 28,000+

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产