Skip to content

This performant tool converts a mysqldump file to a JSON representation of a table to make it easy to import a SQL dump into Elastic indexes.

License

Notifications You must be signed in to change notification settings

MartinPaulEve/sqldumptojson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sqldumptojson: A Converter

This performant tool converts a mysqldump file to a JSON representation of a table to make it easy to import a SQL dump into Elastic indexes.

license activity

Installation

Although this is a Python application, it uses a Rust library. You may need to install rustup.

    pip install -r ./requirements.txt

Usage

 Usage: sqldumptojson.py [OPTIONS] FILE TABLE [OUTPUT_DIRECTORY]                                                                                                                                                                        
                                                                                                                                                                                                                                        
 Convert a SQL dump to JSON files                                                                                                                                                                                                       
                                                                                                                                                                                                                                        
╭─ Arguments ────────────────────────────────────────────────────────────────────────────────────────────────╮
│ *    file                  TEXT                The input SQL dump file to parse [default: None] [required] │
│ *    table                 TEXT                The SQL table file to recreate [default: None] [required]   │
│      output_directory      [OUTPUT_DIRECTORY]  The output directory for the JSON files [default: output]   │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

© Martin Paul Eve 2024

About

This performant tool converts a mysqldump file to a JSON representation of a table to make it easy to import a SQL dump into Elastic indexes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages