sqlx

general purpose extensions to golang's database/sql (by jmoiron)

Sqlx Alternatives

Similar projects and alternatives to sqlx

  1. sqlc

    193 sqlx VS sqlc

    Generate type-safe code from SQL

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. Gin

    179 sqlx VS Gin

    Gin is a high-performance HTTP web framework written in Go. It provides a Martini-like API but with significantly better performance—up to 40 times faster—thanks to httprouter. Gin is designed for building REST APIs, web applications, and microservices.

  4. cobra

    151 sqlx VS cobra

    A Commander for modern Go CLI interactions

  5. ent

    147 sqlx VS ent

    An entity framework for Go

  6. Echo

    138 sqlx VS Echo

    High performance, minimalist Go web framework

  7. chi

    116 sqlx VS chi

    lightweight, idiomatic and composable router for building Go HTTP services

  8. GORM

    94 sqlx VS GORM

    The fantastic ORM library for Golang, aims to be developer friendly

  9. migrate

    89 sqlx VS migrate

    Database migrations. CLI and Golang library.

  10. pgx

    78 sqlx VS pgx

    PostgreSQL driver and toolkit for Go

  11. Testify

    82 sqlx VS Testify

    A toolkit with common assertions and mocks that plays nicely with the standard library

  12. Squirrel

    54 sqlx VS Squirrel

    Fluent SQL generation for golang

  13. SQLBoiler

    Generate a Go ORM tailored to your database schema.

  14. gqlgen

    46 sqlx VS gqlgen

    go generate based graphql server library

  15. logrus

    46 sqlx VS logrus

    Structured, pluggable logging for Go.

  16. zerolog

    45 sqlx VS zerolog

    Zero Allocation JSON Logger

  17. pq

    31 sqlx VS pq

    Go PostgreSQL driver for database/sql

  18. goose

    33 sqlx VS goose

    A database migration tool. Supports SQL migrations and Go functions. (by pressly)

  19. jet

    30 sqlx VS jet

    Type safe SQL builder with code generation and automatic query result data mapping

  20. goqu

    24 sqlx VS goqu

    SQL builder and query library for golang

  21. bun

    18 sqlx VS bun

    SQL-first Golang ORM (by uptrace)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better sqlx alternative or higher similarity.

sqlx discussion

Log in or Post with

sqlx reviews and mentions

Posts with mentions or reviews of sqlx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-09-22.
  • MERN Stack Alternatives in Golang
    15 projects | dev.to | 22 Sep 2025
    sqlx: Extensions to Go's standard database/sql library for easier database interactions.
  • Does OLAP Need an ORM
    4 projects | news.ycombinator.com | 17 Aug 2025
    > The sane middle ground is libraries that give you nicer ergonomics around SQL without hiding it (like Golangs sqlx https://github.com/jmoiron/sqlx). Engineers should be writing SQL, period.

    The blog suggests that an ORM for OLAP would do exactly that

  • 15 Go Packages Worth Your Time
    15 projects | dev.to | 26 Jun 2025
    sqlx builds on Go’s database/sql and adds useful features like named queries, struct mapping, and scanning slices.
  • Best Database Migration Tools for Golang
    6 projects | dev.to | 7 Jun 2025
    SQLx isn’t a migration tool per se, but it’s a powerful library for working with SQL in Go. You can build a custom migration system using SQLx to execute migration scripts, giving you ultimate flexibility. This approach is best for teams who want full control over their migration logic.
  • Structuring a Go Project with Clean Architecture — A Practical Example
    3 projects | dev.to | 25 May 2025
    4. Infrastructure Layer — internal/infra/ This layer implements database logic using go-jet and sqlx. It satisfies the interfaces defined in the domain layer.
  • 5 Golang Libraries You’ll Wish You Knew Sooner
    7 projects | dev.to | 18 May 2025
    ### When to Use Viper Use Viper for **applications with complex configurations**, like microservices or CLI tools. For simple scripts, environment variables alone might suffice. ## Comparing the Libraries Here’s a quick table to help you decide which library fits your needs. | Library | Use Case | Key Feature | Performance | Learning Curve | |---------|----------|-------------|-------------|----------------| | Gin | Web APIs | Routing | High | Low | | Testify | Testing | Assertions | N/A | Low | | Zap | Logging | Structured | High | Medium | | GORM | Databases| ORM | Medium | Medium | | Viper | Config | Flexibility | N/A | Low | ## Tips for Getting Started - **Start Small**: Try one library at a time in a side project. - **Read Docs**: Each library has excellent documentation (linked above). - **Join Communities**: Check GitHub issues or Go forums for tips. - **Experiment**: Use the example code as a base and tweak it. ## What’s Next? These libraries are just the tip of the iceberg. Once you’re comfortable, explore others like [Cobra](https://github.com/spf13/cobra) for CLI tools or [sqlx](https://github.com/jmoiron/sqlx) for lightweight database access. The Go ecosystem is vast, and combining these tools can help you build robust, scalable applications. Pick one library, try the example, and see how it fits your workflow. Happy coding!
  • Goravel: A Go framework inspired by Laravel
    9 projects | news.ycombinator.com | 9 Mar 2025
  • Building high-performance websites using htmx and Go
    2 projects | dev.to | 19 Feb 2025
    Go offers quick database interactions that result in fast performance. It provides both native database drivers and sqlx for simplified querying. As you have seen in this article, you have used native database driver, SQL just by importing a package straight from GitHub. Similarly, you can use sqlx to have reduced boilerplate and more built-in features like struct mapping.
  • Migrating Next.js App to GO + Templ & HTMX
    5 projects | dev.to | 5 May 2024
    sqlx for the database driver.
  • Python: Just Write SQL
    21 projects | news.ycombinator.com | 14 Aug 2023
    We've always used https://github.com/jmoiron/sqlx which is just the standard package + mapping to/from structs.
  • A note from our sponsor - SaaSHub
    www.saashub.com | 7 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic sqlx repo stats
80
17,616
3.3
almost 2 years ago

jmoiron/sqlx is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of sqlx is Go.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that Go is
the 4th most popular programming language
based on number of references?