Sha256: f5acdf761ff62f03c9d57d36d15cb86e536b5667dc41412b0f0f6a681a3df283
Contents?: true
Size: 758 Bytes
Versions: 2
Compression:
Stored size: 758 Bytes
Contents
require 'flydata/parser_provider' require_relative 'binlog_query_handler' module Mysql class AlterTableQueryHandler < BinlogQueryHandler PATTERN = /^alter table/ def initialize(context) super end def pattern PATTERN end def process(record, normalized_query) $log.debug("Alter table is not supported now. query:'#{record['query']}'") #emit_record(:alter_table, record, increment_table_rev: true) do # result = ParserProvider.parser(:mysql, :mysql_alter_table).new.parse(record['query']) # if result.nil? # $log.warn("Recieved not supported alter table query. query:'#{record['query']}'") # nil # else # result.tree # end #end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flydata-0.1.12 | lib/flydata/fluent-plugins/mysql/alter_table_query_handler.rb |
flydata-0.1.11 | lib/flydata/fluent-plugins/mysql/alter_table_query_handler.rb |