# go-xorm/xorm

Simple and Powerful ORM for Go, support mysql,postgres,tidb,sqlite3,mssql,oracle, Moved to https://gitea.com/xorm/xorm

Repository: https://github.com/go-xorm/xorm
Canonical: https://ross.abutalabs.com/products/xorm
Language: Go
License: BSD-3-Clause
License Family: permissive
Topics: golang, orm, mysql, sqlite, mssql, postgres, postgresql, tidb
Archived: true
Last push: 2020-04-03T01:12:12+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4865, "days_push": 2344, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6622, forks 741 (observed 2026-08-28T04:09:45.744474+00:00)

## What it is
Xorm is a simple and powerful ORM library for Go that maps Go structs to database tables with chainable APIs, transaction support, and raw SQL support. It supports MySQL, Postgres, TiDB, SQLite, MSSQL, and Oracle, though the GitHub repository has moved to Gitea and is no longer updated.

## Use cases
- map go structs to database tables
- orm for mysql and postgres in go
- manage database transactions in go
- sync go struct definitions to database schema
- read-write splitting with master and slave databases
- query database with chainable orm api in go

## When to choose
- you want a lightweight Go ORM with both ORM and raw SQL support
- you need multi-database support including TiDB and Oracle
- you want automatic schema syncing from structs
- you need read/write splitting with engine groups

## When to avoid
- you want an actively maintained project on GitHub - it moved to Gitea
- you prefer the more widely adopted GORM ecosystem
- you need a repository with recent releases - last release was 2020

## Facets
- artifact type: library
- maturity: maintenance
- function: orm, database, database-driver, caching
- domain: databases, backend, web-development, developer-tools
- platform: go, cross-platform
- tags: go, sql, mysql, postgres, sqlite, mssql, oracle, tidb, moved-to-gitea

## Member repositories
- go-xorm/xorm (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:45.744474+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-29T17:43:17.820986+00:00, confidence not recorded.
  - readme: https://github.com/go-xorm/xorm (fetched 2026-08-28T04:09:45.744474+00:00, sha b2098b26033b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
