awesome-repositories.com
Blog
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
ProiectDespreCum realizăm clasamentulPresăServer MCP
LegalConfidențialitateTermeni
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
jmoiron avatar

jmoiron/sqlx

0
View on GitHub↗
17,651 stele·1,111 fork-uri·Go·MIT·7 vizualizărijmoiron.github.io/sqlx↗

Sqlx

sqlx is a set of extensions for the Go database/sql package that reduces boilerplate code by automating the mapping of database query results directly into structs and slices. It provides a wrapper around standard database types to eliminate manual row scanning and repetitive error handling.

The project distinguishes itself through named parameter binding and query placeholder rebinding, which translate generic markers into driver-specific symbols. It also enables dynamic SQL execution by allowing the application to read and execute SQL statements directly from the filesystem.

The library covers a broad range of database integration capabilities, including reflection-based struct mapping, dynamic list expansion for search queries, and generic map scanning for unknown schemas. It further supports custom type conversion via standard scanner and valuer interfaces.

Features

  • Row-to-Struct Mappers - Uses Go reflection to automatically match database column names to struct fields via custom tags or naming conventions.
  • Database Boilerplate Reductions - Reduces repetitive code for error handling and row iteration when working with the standard database/sql package.
  • Column Mappings - Offers a customizable naming strategy for matching database column names to struct fields.
  • Query Parameter Filters - Converts named SQL parameters into driver-specific placeholders to simplify variable binding.
  • Database Query Execution - Binds query parameters using named placeholders derived from map keys or struct fields.
  • Named Parameter Bindings - Resolves named placeholders by mapping keys from maps or struct fields to positional arguments required by the driver.
  • Query Parameterization - Handles dynamic list expansion and named parameters to simplify variable binding across different database drivers.
  • Query Result Fetching - Executes queries and scans output directly into a single destination or slice to reduce manual iteration.
  • Query Translators - Translates generic parameter markers into driver-specific symbols to ensure SQL compatibility across different database engines.
  • Database API Extensions - Wraps standard database/sql types to provide shorthand methods for scanning rows into slices and structs.
  • Connection Establishment - Implements a streamlined process to establish a database connection and immediately verify it via a ping.
  • Data Type Mappings - Supports scanner and valuer interfaces to bridge custom application data types with standard database drivers.
  • Database Connectivity - Provides mechanisms to open database connections and verify connectivity using context for timeout and cancellation control.
  • Database Error Handling - Provides shorthand methods that reduce repetitive boilerplate code when checking for common database errors.
  • Dynamic Placeholder Expansion - Converts sets of values into comma-separated placeholders for dynamic search queries.
  • Generic Row Scanning - Returns row data as a generic map of column names to values when the database schema is unknown.
  • Prepared Statements - Creates prepared statements using a specific context to manage the preparation phase of database operations.
  • Named - Replaces named placeholders in SQL statements with struct or map fields and executes within a provided context.
  • Placeholder Rebinders - Provides a utility to translate generic parameter markers into driver-specific symbols to ensure SQL compatibility across different database engines.
  • Externalized SQL Files - Enables the execution of SQL statements read directly from external files on the filesystem.
  • SQL Script Execution - Provides the ability to read SQL statements from the filesystem and execute them as a transaction or batch.
  • Database Tools - Extension for standard database/sql package.
  • Databases and Storage - Extensions for the standard database/sql library.
  • Persistence Frameworks - Extension library for Go's standard database/sql package.
  • Developer Utilities - Extensions for the standard database/sql package.
  • General Utilities - Extensions for the standard database/sql package.
  • General Utility Libraries - Extensions for the standard database/sql package.

Istoric stele

Graficul istoricului de stele pentru jmoiron/sqlxGraficul istoricului de stele pentru jmoiron/sqlx

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

Alternative open-source pentru Sqlx

