#198198th of 358 in Backends, databases and hosting
uptrace/bun
SQL-first Go ORM for PostgreSQL, MySQL, MSSQL, SQLite and Oracle
- Stars
- 5k
- License
- BSD-2-Clause
- Last commit
- Nov 2026
- Last release
- Oct 2026
- Language
- Go
4,729 on 26 Apr 20265,004 on 22 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Bun is a Go library built on database/sql that maps structs to tables and lets you write queries in a builder that mirrors SQL, including CTEs. It covers relations via struct tags, bulk insert/update/delete, migrations, and query hooks for debug logging and OpenTelemetry. It is a data-access library, not an AI project or a hosted backend.
Who it is for: Go developers who want an ORM that keeps SQL visible
Strengths
- Query builder follows SQL closely, including CTEs and raw expressions
- One API across PostgreSQL, MySQL/MariaDB, MSSQL, SQLite and Oracle
- Scans into structs, maps, scalars or slices
- Ships migrations, fixtures, soft deletes and an OpenTelemetry query hook
Weaknesses
- Go only; it is a library, not a standalone service
- Queries use string expressions, so some SQL errors surface only at runtime
- Not related to AI; it only fits as a database layer in a Go backend
- Each database needs its own driver and dialect package
What it needs
- no GPU
- Needs A SQL database (PostgreSQL, MySQL/MariaDB, MSSQL, SQLite or Oracle)
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Known problems
Reported, then fixed by a linked change
- m2m relation with extend panic ↗ (opens in a new tab)0 reactions · closed 14 Nov 2026Fixed by test: cover m2m relations on extended models ↗ (opens in a new tab)
- migrate: SQL migration finalizer errors are lost due to unnamed return ↗ (opens in a new tab)0 reactions · closed 17 Jul 2026Fixed by fix(migrate): surface lost SQL migration finalizer errors (#1389) ↗ (opens in a new tab)
- Regression in v1.2.X: Nested Relation() fails when using struct composition for shared fields and relations ↗ (opens in a new tab)0 reactions · closed 17 Jun 2026Fixed by fix: resolve nested Relation() with circular struct composition ↗ (opens in a new tab)
- SQLite: WithRecursive generates invalid SQL with extra parentheses in UNION ALL ↗ (opens in a new tab)0 reactions · closed 8 Apr 2026Fixed by fix(query): skip UNION wrapping for SQLite ↗ (opens in a new tab)
Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.
Also in Backends, databases and hosting
See all 358| Rank | Project | Score |
|---|---|---|
| #196 | apache/camelJava integration framework with 350+ connectors, routes in Java, YAML or XML | 69 out of 100 |
| #197 | dynamic-datasourceSpring Boot starter that routes calls to multiple datasources via @DS | 69 out of 100 |
| #199 | csghubSelf-hosted hub for models, datasets and Spaces, like a private Hugging Face | 69 out of 100 |
| #200 | avoAdmin panel and internal tool framework for Ruby on Rails apps | 69 out of 100 |
| #201 | casosSingle-binary Kubernetes cluster with web UI, app store and MCP server | 69 out of 100 |