Giter Club home page Giter Club logo

migmig's Introduction

migmig

Migmig is a tool for migrating records from a database to another one.

It simply selects records from origin databse and inserts them into the destination database.

My first goal is that migmig support sql databases.

Config

  • Origin database connection
  • Destination database connection
  • Bulk or normal
  • Origin table name
  • Destination table name

The table name in the destination database is optional. If it is passed by the user, a table with that name is created but if it had empty value, the name will be the same as table name in the origin database.

Commands

  • migrate
  • connection_test

Deployment option

It has deployments using Helm and it can be easily deployed to your Kubernetes environment using the command below in the root directory:

helm install migmig .deploy/helm

Upcoming features

Test connection

This is a command that checks the connection to databases.

Chunkenized migrating

If the process of migration becaome interrupted the tool must do something.

Using limit & offset I should be able to complete the migration in multiple steps.

Architecture

It has an interface with two methods:

type DatabaseAgent interface {
  Read() error
  BulkRead() error
  Insert() error
  BulkInsert() error 
}

This interface can be implemented for any sql databse. The first goal is MariaDB.

migmig's People

Contributors

parsaeisa avatar

Watchers

 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.