Best sqlc alternative for dynamic queries?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

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

    Fluent SQL generation for golang

    Here are 2 options for you * https://github.com/huandu/go-sqlbuilder * https://github.com/Masterminds/squirrel

  • SaaSHub

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

    SaaSHub logo
  • sqlc

    sqlc: A simple dynamic query builer for [kyleconroy/sqlc](https://github.com/kyleconroy/sqlc) (by yiplee)

    Check this out: https://github.com/yiplee/sqlc

  • goqu

    SQL builder and query library for golang

    I use goqu (https://github.com/doug-martin/goqu)

  • sqlx

    general purpose extensions to golang's database/sql

    sqlx + squirrel ftw

  • go-sqlbuilder

    A flexible and powerful SQL string builder library plus a zero-config ORM.

    Here are 2 options for you * https://github.com/huandu/go-sqlbuilder * https://github.com/Masterminds/squirrel

  • xo

    Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server (by xo)

    I use xo https://github.com/xo/xo . It generates CRUD queries by default so i don't have to write basic queries and it has option to write complex queries like sqlx. Only issue is it is not well documented.

  • go-sqlla

    Type safe, reflect free, generative SQL Builder + ORM-like methods

    I wrote sqlla and use in production. If it looks good to you, let’s use it.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Sqlc: Compile SQL to type-safe code

    15 projects | news.ycombinator.com | 8 Sep 2024
  • 👻Top 8 Free, Open Source SQL Clients🔥

    8 projects | dev.to | 4 Sep 2023
  • Open-sourcing SQX, a way to build flexible database models in Go

    5 projects | news.ycombinator.com | 2 Sep 2023
  • No/Low Code SQLite Front End GUI/Forms

    7 projects | /r/sqlite | 1 Feb 2023
  • I Migrated from a Postgres Cluster to Distributed SQLite with LiteFS

    4 projects | news.ycombinator.com | 5 Jan 2023

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