Sha256: e1936d397c909f911d0f6aded797fc14b17a88b5d9a7200c55d03a6e3778882c

Contents?: true

Size: 390 Bytes

Versions: 14

Compression:

Stored size: 390 Bytes

Contents

# frozen_string_literal: true

module ROM
  module SQL
    module Migration
      # @api private
      class InlineRunner < BasicObject
        extend Initializer

        param :connection

        def migration
          yield(connection)
        end

        def method_missing(m, *args, &block)
          connection.public_send(m, *args, &block)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rom-sql-3.6.5 lib/rom/sql/migration/inline_runner.rb
rom-sql-3.6.4 lib/rom/sql/migration/inline_runner.rb
rom-sql-3.6.3 lib/rom/sql/migration/inline_runner.rb
rom-sql-3.6.2 lib/rom/sql/migration/inline_runner.rb
rom-sql-3.6.1 lib/rom/sql/migration/inline_runner.rb
rom-sql-3.6.0 lib/rom/sql/migration/inline_runner.rb
rom-sql-4.0.0.alpha1 lib/rom/sql/migration/inline_runner.rb
rom-sql-3.5.0 lib/rom/sql/migration/inline_runner.rb
rom-sql-3.4.0 lib/rom/sql/migration/inline_runner.rb
rom-sql-3.3.3 lib/rom/sql/migration/inline_runner.rb
rom-sql-3.3.2 lib/rom/sql/migration/inline_runner.rb
rom-sql-3.3.1 lib/rom/sql/migration/inline_runner.rb
rom-sql-3.3.0 lib/rom/sql/migration/inline_runner.rb
rom-sql-3.2.0 lib/rom/sql/migration/inline_runner.rb