Xsql
Convert SQL Schemas Across MySQL, Postgres, and SQLite
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
xsql is an open-source Rust CLI + TUI for converting SQL schema DDL between database dialects.Instead of text-based rewrites, it parses CREATE TABLE statements into a small intermediate representation (IR), then emits equivalent SQL for the target dialect. This makes conversions safer, testable, and easier to extend.It supports single-file and recursive folder conversion, includes a no-typing interactive TUI, and recently added an experimental IR v2 with constraint support and JSON output for CI and tooling use.Feedback is very welcome, especially on schema portability and IR design.
HN · launched Dec 16, 2025 · 11 upvotes (top 47%) · 0 views
Niche: data and system migration tools · 62 launches, 6 in the last 7 days · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- Not AI
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 62 launches in data and system migration tools →
Could you build this?
Partial While basic SQL string manipulation is simple, writing a robust AST parser, intermediate representation (IR), and dialect-specific transpiler in Rust requires solid compiler construction knowledge.
What it would actually take: The tool is written in Rust using a parser generator or sqlparser-rs to generate an abstract syntax tree for SQL DDL. It maps AST nodes into a unified Intermediate Representation (IR) handling differences in types (e.g., Postgres UUID/SERIAL vs MySQL AUTO_INCREMENT vs SQLite affinity) and constraint syntax, then renders target SQL with a Ratatui TUI. Compiler/transpiler fundamentals and database dialect edge-case knowledge are required.
Discussion
1 comment analyzed.
Feature requests: Data migration support beyond schema DDL, Feedback on IR v2 design and constraints handling
Competitors
Other products that read as similar to this one : 321 launches clear the similarity bar, closest 8 shown.
Attention rank: #149 of 322 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 48 days after the earliest competitor.
- dbdiff · ph · 2026-10-11 · 1 upvotes · similarity 0.61
- SchemaForge · ph · 2026-10-06 · 1 upvotes · similarity 0.57
- BarSQL · ph · 2026-11-09 · 1 upvotes · similarity 0.50
- 0Sql · hn · 2026-10-06 · 7 upvotes · similarity 0.50
- I'm not a PostgREST fan this is why I'm building an alternative · hn · 2026-09-09 · 5 upvotes · similarity 0.50
- Dbctx · hn · 2026-08-11 · 5 upvotes · similarity 0.50
- rdsql · ph · 2026-10-06 · 3 upvotes · similarity 0.49
- ByeSQL · ph · 2026-11-09 · 2 upvotes · similarity 0.49
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.