Sha256: dada2f24cb0d32fc10773a836ab21826b6d9a46fbbc1de2013968888da3f62f9
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
module Dbcp class MysqlDatabase < Database def export_command(snapshot_file) %W[mysqldump #{socket_or_host} --user=#{username} --password=#{password} --add-drop-table --extended-insert --result-file=#{snapshot_file.path} #{database}].shelljoin end def import_command(snapshot_file) %W[mysql #{socket_or_host} --user=#{username} --password=#{password} #{database}].shelljoin + ' < ' + snapshot_file.path.shellescape end private def socket_or_host if socket "--socket=#{socket}" else "--host=#{host}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dbcp-0.0.1 | lib/dbcp/databases/mysql_database.rb |