# Xsql – Convert SQL Schemas Across MySQL, Postgres, and SQLi…

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, a…

- **Page:** https://magpie.gallery/i/xsql-convert-sql-schemas-across-mysql-postgres-and-jbbf
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Runs on:** windows, macos, linux
- **Tags:** sql, schema, converter, rust, cli

## Source

Web · dawitworku: Xsql – Convert SQL Schemas Across MySQL, Postgres, and SQLite

- **Original:** https://news.ycombinator.com/item?id=46289341

> 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. https://github.com/Dawaman43/xsql

## GitHub projects

- https://github.com/Dawaman43/xsql

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
