Nicheloom

Market intelligence for builders — see what's gaining traction before it's crowded.

Xsql

Convert SQL Schemas Across MySQL, Postgres, and SQLite

Details

External ID
46289341
Source
HN
Company
—
Product
Xsql
Website domain
github.com
Launched
Dec. 16, 2025
Cohort
—
Upvotes
11
Upvotes percentile
0.5286259541984732
Tags
—
Fetched at
Sept. 7, 2026, 9:25 p.m.
Updated at
Sept. 7, 2026, 9:25 p.m.

Description

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.

Enrichment

Theme
database infrastructure and developer tools
Vertical
Horizontal
Function
Dev tools
Audience
Developer
AI stance
Not AI
Project type
Commercial product
Normalized one-liner
convert sql schemas between databases
Manually corrected
False

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 — 161 launches clear the similarity bar, closest 8 shown.

Attention rank: #80 of 162 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).

Launched 48 days after the earliest competitor.

Other launches for this product

Same idea, different domain

Nobody's really built a dev tools tool for Sales yet.