Go ORM

Open-source Go projects categorized as ORM

Top 23 Go ORM Projects

  • GORM

    The fantastic ORM library for Golang, aims to be developer friendly

    Project mention: How do you handle nil/null values correctly | reddit.com/r/golang | 2023-01-25
  • ent

    An entity framework for Go

    Project mention: Hello, is there a library similar to graphql-compose from Node.js in Go? | reddit.com/r/golang | 2023-01-18

    I think you are looking for ent https://github.com/ent/ent which has nice graphql integration.

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • gf

    GoFrame is a modular, powerful, high-performance and enterprise-class application development framework of Golang. (by gogf)

    Project mention: GoFrame | reddit.com/r/golang | 2022-09-26
  • sqlc

    Generate type-safe code from SQL

    Project mention: You might not need an ORM | news.ycombinator.com | 2023-01-25
  • Xorm

  • SQLBoiler

    Generate a Go ORM tailored to your database schema.

    Project mention: ORM or no ORM (and which ones)? | reddit.com/r/golang | 2023-01-17

    SQL code generator (aka inspect a database or SQL files to generate data models). You have the option of using something like volatiletech/sqlboiler which looks at the a physical database and generates code based on the schema. Or SQLC which is an amazing and fast project.

  • go-pg

    Golang ORM with focus on PostgreSQL features and performance

    Project mention: What SQL library are you using? | reddit.com/r/golang | 2022-07-02

    I usually work with PostgreSQL and have used https://github.com/go-pg/pg. https://github.com/uptrace/bun is its successor.

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • gorp

    Go Relational Persistence - an ORM-ish library for Go

  • xo

    Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server (by xo)

    Project mention: Help with XO's new templating, how to access fields and params | reddit.com/r/golang | 2022-08-23

    I am using the library xo to generate basic data retrieval code from a sql schema for a crud api.

  • upper.io/db

    Data access layer for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.

    Project mention: [Hiring] Remote Golang job: Senior Backend Engineer (Go) at Horizon (Toronto, Canada) | reddit.com/r/jobbit | 2022-05-28

    You will be joining the expert Go team at Horizon, previously who in our spare time + for fun, authored OSS projects like chi (https://github.com/go-chi/chi), upper/db (https://github.com/upper/db), webrpc (https://github.com/webrpc/webrpc), goware (https://github.com/goware), and much more. Our Go codebases are extremely clean and the patterns we've built have been shaped over 7 years of writing production Go systems and open source projects. These are the patterns which we apply to our infrastructure at Horizon in our products Skyweaver and Sequence.

  • gormt

    database to golang struct

  • Storm

    Simple and powerful toolkit for BoltDB (by asdine)

    Project mention: Resource for making database from scratch | reddit.com/r/golang | 2022-11-11
  • bun

    SQL-first Golang ORM (by uptrace)

    Project mention: ORM or no ORM (and which ones)? | reddit.com/r/golang | 2023-01-17

    This way: https://github.com/uptrace/bun, I prefer in all cases with PostgreSQL

  • xorm

    xorm是一个简单而强大的Go语言ORM库,通过它可以使数据库操作非常简便。本库是基于原版xorm的定制增强版本,为xorm提供类似ibatis的配置文件及动态SQL支持,支持AcitveRecord操作 (by xormplus)

  • prisma-client-go

    Prisma Client Go is an auto-generated and fully type-safe database client

    Project mention: Prisma laying off 28% staff | news.ycombinator.com | 2023-01-22

    The same company that stopped officially maintaining their golang library when it wasn't getting "the growth we were hoping for".

    https://github.com/prisma/prisma-client-go/issues/707

  • reform

    A better ORM for Go, based on non-empty interfaces and code generation. (by go-reform)

  • gobuffalo/pop

    A Tasty Treat For All Your Database Needs (by gobuffalo)

    Project mention: Best Orm that uses Graphql and Postgres | reddit.com/r/golang | 2022-12-18

    I've also used https://github.com/gobuffalo/pop for an on-hold side project.

  • go-doudou

    go-doudou(doudou pronounce /dəudəu/)is OpenAPI 3.0 (for REST) spec and Protobuf v3 (for grpc) based lightweight microservice framework. It supports monolith service application as well.

    Project mention: go-doudou released v2.0.1 version | reddit.com/r/golang | 2022-11-14
  • go-sqlbuilder

    A flexible and powerful SQL string builder library plus a zero-config ORM.

  • gocqlx

    All-In-One: CQL query builder, ORM and migration tool

    Project mention: Golang support for Cassandra | reddit.com/r/golang | 2022-08-05

    Have you tried https://github.com/scylladb/gocqlx by the way?

  • godb

    A Go SQL query builder and struct mapper.

  • go-queryset

    100% type-safe ORM for Go (Golang) with code generation and MySQL, PostgreSQL, Sqlite3, SQL Server support. GORM under the hood.

  • REL

    :gem: Modern ORM for Golang - Testable, Extendable and Crafted Into a Clean and Elegant API

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-01-25.

Go ORM related posts

Index

What are some of the best open-source ORM projects in Go? This list will help you:

Project Stars
1 GORM 31,250
2 ent 12,862
3 gf 8,780
4 sqlc 7,329
5 Xorm 6,204
6 SQLBoiler 5,551
7 go-pg 5,318
8 gorp 3,628
9 xo 3,309
10 upper.io/db 3,244
11 gormt 2,108
12 Storm 1,942
13 bun 1,847
14 xorm 1,534
15 prisma-client-go 1,385
16 reform 1,382
17 gobuffalo/pop 1,290
18 go-doudou 1,017
19 go-sqlbuilder 930
20 gocqlx 724
21 godb 719
22 go-queryset 692
23 REL 624
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com