Skip to content

Quick & Dirty cli to process mysql dumps

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Scoopit/mysql2databend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mysql2databend

Quick & Dirtyl CLI to process mysql dumps and clean them so they can be ingested in Databend using a regular MySQL client.

Features:

  • read from stdin, output to stdout
  • table filtering
  • database filtering
  • rename table fields to lower case (databend seems to struggle with fields name like registrationDate)
  • modify CREATE TABLE statements (remove collation, transforms DEFAULT NULL to NULL)
  • filter out anything except USE, CREATE TABLE, CREATE DATABASE and INSERT INTO
  • optionnally filter out USE and CREATE TABLE statements
  • can output directly to databend http query api (not tested)

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Quick & Dirty cli to process mysql dumps

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages