24 free alternatives to sql2struct
A developer-friendly tool for transfering SQL to Go struct.
sql2struct is free itself (its own site, checked November 2026). Below are 24 products that do a similar job and cost nothing to start: 21 free outright and 3 with a free plan and paid upgrades. Each price was read from the product's own site. They are ranked by how close each is in meaning, then by launch-day votes.
- 1

A Go SQL query builder and struct mapper.
2016 · github.com · price checked November 2026
- 2

LRU cache using go generics.
2022 · github.com · price checked November 2026
- 3

go generate based graphql server library.
2018 · github.com · price checked November 2026
- 4
SqlkitFree▲65SQL builder and powerful database toolkit for Golang
2019 · github.com · price checked November 2026
- 5
TablestructFree▲5tablestruct creates mappings between Go structs and database tables.
2014 · github.com · price checked November 2026
- 6

A SQL database implemented purely in TypeScript type annotations.
2020 · github.com · price checked November 2026
- 7
FSQLFree▲341Search for files using a fun query language.
2017 · github.com · price checked November 2026
- 8
A Database Written in GolangFree▲277Recently created a minimal persistent relational database in Go. Main focus was on implementing & understanding working the of database, storage management & transaction handling. Use of B+ Tree for storage engine(support for indexing), managing a Free List (for reusing nodes), Support for transactions, Concurrent Reads. Still have many things to add & fix like query processing being one of the main & fixing some bugs Repo link - https://github.com/Sahilb315/AtomixDB Would love to hear your thoughts
2025 · github.com · price checked November 2026
- 9

dgw generates Golang struct, and simple Table/Row Data Gateway functions from PostgreSQL table metadata
2016 · github.com · price checked November 2026
- 10
Chat2DB LocalFree plan, one-time $9.90▲406After 6 months of working with 300+ early adopters, we've fundamentally reimagined how developers interact with databases. The core insight: Existing SQL tools treat AI as a plugin, but what if we rebuild the entire workflow around natural language? *Key technical changes*: • *Context-aware SQL Copilot* (Ctrl+K): Implements chain-of-thought prompting that self-debugs through query execution plans • *Multi-model routing*: Dynamically routes prompts to specialized models (Claude 3.7 Sonnet for schema analysis, GPT-4 for ambiguous requests) • *Zero-shot schema understanding*: Skips manual…
2024 · chat2db.ai · price checked November 2026
- 11
learndb-pyFree▲371This is a relational database management system written entirely in Python that functions similarly to SQLite.
2023 · github.com · price checked November 2026
- 12

LBADD: An experimental, distributed SQL database.
2019 · github.com · price checked November 2026
- 13
DbdotFree▲119Generate DOT description for postgres db schema.
2019 · github.com · price checked November 2026
- 14

- 15

Using SQL's Turing Completeness to Build Tetris.
2024 · github.com · price checked November 2026
- 16

Serialization code generator for QUICK struct content comparison
2019 · github.com · price checked November 2026
- 17
OctoSQLFree▲310OctoSQL is a query tool that allows you to join, analyse and transform data from multiple databases and file formats using SQL.
2019 · github.com · price checked November 2026
- 18
sqlTranslateFree plan, paid from $14.99/mo▲94sql, data, analytics, database, query, syntax, translation
2023 · askai.free · price checked November 2026
- 19

ChartDB is a tool that generates entity-relationship diagrams from database schemas using a single query, designed for developers and data analysts.
2024 · github.com · price checked November 2026
- 20
SQL Database Schema GeneratorFree▲129Production-ready boilerplate for Claude Code. CLAUDE.md templates, MCP configs, hooks, workflows, and everything you need to build faster with Claude Code.
2024 · supalaunch.com · price checked November 2026
- 21

Golang SQLite without cgo.
2023 · github.com · price checked November 2026
- 22
StructFree plan, paid from $200/mo▲329Struct is an AI agent that analyzes engineering alerts by examining logs, metrics, traces, and code to identify root causes.
Mar 2026 · struct.ai · price checked November 2026
- 23
GoSQLFree▲81GoSQL is a minimal SQL query engine written in Go with just 319 lines of code.
2024 · github.com · price checked November 2026
- 24

Free tools by topic
All alternatives to sql2struct, paid too →About sql2struct →
Free means the product’s own site says it is free or offers a free plan, as read on the date shown. Plans change; check the site before you rely on one.