go-sql-driver/mysql

Replication protocol

Open

#212 opened on 2014年2月6日

GitHub で見る
 (7 comments) (0 reactions) (0 assignees)Go (1,789 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (9,946 stars)
PR merge metrics
 (平均マージ 5h 59m) (30d で 4 merged PRs)

説明

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?

コントリビューターガイド