Sha256: 6d882e24879e74960b662d8c9427a2f41051c3454f3a0d5197d07d724e6e699e

Contents?: true

Size: 397 Bytes

Versions: 2

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

require 'pg_export/container'
require 'pg_export/import'

class PgExport
  class InitializationError < StandardError; end

  include Import['transaction']

  def self.boot
    PgExport::Container.start(:main)
    new
  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-1.0.0.rc5 lib/pg_export.rb
pg_export-1.0.0.rc4 lib/pg_export.rb