概述
2 分钟阅读
The fantastic ORM library for Golang aims to be developer friendly.
- Full-Featured ORM
- 功能齐全的ORM
- Associations (Has One, Has Many, Belongs To, Many To Many, Polymorphism, Single-table inheritance)
- 关联(一对多、一对一、多对多、多态、单表继承)
- Hooks (Before/After Create/Save/Update/Delete/Find)
- 钩子(创建/保存/更新/删除/查找之前/之后)
- Eager loading with
Preload
,Joins
- 预加载(
Preload
)、联接(Joins
)的延迟加载 - Transactions, Nested Transactions, Save Point, RollbackTo to Saved Point
- 事务、嵌套事务、保存点、回滚到已保存点
- Context, Prepared Statement Mode, DryRun Mode
- 上下文,预处理语句模式,干运行模式
- Batch Insert, FindInBatches, Find/Create with Map, CRUD with SQL Expr and Context Valuer
- 批量插入,分批查找,使用Map查找/创建,使用SQL表达式和上下文值进行CRUD操作
- SQL Builder, Upsert, Locking, Optimizer/Index/Comment Hints, Named Argument, SubQuery
- SQL构建器,Upsert,锁定,优化器/索引/注释提示,命名参数,子查询
- Composite Primary Key, Indexes, Constraints
- 复合主键、索引、约束
- Auto Migrations
- 自动迁移
- Logger
- 日志记录器
- Extendable, flexible plugin API: Database Resolver (Multiple Databases, Read/Write Splitting) / Prometheus…
- 可扩展且灵活的插件API:数据库解析器(多个数据库,读写分离)/ Prometheus等
- Every feature comes with tests
- 每个功能都有测试用例
- Developer Friendly
- 对开发人员友好
安装 Install
|
|
快速入门 Quick Start
|
|