Module: Flydata::Parser::Mysql::MysqlAccessible

Included in:
DatabaseSizeCheck
Defined in:
lib/flydata/parser/mysql/dump_parser.rb

Instance Method Summary collapse

Instance Method Details

#mysql_cli(conf = nil) ⇒ Object


15
16
17
18
19
# File 'lib/flydata/parser/mysql/dump_parser.rb', line 15

def mysql_cli(conf = nil)
  mysql_conf(conf) if conf
  return FlydataMysqlClient.new(@mysql_conf) if @mysql_conf
  nil
end

#mysql_conf(conf) ⇒ Object


11
12
13
# File 'lib/flydata/parser/mysql/dump_parser.rb', line 11

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