GithubHelp home page GithubHelp logo

kuronekowen / dbsync Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ctigeek/dbsync

0.0 2.0 0.0 320 KB

Near real-time replication of data from MySql to SqlServer.

License: MIT License

PowerShell 4.91% C# 95.09%

dbsync's Introduction

WARNING: this code has some known issues if the column names in the two tables don't match exactly.

Please read the wiki:

https://github.com/ctigeek/DbSync/wiki

DbSync

This will copy data from a MySql database to SqlServer database in near real-time.

  • It uses triggers to determine if a row has changed, and the service copies that row to the destination database.
  • Runs from the command line, or as a windows service.
  • Supports moving data from multiple databases to multiple databases.
  • Supports doing an initial bulk-copy of the data before syncing occurs.
  • Optionally writes to performance counters so you can track progress.
  • Writes data to destination db in a transaction to ensure consistency.

Limitations:

  • Currently there's a few things hard coded that only allow data to flow from a MySql db to SqlServer db. It wouldn't take much coding to convert it to support other databases.
  • Doesn't support bi-directional data flow; one direction only. (Note: If you try to set up two instances of this to do both directions, it'll start an infinite loop of the same data moving back & forth.)
  • You have to create the triggers yourself. I'll include samples later, but they're not difficult. Ideally I'd like to include functionality to generate the triggers.
  • Doesn't self-recover is there's a problem copying a row of data.
  • Some data types still aren't compatible.

dbsync's People

Contributors

benjaminmicucci avatar ctigeek avatar

Watchers

 avatar  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.