awesome-repositories.com
Blog
MCP
awesome-repositories.com

Descoperă cele mai bune repository-uri open source cu căutare AI.

ExploreazăCăutări recomandateAlternative open-sourceSoftware self-hostedBlogHartă site
ProiectServer MCPDespreCum realizăm clasamentulPresă
LegalConfidențialitateTermeni
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
uptrace avatar

uptrace/bun

0
View on GitHub↗
4,867 stele·280 fork-uri·Go·BSD-2-Clause·13 vizualizăribun.uptrace.dev↗

Bun

Bun este un ORM (Object Relational Mapper) type-safe pentru Go care prioritizează construcția interogărilor SQL-first și maparea rezultatelor. Funcționează ca un constructor de interogări SQL programabil, un manager de conexiuni la baza de date și un instrument pentru maparea tabelelor bazei de date la structuri Go.

Proiectul se distinge printr-un sistem de suport SQL multi-dialect, permițând unui singur codebase să interacționeze cu diferite motoare de baze de date printr-o interfață consistentă. Include un instrument încorporat de observabilitate a bazei de date pentru interceptarea interogărilor, tracing distribuit și logare, precum și un instrument de migrare a schemei pentru versionarea modificărilor structurale.

Biblioteca acoperă o gamă largă de operațiuni cu date, inclusiv procesarea în masă, upsert-uri, soft deletes și gestionarea datelor relaționale, cum ar fi asocierile polimorfice. Oferă capabilități pentru analize SQL avansate folosind expresii de tabel comune (CTE) și funcții de fereastră, alături de gestionarea tranzacțiilor atomice și pooling-ul conexiunilor.

Gestionarea schemei este suportată printr-o interfață de linie de comandă pentru aplicarea scripturilor de migrare versionate.

