Git Product home page Git Product logo

dumpling's Introduction

πŸ₯Ÿ Dumpling

Build Status codecov API Docs Go Report Card

Dumpling is a tool and a Go library for creating SQL dump from a MySQL-compatible database. It is intended to replace mysqldump and mydumper when targeting TiDB.

You may read the design document, English user guide and δΈ­ζ–‡δ½Ώη”¨ζ‰‹ε†Œ for details.

Features

Dumpling is currently in early development stage, and most features are incomplete. Contributions are welcomed!

  • SQL dump is split into multiple files (like mydumper) for easy management.
  • Export multiple tables in parallel to speed up execution.
  • Multiple output formats: SQL, CSV, ...
  • Write to cloud storage (S3, GCS) natively
  • Advanced table filtering

Building

  1. Install Go 1.13 or above
  2. Run make build to compile. The output is in bin/dumpling.
  3. Run make test to run the unit tests.
  4. Run make integration_test to run integration tests. For integration test:
  • The following executables must be copied or generated or linked into these locations, sync_diff_inspector can be downloaded from tidb-enterprise-tools-latest-linux-amd64, tidb-server can be downloaded from tidb-master-linux-amd64, and tidb-lightning can be downloaded from tidb-toolkit-latest-linux-amd64:
    • bin/sync_diff_inspector
    • bin/tidb-server
    • bin/tidb-lightning
  • The following programs must be installed:
    • mysql (the CLI client)
  • There must be a local mysql server listening on 127.0.0.1:3306, and an active user with no password that can be connected through this TCP address.

License

Dumpling is under the Apache 2.0 license. See the LICENSE file for details.

dumpling's People

Contributors

lichunzhu avatar tangenta avatar kennytm avatar 3pointer avatar andrewdi avatar ianthereal avatar yujuncen avatar siddontang avatar tiancaiamao avatar zhangjinpeng87 avatar zhongzc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.