Sha256: 1a17000c19130ba746b3a4a3212feafc03ed606e8af581b43e1c5889fc866114
Contents?: true
Size: 670 Bytes
Versions: 2
Compression:
Stored size: 670 Bytes
Contents
# frozen_string_literal: true require 'pry' require 'pg_export/container' class PgExport class InitializationError < StandardError; end class << self def interactive PgExport::Container.start(:interactive) new(transaction: PgExport::Container['transactions.import_dump_interactively']) end def plain PgExport::Container.start(:plain) new(transaction: PgExport::Container['transactions.export_dump']) end end def initialize(transaction:) @transaction = transaction end def call(database_name, &block) transaction.call(database_name: database_name, &block) end private attr_reader :transaction end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pg_export-0.7.1 | lib/pg_export.rb |
pg_export-0.7.0 | lib/pg_export.rb |