Golang主流orm数据库框架介绍
发布者:admin 发表于:438天前 阅读数:6414 评论:0

gorm:

Github Star 21.4k

老牌国产Golang orm框架。支持主流关系型数据库。中文文档适合新人入手,国内使用较多。

https://github.com/go-gorm/gorm http://gorm.book.jasperxu.com/

xorm:

Github Star 6.2k

老牌的Go语言 orm框架。支持主流关系型数据库 支持如下驱动

  • Mysql
  • MyMysql
  • Postgres
  • Tidb
  • SQLite
  • MsSql
  • Oracle

https://github.com/go-xorm/xorm https://godoc.org/github.com/go-xorm/xorm

upper/db:

Github Star 2.4k

亮点是支持nosql

  • PostgreSQL
  • MySQL
  • MSSQL
  • CockroachDB
  • MongoDB
  • QL
  • SQLite

https://github.com/upper/db

gorose:

Github Star 876

国产轻量级 orm框架

支持如下驱动

  • mysql
  • sqlite3
  • postgres
  • oracle
  • mssql
  • clickhouse

https://github.com/gohouse/gorose https://gohouse.github.io/gorose/dist/zh-cn/index.html