# xormplus/xorm

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

Repository: https://github.com/xormplus/xorm
Canonical: https://ross.abutalabs.com/products/xormplus-xorm
Language: Go
License: BSD-3-Clause
License Family: permissive
Topics: sql, xorm, sql-orm, ibatis-sql, sqlmap-sqltemplate, mssql, json-xml, golang, golang-library, mysql, go, orm
Last push: 2022-06-06T06:39:37+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4121, "days_push": 1549, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1555, forks 220 (observed 2026-08-28T04:05:03.096241+00:00)

## What it is
xormplus/xorm is an enhanced fork of the xorm ORM library for Go, adding iBATIS-style SQL map configuration files, dynamic SQL templates, and ActiveRecord-style operations on top of the original xorm feature set. It supports multiple databases (MySQL, PostgreSQL, SQLite, MSSQL, Oracle, TiDB), transactions with nested propagation, caching, and master-slave read/write splitting.

## Use cases
- manage database records in Go with struct-to-table mapping
- define SQL statements in XML or JSON config files like iBATIS
- build dynamic SQL with template engines such as pongo2 or jet
- mix raw SQL and ORM operations in one query flow
- set up master-slave read/write splitting for MySQL or PostgreSQL
- export query results as CSV, JSON, XML, XLSX, or YAML
- use optimistic locking with record versioning

## When to choose
- you want iBATIS/SqlMap-style externalized SQL configuration in a Go project
- you need dynamic SQL templates alongside a full-featured ORM
- you require nested transactions with Spring-like propagation semantics
- you want query results directly serialized to JSON/XML or exported to multiple formats

## When to avoid
- you prefer the actively maintained upstream go-xorm/xorm or xorm.io/xorm
- you need zero third-party dependencies in your ORM
- you want first-class Oracle support (only experimental here)
- you need a library with frequent updates and large community activity

## Facets
- artifact type: library
- maturity: maintenance
- function: orm, database, database-driver, caching, serialization
- domain: databases, backend, web-development, developer-tools
- platform: go, windows, cross-platform
- tags: sql-mapping, dynamic-sql, ibatis-style, activerecord, master-slave, read-write-splitting, sql-templates, result-export, linux, macos

## Member repositories
- xormplus/xorm (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:03.096241+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-30T04:30:03.927677+00:00, confidence not recorded.
  - readme: https://github.com/xormplus/xorm (fetched 2026-08-28T04:05:03.096241+00:00, sha f3e95a4bedd8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
