{"repo":"uptrace/bun","free":true,"listed":false,"github":"https://github.com/uptrace/bun","clone":"git clone https://github.com/uptrace/bun.git","description":"SQL-first Golang ORM","language":"Go","stars":4931,"topics":["golang","go","orm","sql","mysql","postgresql","sqlite","sqlite3","database","mssql"],"license":"BSD-2-Clause","category":"databases-storage","readme_excerpt":"Bun: SQL-first Golang ORM Lightweight, SQL-first Golang ORM for PostgreSQL, MySQL, MSSQL, SQLite, and Oracle Bun is a modern ORM that embraces SQL rather than hiding it. Write complex queries in Go with type safety, powerful scanning capabilities, and database-agnostic code that works across multiple SQL databases. ✨ Key Features - SQL-first approach - Write elegant, readable queries that feel like SQL - Multi-database support - PostgreSQL, MySQL/MariaDB, MSSQL, SQLite, and Oracle - Type-safe operations - Leverage Go's static typing for compile-time safety - Flexible scanning - Query results into structs, maps, scalars, or slices - Performance optimized - Built on database/sql with minimal overhead - Rich relationships - Define complex table relationships with struct tags - Production ready - Migrations, fixtures, soft deletes, and OpenTelemetry support 🚀 Quick Start Basic Example 🎯 Why Choose Bun? Elegant Complex Queries Write sophisticated queries that remain readable and maintainable: Flexible Result Scanning Scan query results into various Go types: 📊 Database Support Database Driver Dialect ------------- ------------------------------------------ --------------------- PostgreSQL github.com/uptrace/bun/driver/pgdriver pgdialect.New() MySQL/MariaDB github.com/go-sql-driver/mysql mysqldialect.New() SQLite github.com/uptrace/bun/driver/sqliteshim sqlitedialect.New() SQL Server github.com/denisenkom/go-mssqldb mssqldialect.New() Oracle github.com/sijms/go-ora/v2 oracledial","default_branch":null,"files":null,"tree":[],"storefront":"/r/uptrace","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/uptrace/bun/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}