diff --git a/README.md b/README.md index ea8205d..9ece3f0 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ + +> [!NOTE] +> 本文档由 WeHub 基于上游 README 翻译整理,属于社区翻译,非官方中文文档。 +> [English](./README.en.md) · [原始项目](https://github.com/drizzle-team/drizzle-orm) · [上游 README](https://github.com/drizzle-team/drizzle-orm/blob/HEAD/README.md) +> 原作者、版权与许可证归属以原始项目及本仓库 LICENSE 文件为准。 +
@@ -5,9 +11,9 @@
-

Headless ORM for NodeJS, TypeScript and JavaScript 🚀

- Website • - Documentation • +

适用于 NodeJS、TypeScript 和 JavaScript 的无头 ORM 🚀

+ 官网 • + 文档TwitterDiscord
@@ -15,28 +21,28 @@

-### What's Drizzle? -Drizzle is a modern TypeScript ORM developers [wanna use in their next project](https://stateofdb.com/tools/drizzle). -It is [lightweight](https://bundlephobia.com/package/drizzle-orm) at only ~7.4kb minified+gzipped, and it's tree shakeable with exactly 0 dependencies. +### 什么是 Drizzle? +Drizzle 是一款现代化的 TypeScript ORM,开发者[希望在下一个项目中使用](https://stateofdb.com/tools/drizzle). +它[轻量](https://bundlephobia.com/package/drizzle-orm),经 minified+gzipped 后仅约 7.4kb,且支持 tree-shake,依赖数恰好为 0。 -**Drizzle supports every PostgreSQL, MySQL and SQLite database**, including serverless ones like [Turso](https://orm.drizzle.team/docs/get-started-sqlite#turso), [Neon](https://orm.drizzle.team/docs/get-started-postgresql#neon), [Xata](https://orm.drizzle.team/docs/connect-xata), [PlanetScale](https://orm.drizzle.team/docs/get-started-mysql#planetscale), [Cloudflare D1](https://orm.drizzle.team/docs/get-started-sqlite#cloudflare-d1), [FlyIO LiteFS](https://fly.io/docs/litefs/), [Vercel Postgres](https://orm.drizzle.team/docs/get-started-postgresql#vercel-postgres), [Supabase](https://orm.drizzle.team/docs/get-started-postgresql#supabase) and [AWS Data API](https://orm.drizzle.team/docs/get-started-postgresql#aws-data-api). No bells and whistles, no Rust binaries, no serverless adapters, everything just works out of the box. +**Drizzle 支持所有 PostgreSQL、MySQL 和 SQLite 数据库**,包括 [Turso](https://orm.drizzle.team/docs/get-started-sqlite#turso),、[Neon](https://orm.drizzle.team/docs/get-started-postgresql#neon),、[Xata](https://orm.drizzle.team/docs/connect-xata),、[PlanetScale](https://orm.drizzle.team/docs/get-started-mysql#planetscale),、[Cloudflare D1](https://orm.drizzle.team/docs/get-started-sqlite#cloudflare-d1),、[FlyIO LiteFS](https://fly.io/docs/litefs/),、[Vercel Postgres](https://orm.drizzle.team/docs/get-started-postgresql#vercel-postgres),、[Supabase](https://orm.drizzle.team/docs/get-started-postgresql#supabase) 和 [AWS Data API](https://orm.drizzle.team/docs/get-started-postgresql#aws-data-api). 没有花哨功能,没有 Rust 二进制文件,没有 serverless 适配器,一切开箱即用。 -**Drizzle is serverless-ready by design**. It works in every major JavaScript runtime like NodeJS, Bun, Deno, Cloudflare Workers, Supabase functions, any Edge runtime, and even in browsers. -With Drizzle you can be [**fast out of the box**](https://orm.drizzle.team/benchmarks) and save time and costs while never introducing any data proxies into your infrastructure. +**Drizzle 从设计上即可用于 serverless**。它可在 NodeJS、Bun、Deno、Cloudflare Workers、Supabase functions、任何 Edge 运行时,乃至浏览器等所有主流 JavaScript 运行时中运行。 +借助 Drizzle,你可以[**开箱即快**](https://orm.drizzle.team/benchmarks),节省时间与成本,同时绝不会向基础设施引入任何数据代理。 -While you can use Drizzle as a JavaScript library, it shines with TypeScript. It lets you [**declare SQL schemas**](https://orm.drizzle.team/docs/sql-schema-declaration) and build both [**relational**](https://orm.drizzle.team/docs/rqb) and [**SQL-like queries**](https://orm.drizzle.team/docs/select), while keeping the balance between type-safety and extensibility for toolmakers to build on top. +虽然你可以将 Drizzle 作为 JavaScript 库使用,但它在 TypeScript 中表现尤为出色。它让你能够[**声明 SQL 模式(schema)**](https://orm.drizzle.team/docs/sql-schema-declaration),并构建[**关系型**](https://orm.drizzle.team/docs/rqb))和[**类 SQL 查询**](https://orm.drizzle.team/docs/select),),同时在类型安全与可扩展性之间保持平衡,便于工具开发者在其之上构建。 -### Ecosystem -While Drizzle ORM remains a thin typed layer on top of SQL, we made a set of tools for people to have best possible developer experience. +### 生态系统 +虽然 Drizzle ORM 仍是 SQL 之上的轻量类型化层,我们打造了一系列工具,让人们获得尽可能出色的开发者体验。 -Drizzle comes with a powerful [**Drizzle Kit**](https://orm.drizzle.team/kit-docs/overview) CLI companion for you to have hassle-free migrations. It can generate SQL migration files for you or apply schema changes directly to the database. +Drizzle 附带强大的 [**Drizzle Kit**](https://orm.drizzle.team/kit-docs/overview) CLI 配套工具,助你轻松完成迁移。它可以为你生成 SQL 迁移文件,或将模式变更直接应用到数据库。 -We also have [**Drizzle Studio**](https://orm.drizzle.team/drizzle-studio/overview) for you to effortlessly browse and manipulate data in your database of choice. +我们还提供 [**Drizzle Studio**](https://orm.drizzle.team/drizzle-studio/overview),让你轻松浏览和操作所选数据库中的数据。 -### Documentation -Check out the full documentation on [the website](https://orm.drizzle.team/docs/overview). +### 文档 +请在[官网](https://orm.drizzle.team/docs/overview).查看完整文档。 -### Our sponsors ❤️ +### 我们的赞助商 ❤️