Method: Dbcp::MysqlDatabase#export_command

Defined in:
lib/dbcp/databases/mysql_database.rb

#export_command(snapshot_file) ⇒ Object



3
4
5
# File 'lib/dbcp/databases/mysql_database.rb', line 3

def export_command(snapshot_file)
  %W[mysqldump #{build_socket_or_host} #{build_port} --user=#{username} --password=#{password} --add-drop-table --extended-insert --result-file=#{snapshot_file.path} #{database}].reject(&:empty?).shelljoin
end