Sha256: 887c4e02ff12633abb34c1ae8b22a859cc5ce04cc0779666f92e32bb6cb34ca9
Contents?: true
Size: 552 Bytes
Versions: 2
Compression:
Stored size: 552 Bytes
Contents
# frozen_string_literal: true module UffDbLoader module Postgresql def self.dump_extension "dump" end def self.dump_command_template "ssh %user%@%host% \"docker exec -i %app_name%_%environment%_db sh -c 'exec pg_dump --username \\$POSTGRES_USER --clean --no-owner --no-acl --format=c %database%'\" > %target%" end def self.restore_command(database_name, result_file_path) "pg_restore --username postgres --clean --if-exists --no-owner --no-acl --dbname #{database_name} #{result_file_path}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
uff_db_loader-1.0.1 | lib/uff_db_loader/postgresql.rb |
uff_db_loader-1.0.0 | lib/uff_db_loader/postgresql.rb |