Features

  • Fluent Query Builders - Provides a chainable, functional interface for constructing complex SQL statements through a programmable API.
  • SQL Query Building - Provides a programmable fluent API for the incremental construction of complex SQL statements.
  • Go Struct Mappings - Maps database tables to Go structs to facilitate type-safe data retrieval and insertion.
  • Row-to-Struct Mappers - Automatically transforms database result sets into strongly-typed Go structures by matching columns to fields.
  • Connection and Transaction Management - Manages database connection pools and ensures atomic transaction consistency across operations.
  • Atomic Transactions - Ensures data consistency by executing a series of database operations as a single atomic unit.
  • Database Relationship Mappings - Defines declarative associations between data models including support for custom join columns.
  • Type-Safe Query Construction - Provides a type-safe fluent API that maps database results directly into typed Go structures.
  • Row Result Scanning - Maps database row values into typed Go structures by analyzing field metadata at runtime via reflection.
  • Record Deletion - Removes specific rows from a database table based on a defined model and query criteria.
  • Record Insertion - Adds new rows to database tables using type-safe models to ensure data integrity.
  • Record Updating - Modifies existing database rows using models or maps with support for omitting zero-value fields.
  • Relational Table Associations - Manages associations between tables and automatically generates SQL JOIN clauses for related data retrieval.
  • Row-to-Struct Mapping - Scans database rows into structs, maps, or slices to convert raw SQL output into usable data.
  • SQL Dialect Adapters - Uses a consistent interface to interact with various SQL databases using a single codebase via dialect adapters.
  • Dialect-Specific SQL Generation - Implements translation of abstract query requests into SQL strings tailored to specific database versions and dialects.
  • SQL ORMs - Functions as a type-safe object relational mapper for Go, prioritizing SQL-first construction and result mapping.
  • SQL Query Builders - Provides a programmable interface for composing complex SQL statements across multiple dialects.
  • Struct-to-Table Mappings - Defines declarative mappings that determine how Go structs correspond to database table columns and behaviors.
  • Type-Safe Query Builders - Provides a programmable query builder that ensures compile-time type safety for database operations.
  • Parameterized Query Bindings - Implements parameterized query bindings to prevent SQL injection and ensure secure data handling.
  • Struct Tags - Uses Go struct tags to define the relationship between application models and database table columns.
  • Type-Safe Row Scanning - Scans database output into specific typed structures for flexible and safe data handling.
  • SQL Query Type Validation - Ensures SQL queries are constructed with static typing to provide compile-time safety across different dialects.
  • Bulk Data Operations - Executes high-performance batch inserts, updates, and deletes on large datasets.
  • Common Table Expressions - Implements support for recursive and non-recursive common table expressions using WITH clauses.
  • Custom SQL Execution - Allows the execution of manually crafted, parameterized SQL statements within the persistence layer.
  • Cursor-Based Pagination - Implements high-performance data retrieval using unique record pointers for memory-efficient iteration.
  • Batch Insert, Update, or Delete Operations - Synchronizes data by performing combined insert, update, or delete operations in a single SQL statement.
  • Schema Versioning - Implements versioned changes to database structures using standalone SQL files or Go functions.
  • Schema Migration Scripts - Supports the registration and application of ordered migration scripts to evolve database structures.
  • Application Type Mappings - Implements custom conversion logic to translate application-level objects into database-specific data formats via scanning interfaces.
  • CLI Schema Management - Includes a command-line interface for managing and applying versioned schema migrations.
  • Database Transaction Wrappers - Wraps standard SQL transaction objects to integrate the type-safe query builder with existing transaction logic.
  • Database Query Interceptors - Provides hooks to intercept and modify database queries for logging, monitoring, and auditing purposes.
  • Row Mapping Logic - Provides custom hooks to execute logic during the conversion of database rows into application objects.
  • Connection Pooling - Maintains a pool of idle connections and handles the automatic creation and release of database sessions.
  • JSON Column Support - Stores and queries semi-structured data using JSON and JSONB column types in compatible databases.
  • Multi-Database Connections - Orchestrates multiple independent database connection pools within a single application runtime.
  • Raw SQL Execution - Enables execution of raw, manually crafted SQL strings and scanning results directly into types.
  • Advanced SQL Construct Execution - Provides execution support for advanced SQL features like window functions and common table expressions.
  • Raw SQL Result Mapping - Maps the results of raw SQL executions into typed Go structures for flexible data retrieval.
  • Polymorphic Relations - Implements associations where a model can belong to multiple other models using a virtual type column.
  • SQL IN Clause Generation - The project isolates rows where a column value matches any element in a provided list or subquery.
  • SQL Performance Analysis - Provides instrumentation and hooks to monitor query execution and identify performance bottlenecks in production.
  • Subquery Execution - Supports embedding subqueries within other queries to use inner results as filters.
  • Table Joining Operations - Provides capabilities for combining rows from multiple tables using various SQL join types.
  • WHERE Clause Builders - Implements builders for constructing safe SQL WHERE clauses using placeholders and logical groupings.
  • CTE-Based Bulk Updates - Updates multiple records efficiently by utilizing common table expressions to apply changes in one operation.
  • Upsert Operations - Provides atomic operations to insert a new record or update an existing one based on key conflicts.
  • Database Schema Migrations - Includes a system for versioning and applying structural changes to database schemas to maintain environment consistency.
  • Database Migration Tools - Ships a tool for managing and applying versioned schema changes to SQL databases via scripts.
  • Query Lifecycle Hooks - Provides pre- and post-execution hooks to intercept the query lifecycle for logging, tracing, and auditing.
  • Distributed Tracing Instrumentation - Integrates standard distributed tracing instrumentation to monitor production database workloads.
  • Database Query Observability - Implements a query interception system for distributed tracing and logging of SQL performance.
  • Database Query Tracing - Captures SQL statements and connection details within distributed tracing contexts to monitor performance.
  • Query Execution Hooks - Implements a hook system to intercept and modify database query execution sequences for logging and processing.
  • Database Tools - SQL-first ORM for multiple databases.

Istoric stele

Graficul istoricului de stele pentru uptrace/bunGraficul istoricului de stele pentru uptrace/bun

Căutare AI

Explorează mai multe repository-uri excelente

Descrie ce ai nevoie în limbaj simplu — AI-ul sortează mii de proiecte open source selectate în funcție de relevanță.

Start searching with AI

Întrebări frecvente

Ce face uptrace/bun?

