Class: Flydata::SourceMysql::Parser::MysqlDumpGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/flydata/source_mysql/parser/dump_parser.rb

Direct Known Subclasses

MysqlDumpGeneratorNoMasterData

Instance Method Summary collapse

Constructor Details

#initialize(conf) ⇒ MysqlDumpGenerator

Returns a new instance of MysqlDumpGenerator.


24
25
26
27
# File 'lib/flydata/source_mysql/parser/dump_parser.rb', line 24

def initialize(conf)
  @conf = conf
  @db_opts = FlydataCore::Mysql::Config.build_mysql_db_opts(conf)
end

Instance Method Details

#dump(file_path) ⇒ Object


29
30
31
# File 'lib/flydata/source_mysql/parser/dump_parser.rb', line 29

def dump(file_path)
  raise "subclass must implement the method"
end