-
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.
-
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.
-
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).
-
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