go-sql-driver/mysql

Replication protocol

Open

#212 创建于 2014年2月6日

在 GitHub 查看
 (7 评论) (0 反应) (0 负责人)Go (9,946 star) (1,789 fork)batch import
enhancementhelp wanted

描述

I found a fork that implements the replication protocol.

I'm not sure how complete it is. Unfortunately it works off a version of the MySQL driver that is at least a year out of date. My knowledge of the MySQL wire protocol is lacking. I've noticed the writeCommandPacket is quite a bit different.

I'm interested in this because I need a way to update ElasticSearch in real time. Using the replication protocol is attractive because I can turn on/off the syncing and have it pick up where it left off. The current solutions poll MySQL for data, and are more or less straight copies. Also my target (search optimized) data for ElasticSearch is quite a bit different than my MySQL source table.

Would there be any interest in having this feature?

贡献者指南

Replication protocol · go-sql-driver/mysql#212 | Good First Issue