/sqlex

Extract sql from a dump (mysql)

Primary LanguageRust

Sqlex

When you really wanna have a fast extraction from the tables in your database from your database dump... sqlex will help ya out.

Quickstart

Create a sql dump from postgres or mysql and then run the following command:

sqlex --sql-file ./schema_dump.sql

This will output a json file with the schema of the database and run sqlex.

Installation

Homebrew

brew install sqlex

Or via homebrew tap:

brew tap auser/homebrew-tap
brew install sqlex

Cargo

cargo install sqlex

Example

sqlex --sql-file ./schema_dump.sql