Class: Flydata::Parser::Mysql::MysqlDumpGenerator

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

Direct Known Subclasses

MysqlDumpGeneratorNoMasterData

Instance Method Summary collapse

Constructor Details

#initialize(conf) ⇒ MysqlDumpGenerator

Returns a new instance of MysqlDumpGenerator.


45
46
47
48
# File 'lib/flydata/parser/mysql/dump_parser.rb', line 45

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

Instance Method Details

#dump(file_path) ⇒ Object


50
51
52
# File 'lib/flydata/parser/mysql/dump_parser.rb', line 50

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