Looking for: library to turn SQL (or abstracted) to code & execute against custom backend (slice of structs)

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

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
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • chai

    Modern embedded SQL database (by chaisql)

    Use sth like https://github.com/genjidb/genji, which is an embedded DB with SQL

  • 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
  • elseql-go

    You know, for Query

    A long time ago I wrote this https://github.com/raff/elseql-go/blob/master/parser.go, that implements what you are describing, to convert SQL to ElasticSearch queries (JSON). It's not a full SQL parser but maybe it's enough for you.

  • csvq

    SQL-like query language for csv

    If you are looking to query nondb data with sql statements then you may want to check something like https://github.com/mithrandie/csvq (SQL for csv).

  • fexpr

    Simple filter query language parser so that you can build SQL, Elasticsearch, etc. queries safely from user input.

    If you are looking for a generic filter/query parser, I've recently come across this one - https://github.com/ganigeorgiev/fexpr (its not sql, but its syntax looks similar).

  • CQEngine

    Ultra-fast SQL-like queries on Java collections

    It seems that you're looking for something like https://github.com/npgall/cqengine but unfortunately I'm not aware of any equivalent in Go. LINQ is similar. I'd probably try searching for "LINQ in go" or something like that.

  • 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 more popular project.

Suggest a related project

Related posts

  • Does this project structure make sense?

    6 projects | /r/golang | 5 Apr 2023
  • How to handle migrations in Golang

    5 projects | dev.to | 11 Jun 2024
  • Using migrations with Golang

    5 projects | dev.to | 17 Apr 2024
  • Looking for elegant code bases written in GoLang

    6 projects | /r/golang | 9 Dec 2023
  • API completa em Golang - Parte 1

    8 projects | dev.to | 1 Dec 2023