gorm/README_zh.md
2020-07-09 10:26:21 +08:00

45 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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) 发布