Sha256: cd4a8e889b536c26ed4d36cc13ce17cc7b6d6f64f5291379d89ecfc877c03b73

Contents?: true

Size: 684 Bytes

Versions: 22

Compression:

Stored size: 684 Bytes

Contents

require "bigquery_migration/version"
require "bigquery_migration/error"
require "bigquery_migration/schema"
require "bigquery_migration/logger"
require "bigquery_migration/bigquery_wrapper"

class BigqueryMigration
  def self.logger
    @logger ||= Logger.new(STDOUT)
  end

  def self.logger=(logger)
    @logger = logger
  end

  def initialize(*args)
    @wrapper = BigqueryWrapper.new(*args)
  end

  # Delegate to BigqueryWrapper instance
  BigqueryWrapper.instance_methods(false).each do |name|
    next if method_defined?(name)
    class_eval <<-"EOS", __FILE__, __LINE__ + 1
      def #{name}(*args, &block)
        @wrapper.#{name}(*args, &block)
      end
    EOS
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
bigquery_migration-0.3.2 lib/bigquery_migration.rb
bigquery_migration-0.3.1 lib/bigquery_migration.rb
bigquery_migration-0.3.0 lib/bigquery_migration.rb
bigquery_migration-0.2.2 lib/bigquery_migration.rb
bigquery_migration-0.2.1 lib/bigquery_migration.rb
bigquery_migration-0.2.0 lib/bigquery_migration.rb
bigquery_migration-0.2.0.pre2 lib/bigquery_migration.rb
bigquery_migration-0.2.0.pre1 lib/bigquery_migration.rb
bigquery_migration-0.1.7 lib/bigquery_migration.rb
bigquery_migration-0.1.6 lib/bigquery_migration.rb
bigquery_migration-0.1.5 lib/bigquery_migration.rb
bigquery_migration-0.1.4 lib/bigquery_migration.rb
bigquery_migration-0.1.3 lib/bigquery_migration.rb
bigquery_migration-0.1.2 lib/bigquery_migration.rb
bigquery_migration-0.1.1 lib/bigquery_migration.rb
bigquery_migration-0.1.0 lib/bigquery_migration.rb
bigquery_migration-0.1.0.pre6 lib/bigquery_migration.rb
bigquery_migration-0.1.0.pre5 lib/bigquery_migration.rb
bigquery_migration-0.1.0.pre4 lib/bigquery_migration.rb
bigquery_migration-0.1.0.pre3 lib/bigquery_migration.rb