Sql Ddl to Schema
Contents
A schema generator written in Rust that converts various dialects of SQL table create statements.
GitHub Repo
Overview
I’ve worked on several systems in the past where existing SQL tables were used to generate JSON and YAML schemas. Using tools like MySQL Workbench or DBeaver, it’s trivial to generate a CREATE statement for an existing table. This tool hopes to ease the process of converting from these statements to a schema that can be used for both OpenAPI documents and user input validation.