class Dumpman::Adapters::Pg
Public Instance Methods
create_cmd()
click to toggle source
# File lib/dumpman/adapters/pg.rb, line 16 def create_cmd "PGPASSWORD='#{password}' createdb -h #{host} --username '#{username}' #{database}" end
drop_cmd()
click to toggle source
# File lib/dumpman/adapters/pg.rb, line 12 def drop_cmd "PGPASSWORD='#{password}' dropdb -h #{host} --username '#{username}' #{database}" end
dump_cmd()
click to toggle source
# File lib/dumpman/adapters/pg.rb, line 4 def dump_cmd "PGPASSWORD='#{password}' pg_dump -h #{host} --username '#{username}' --verbose --clean --no-owner --no-acl -Z4 -Fc #{database} > '#{Dumpman.dump_file}'" end
restore_cmd()
click to toggle source
# File lib/dumpman/adapters/pg.rb, line 8 def restore_cmd "PGPASSWORD='#{password}' pg_restore -h #{host} --username '#{username}' --verbose --clean --no-owner --no-acl -j 4 -d #{database} '#{Dumpman.dump_file}'" end