Bun este un ORM (Object Relational Mapper) type-safe pentru Go care prioritizează construcția interogărilor SQL-first și maparea rezultatelor. Funcționează ca un constructor de interogări SQL programabil, un manager de conexiuni la baza de date și un instrument pentru maparea tabelelor bazei de date la structuri Go.

Care sunt principalele funcționalități ale uptrace/bun?

Principalele funcționalități ale uptrace/bun sunt: Fluent Query Builders, SQL Query Building, Go Struct Mappings, Row-to-Struct Mappers, Connection and Transaction Management, Atomic Transactions, Database Relationship Mappings, Type-Safe Query Construction.

Care sunt câteva alternative open-source pentru uptrace/bun?

Alternativele open-source pentru uptrace/bun includ: simolus3/drift — Drift is a type-safe SQL persistence library and relational mapper that provides a structured way to map database… go-xorm/xorm — xorm is a relational mapper and object-relational mapping tool for Go. It translates Go structures into SQL queries… go-pg/pg — pg is a PostgreSQL object-relational mapper (ORM) for Go that maps Go structs to database tables and provides a fluent… dotnetcore/freesql — FreeSql is a .NET object-relational mapper and data access layer that translates object-oriented code into SQL for… linq2db/linq2db — linq2db is a type-safe object-relational mapper that translates LINQ expressions into optimized SQL queries for… catfan/medoo — Medoo is a lightweight PHP database abstraction layer and SQL query builder. It serves as a minimal database wrapper…

Alternative open-source pentru Bun

Proiecte open-source similare, clasificate după numărul de funcționalități comune cu Bun.
  • simolus3/driftAvatar simolus3

    simolus3/drift

    3,231Vezi pe GitHub↗

    Drift is a type-safe SQL persistence library and relational mapper that provides a structured way to map database tables to classes and execute SQL queries with build-time validation. It functions as a type-safe query builder and a wrapper for SQLite and PostgreSQL, eliminating manual result set parsing by binding query outputs to native objects. The project distinguishes itself through a build-time code generation system that produces type-safe APIs and validates raw SQL statements against database versions before execution. It features reactive query streaming, which transforms SQL queries

    Dartdartdart-build-systemflutter
    Vezi pe GitHub↗3,231
  • go-xorm/xormAvatar go-xorm

    go-xorm/xorm

    6,628Vezi pe GitHub↗

    xorm is a relational mapper and object-relational mapping tool for Go. It translates Go structures into SQL queries and maps database rows back into native objects, providing a multi-dialect database driver that supports MySQL, PostgreSQL, SQLite, Oracle, SQL Server, and TiDB. The project features a read-write splitting manager that routes modification requests to a primary database and read requests to replicas. It includes a database schema synchronizer to automatically align table structures and indexes with application data models, as well as a fluent SQL query builder for constructing co

    Gogolangmssqlmysql
    Vezi pe GitHub↗6,628
  • go-pg/pgAvatar go-pg

    go-pg/pg

    5,785Vezi pe GitHub↗

    pg is a PostgreSQL object-relational mapper (ORM) for Go that maps Go structs to database tables and provides a fluent query builder for constructing SQL statements programmatically. At its core, it automatically generates CREATE TABLE statements from Go struct definitions using struct tags and naming conventions, and builds queries through method chaining with placeholder-based parameter binding to prevent SQL injection. The library distinguishes itself through relation-aware join generation that automatically constructs JOIN clauses for has-one, has-many, many-to-many, and polymorphic assoc

    Go
    Vezi pe GitHub↗5,785
  • dotnetcore/freesqlAvatar dotnetcore

    dotnetcore/FreeSql

    4,388Vezi pe GitHub↗

    FreeSql is a .NET object-relational mapper and data access layer that translates object-oriented code into SQL for multiple relational database providers. It functions as a fluent SQL query builder and database schema synchronizer, allowing developers to align database table and index structures with entity class definitions. The framework is specifically optimized for .NET Native AOT to ensure reduced memory footprints and faster startup times. It includes a database traffic manager to distribute load through read-write splitting, dynamic table sharding, and tenant-based data isolation. Bro

    C#accessclickhousecodefirst
    Vezi pe GitHub↗4,388
Vezi toate cele 30 alternative pentru Bun→