Sha256: 0e00a8c5f088de72ac82d986afd479f588c78e92c5900aed429f5bd4f18cda80
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
require 'flydata/command/sync' require 'flydata/source_mysql/command/mysql_command_base' # Command class must be in module Flydata::Command module Flydata module Command class Mysqlbinlog < Sync include MysqlCommandBase def generate_command(dbconf, args) dbconf.delete('tables') dbconf[:custom_option_end] = args.join(' ') dbconf[:command] = 'mysqlbinlog' # --default-character-set=utf8 is not supported dbconf[:no_default_option] = true # ssl is not supported for mysql5.6 or older mysqlbinlog command dbconf.delete('ssl_ca') dbconf.delete('ssl_cipher') dbconf.delete('database') if args.empty? puts <<EOT example: 1. Dump raw binlog flydata mysqlbinlog --raw --read-from-remote-server --result-file "binlog-" mysql-bin-changelog.xxxx 2. Dump decoded binlog data flydata mysqlbinlog -vv --base64-output=decode-row --hexdump --read-from-remote-server --start-position=4 --stop-position=yyyyy mysql-bin-changelog.xxxxx > mysql-bin-changelog.xxxxx EOT return end FlydataCore::Mysql::CommandGenerator::generate_mysql_cmd(dbconf) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
flydata-0.6.6 | lib/flydata/source_mysql/command/mysqlbinlog.rb |
flydata-0.6.5 | lib/flydata/source_mysql/command/mysqlbinlog.rb |
flydata-0.6.4 | lib/flydata/source_mysql/command/mysqlbinlog.rb |