Proiecte open-source similare, clasificate după numărul de funcționalități comune cu Sqlx.
  • lib/pqAvatar lib

    lib/pq

    9,903Vezi pe GitHub↗

    pq is a PostgreSQL driver for Go that implements the standard database/sql interface. It serves as a connection library and protocol implementation that translates application data types into the binary and text formats required by PostgreSQL. The project provides specialized utilities for high-performance data ingestion using bulk data loading and a dedicated bulk data importer. It also features an implementation for listening to asynchronous server notifications and provides tools for connection load balancing across multiple hosts and ports. The driver covers a broad surface of database i

    Go
    Vezi pe GitHub↗9,903
  • dapperlib/dapperAvatar DapperLib

    DapperLib/Dapper

    18,331Vezi pe GitHub↗

    Dapper is a lightweight object-relational mapper for .NET that functions as a high-performance data access library. It operates by extending standard database connection interfaces, allowing developers to execute raw SQL queries while automating the mapping of database results to strongly-typed objects. The library distinguishes itself through its use of runtime code generation, which creates high-performance instructions to map database rows to object properties with minimal overhead. It provides flexible data retrieval options, supporting both memory-buffered loading for speed and row-by-ro

    C#ado-netdappersql
    Vezi pe GitHub↗18,331
  • brianc/node-postgresAvatar brianc

    brianc/node-postgres

    13,155Vezi pe GitHub↗

    This project is a Node.js client for PostgreSQL databases, providing a protocol parser to translate raw binary streams into JavaScript objects. It serves as a driver for executing queries, managing data, and integrating Node.js applications with PostgreSQL backends. The library includes a connection pool manager to reduce network overhead by caching reusable connections and a result streamer that uses cursors to retrieve large datasets incrementally. It also functions as an event listener for subscribing to asynchronous server-side notifications to trigger real-time application events. Broad

    JavaScriptlibpqnode-postgrespostgres
    Vezi pe GitHub↗13,155
  • redis/go-redisAvatar redis

    redis/go-redis

    22,159Vezi pe GitHub↗

    This project is a feature-rich Go client library designed for interacting with Redis. It serves as a comprehensive interface for managing remote data stores, enabling developers to execute standard database commands, handle complex data structures, and perform asynchronous operations within Go applications. The library distinguishes itself through its support for advanced Redis capabilities, including connection pooling, pipelining, and transactional integrity. It provides specialized primitives for managing distributed clusters, including automated topology updates and request routing to sha

    Gogogolangredis
    Vezi pe GitHub↗22,159
Vezi toate cele 30 alternative pentru Sqlx→

Întrebări frecvente

Ce face jmoiron/sqlx?

sqlx is a set of extensions for the Go database/sql package that reduces boilerplate code by automating the mapping of database query results directly into structs and slices. It provides a wrapper around standard database types to eliminate manual row scanning and repetitive error handling.

Care sunt principalele funcționalități ale jmoiron/sqlx?

Principalele funcționalități ale jmoiron/sqlx sunt: Row-to-Struct Mappers, Database Boilerplate Reductions, Column Mappings, Query Parameter Filters, Database Query Execution, Named Parameter Bindings, Query Parameterization, Query Result Fetching.

Care sunt câteva alternative open-source pentru jmoiron/sqlx?

Alternativele open-source pentru jmoiron/sqlx includ: lib/pq — pq is a PostgreSQL driver for Go that implements the standard database/sql interface. It serves as a connection… dapperlib/dapper — Dapper is a lightweight object-relational mapper for .NET that functions as a high-performance data access library. It… brianc/node-postgres — This project is a Node.js client for PostgreSQL databases, providing a protocol parser to translate raw binary streams… redis/go-redis — This project is a feature-rich Go client library designed for interacting with Redis. It serves as a comprehensive… ccgus/fmdb — fmdb is an object-oriented SQLite database library and persistence layer for native macOS and iOS environments. It… doctrine/dbal — This project is a SQL database abstraction layer that provides a consistent object-oriented interface for interacting…