# go-gorm/gorm

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

Repository: https://github.com/go-gorm/gorm
Canonical: https://ross.abutalabs.com/products/gorm
Homepage: https://gorm.io
Language: Go
License: MIT
License Family: permissive
Topics: go, golang, orm, web, gorm
Last push: 2026-06-25T07:21:11+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 89, release rhythm 90, longevity 100
- inputs: {"age_days": 4695, "days_push": 69, "days_rel": 69, "gap_med": 14.5, "n_releases_24m": 11}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 39930, forks 4175 (observed 2026-08-28T04:12:08.047025+00:00)

## What it is
GORM is a full-featured, developer-friendly ORM library for Go that maps Go structs to database tables. It supports associations, transactions, eager loading, auto migrations, hooks, and an extensible plugin API with official drivers for multiple databases.

## Use cases
- map Go structs to database tables with an ORM
- run CRUD queries in Go without writing raw SQL
- manage database transactions and savepoints in Go
- auto-migrate database schemas from Go models
- load related records with eager loading and associations
- split reads and writes across multiple databases
- build type-safe queries with Go generics

## When to choose
- you are building a Go backend or web service that talks to a SQL database
- you want associations, hooks, and migrations handled by the ORM
- you need read/write splitting or multi-database support via plugins
- you prefer a batteries-included, widely adopted Go ORM with a large community

## When to avoid
- you need maximum SQL control and prefer a lightweight query builder like sqlx or squirrel
- your project uses a language other than Go
- you want a schema-first migration tool rather than struct-based auto migration
- you need NoSQL databases, which GORM does not target

## Facets
- artifact type: library
- maturity: stable
- function: orm, database, database-driver
- domain: databases, backend, web-development, developer-tools
- platform: go, windows, cross-platform
- tags: go, sql, transactions, auto-migration, eager-loading, crud, database-resolver, migration, linux, macos

## Member repositories
- go-gorm/gorm (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:08.047025+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:24:05.913903+00:00, confidence not recorded.
  - readme: https://github.com/go-gorm/gorm (fetched 2026-08-28T04:12:08.047025+00:00, sha ed195cdc8909)
  - homepage: https://gorm.io (fetched 2026-08-29T07:46:37.044065+00:00, sha 5db4a0efc525)
  - site_page: https://gorm.io/docs (fetched 2026-08-29T07:46:37.053088+00:00, sha 990bf2b7b335)
  - site_page: https://gorm.io/docs/v2_release_note.html (fetched 2026-08-29T07:46:37.055175+00:00, sha 872d3f27a343)
- Data as of 2026-08-30T08:39:29.467469+00:00.
