Coder Social home page Coder Social logo

canoo's Introduction

canoo

WIP project for creating a mysql replication canal to items availability

Based on mysql replication tools and the brilliant https://github.com/siddontang/go-mysql and the BoltDB

Requires mysqldump tool for initial sync

Usage of ./canoo:

-host string
    MySQL host (default "127.0.0.1")
-port int
    MySQL port (default 3306)
-user string
    MySQL user, must have replication privilege (default "root")
-password string
    MySQL password
-server-id int
    Unique Server ID (default 101)
-data-dir string
    Path to store data, like master.info (default "./tmp")
-dbs string
    dump databases, seperated by comma (default "test")
-flavor string
    Flavor: mysql or mariadb (default "mysql")
-ignore_tables string
    ignore tables, must be database.table format, separated by comma
-mysqldump string
    mysqldump execution path (default "mysqldump")
-table_db string
    database for dump tables (default "test")
-tables string
    dump tables, seperated by comma, will overwrite dbs
-http string
    TCP port to listen on for simple API (default ":8009")

Example:

./canoo -user=dude -password=secret -table_db=mydb -tables=items,issues,reserves

starts a canoo between mysql on port 3306 on localhost, dumping the tables items,issues,reserves and then starts listening for live events on said tables.

Also starts a HTTP listener on port 8080 for a simple API to lookup items.

canoo's People

Contributors

bensinober avatar

Stargazers

 avatar

Watchers

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