Squirrel

Fluent SQL generation for golang (by Masterminds)

Squirrel Alternatives

Similar projects and alternatives to Squirrel

  1. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  2. sqlc

    Generate type-safe code from SQL

  3. Gin

    166 Squirrel VS Gin

    Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.

  4. ent

    146 Squirrel VS ent

    An entity framework for Go

  5. chi

    106 Squirrel VS chi

    lightweight, idiomatic and composable router for building Go HTTP services

  6. mux

    90 Squirrel VS mux

    Discontinued A powerful HTTP router and URL matcher for building Go web servers with 🦍

  7. GORM

    83 Squirrel VS GORM

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

  8. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  9. sqlx

    73 Squirrel VS sqlx

    general purpose extensions to golang's database/sql

  10. migrate

    Database migrations. CLI and Golang library.

  11. pgx

    73 Squirrel VS pgx

    PostgreSQL driver and toolkit for Go

  12. zap

    54 Squirrel VS zap

    Blazing fast, structured, leveled logging in Go.

  13. Buffalo

    Discontinued Rapid Web Development w/ Go

  14. dockertest

    Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.

  15. SQLBoiler

    Generate a Go ORM tailored to your database schema.

  16. bob

    SQL query builder and ORM/Factory generator for Go with support for PostgreSQL, MySQL and SQLite (by stephenafamo)

  17. goqu

    24 Squirrel VS goqu

    SQL builder and query library for golang

  18. jet

    29 Squirrel VS jet

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

  19. goose

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

  20. bun

    18 Squirrel VS bun

    SQL-first Golang ORM (by uptrace)

  21. bqb

    BQB is a lightweight and easy to use query builder that works with sqlite, mysql, mariadb, postgres, and others.

  22. SaaSHub

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

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

Squirrel discussion

Log in or Post with

Squirrel reviews and mentions

Posts with mentions or reviews of Squirrel. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-03-21.
  • DumbQL: A Simplified Query Language for Go Applications
    2 projects | dev.to | 21 Mar 2025
    DumbQL works with squirrel or directly with SQL drivers:
  • Maintainable SQL Query Building with Golang
    2 projects | dev.to | 15 Aug 2024
    Before we built tqla, we mainly used Squirrel for our SQL query building logic—and we highly recommend it. We still use Squirrel in some areas but have gradually started replacing and implementing new query building logic with tqla. We have found many instances where tqla has improved our ability to maintain our code and fix problems we ran into when using other statement builders.
  • Building RESTful API with Hexagonal Architecture in Go
    21 projects | dev.to | 27 Sep 2023
    It uses Gin as the HTTP framework and PostgreSQL as the database with pgx as the driver and Squirrel as the query builder. It also utilizes Redis as the caching layer with go-redis as the client.
  • Working with postgres in GO.
    2 projects | /r/golang | 3 Jul 2023
    I would add Squirrel to PGX https://github.com/Masterminds/squirrel
  • how to avoid writing dreadful SQL statements
    4 projects | /r/golang | 23 May 2023
    I have written about this before, and my thoughts always settle on using a query builder. I've built a simple one, which works for what I need, but there are more feature complete ones out there such as squirrel. I've also written about how you can implement a simple CRUD library for database interactions using generics and query building to have that nice middle-ground between an ORM and query building.
  • How do I enable filters for the user without writing redundant SQL?
    1 project | /r/golang | 15 May 2023
    Now for the dynamic queries you have to be really careful to prevent SQL injections, there are bunch of different ways to do it but I typically recommend using a package such as squirrel that lets you do this easily, you use it to generate the plain SQL you need (and then use sqlx, database/sql, pgx or whatever you prefer) or use it directly querying the database directly.
  • Best sqlc alternative for dynamic queries?
    8 projects | /r/golang | 15 May 2023
    Here are 2 options for you * https://github.com/huandu/go-sqlbuilder * https://github.com/Masterminds/squirrel
  • Golang RESTAPI boilerplate repository
    7 projects | /r/golang | 2 May 2023
    https://www.reddit.com/r/golang/comments/vq98ud/what_sql_library_are_you_using/ Jet havn't used but is one that looks promising! Otherwise I'm one of the purests, db/sql and https://github.com/Masterminds/squirrel
  • Why is Raw SQL preferred over ORM in go?
    7 projects | /r/golang | 15 Apr 2023
    I think he means an sql builder like squirrel. This allows dynamic queries, but more important you can reuse function that build a where clause so you can get a count and query with that.
  • Does Go, has something similar to Laravel eloquent (ORM) ?
    7 projects | /r/golang | 11 Apr 2023
    I'd rather suggest the use of tools more aligned with the core concepts of the language such as sqlx, which is an extension of the database/sql standard library. It allows you to use models/structs to map your tables but you have more control over the SQL statements you use to perform queries and the like. You can combine sqlx with Squirrel to build queries from composable parts.
  • A note from our sponsor - SaaSHub
    www.saashub.com | 23 Apr 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic Squirrel repo stats
54
7,311
2.4
12 months ago

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

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