From ce71bffaf35b8c0fbf55ea3dcab10260aef2d543 Mon Sep 17 00:00:00 2001 From: misitebao Date: Thu, 9 Jul 2020 10:25:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=AD=E6=96=87=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ README_zh.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 README_zh.md diff --git a/README.md b/README.md index 140c0d28..6cf52b6e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # GORM +English丨[中文](README_zh.md) The fantastic ORM library for Golang, aims to be developer friendly. @@ -10,6 +11,7 @@ The fantastic ORM library for Golang, aims to be developer friendly. [![MIT license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT) [![Go.Dev reference](https://img.shields.io/badge/go.dev-reference-blue?logo=go&logoColor=white)](https://pkg.go.dev/gorm.io/gorm?tab=doc) + ## Overview * Full-Featured ORM diff --git a/README_zh.md b/README_zh.md new file mode 100644 index 00000000..2581e462 --- /dev/null +++ b/README_zh.md @@ -0,0 +1,44 @@ +# GORM + +[English](README.md)丨中文 + +Golang绝佳的ORM库,旨在对开发人员友好。 + +[![go report card](https://goreportcard.com/badge/github.com/go-gorm/gorm "go report card")](https://goreportcard.com/report/github.com/go-gorm/gorm) +[![test status](https://github.com/go-gorm/gorm/workflows/tests/badge.svg?branch=master "test status")](https://github.com/go-gorm/gorm/actions) +[![Join the chat at https://gitter.im/jinzhu/gorm](https://img.shields.io/gitter/room/jinzhu/gorm.svg)](https://gitter.im/jinzhu/gorm?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +[![Open Collective Backer](https://opencollective.com/gorm/tiers/backer/badge.svg?label=backer&color=brightgreen "Open Collective Backer")](https://opencollective.com/gorm) +[![Open Collective Sponsor](https://opencollective.com/gorm/tiers/sponsor/badge.svg?label=sponsor&color=brightgreen "Open Collective Sponsor")](https://opencollective.com/gorm) +[![MIT license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT) +[![Go. Dev reference](https://img.shields.io/badge/go.dev-reference-blue?logo=go&logoColor=white)](https://pkg.go.dev/gorm.io/gorm?tab=doc) + +## 总览 + +* 全功能ORM +* 关联(具有一个,具有多个,属于,一对多,多态性,单表继承) +* 钩子(创建/保存/更新/删除/查找之前/之后) +* 希望通过 `Preload` , `Joins` 加载 +* 事务,嵌套事务,保存点,回滚到保存点 +* 上下文、准备状态模式、运行模式 +* 批量插入、批量查询、地图查找 +* SQL生成、更新插入、锁定、优化器/索引/注释提示 +* 复合主键 +* 自动迁移 +* 日志 +* 可扩展,基于GORM回调编写插件 +* 每个功能都附带测试 +* 对开发人员友好 + +## 入门 + +* GORM 指南 [https://gorm.io](https://gorm.io) + +## 贡献 + +[你可以帮助你实现更好的GORM,看看你能做什么](https://gorm.io/contribute.html) + +## 许可证 + +© Jinzhu, 2013~time. Now + +使用 [MIT License](https://github.com/go-gorm/gorm/blob/master/License) 发布