# qiniu/qmgo

Qmgo - The Go driver for MongoDB. It‘s based on official mongo-go-driver but easier to use like Mgo.

Repository: https://github.com/qiniu/qmgo
Canonical: https://ross.abutalabs.com/products/qmgo
Language: Go
License: Apache-2.0
License Family: permissive
Topics: mongodb, go, mgo, mongo-go-driver, mongodb-database, database, driver, mongodb-driver
Last push: 2026-06-20T10:23:45+00:00

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

## Adoption (not part of the score)
Stars 1356, forks 151 (observed 2026-08-28T04:04:29.309948+00:00)

## What it is
Qmgo is a Go driver for MongoDB built on top of the official mongo-go-driver, offering a friendlier, chainable API reminiscent of the classic mgo library. It supports CRUD, transactions, hooks, aggregation, indexes, and validation tags with minimal code changes for mgo migrations.

## Use cases
- connect to mongodb from go
- migrate from mgo to the official mongo go driver
- perform crud operations on mongodb with a chainable api
- use mongodb transactions in go
- add hooks and validation to mongodb documents
- manage mongodb indexes and aggregation pipelines in go

## When to choose
- you want an ergonomic, mgo-like API over the official mongo-go-driver
- you are migrating an existing mgo-based Go codebase
- you need transactions, hooks, and index management in one convenient wrapper

## When to avoid
- you prefer using the official mongo-go-driver API directly
- you use a database other than MongoDB
- you need a full ORM with schema migrations

## Facets
- artifact type: library
- maturity: active
- function: database-driver, database
- domain: databases, backend, developer-tools
- platform: go, windows, cross-platform
- tags: mongodb, mgo, chainable-api, orm-like, transactions, hooks, linux, macos

## Member repositories
- qiniu/qmgo (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:29.309948+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:41:55.642562+00:00, confidence not recorded.
  - readme: https://github.com/qiniu/qmgo (fetched 2026-08-28T04:04:29.309948+00:00, sha 1aedc0733317)
- Data as of 2026-08-30T08:39:29.467469+00:00.
