Sha256: def57c8373c59eacef4c87bebdd0fdde1257d2c5c902c539bcf54732e709e01a

Contents?: true

Size: 359 Bytes

Versions: 12

Compression:

Stored size: 359 Bytes

Contents

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

12 entries across 12 versions & 1 rubygems

Version Path
rom-sql-3.1.0 lib/rom/sql/migration/inline_runner.rb
rom-sql-3.0.1 lib/rom/sql/migration/inline_runner.rb
rom-sql-3.0.0 lib/rom/sql/migration/inline_runner.rb
rom-sql-2.5.0 lib/rom/sql/migration/inline_runner.rb
rom-sql-2.4.0 lib/rom/sql/migration/inline_runner.rb
rom-sql-2.3.0 lib/rom/sql/migration/inline_runner.rb
rom-sql-2.2.1 lib/rom/sql/migration/inline_runner.rb
rom-sql-2.2.0 lib/rom/sql/migration/inline_runner.rb
rom-sql-2.1.0 lib/rom/sql/migration/inline_runner.rb
rom-sql-2.0.0 lib/rom/sql/migration/inline_runner.rb
rom-sql-2.0.0.rc1 lib/rom/sql/migration/inline_runner.rb
rom-sql-2.0.0.beta3 lib/rom/sql/migration/inline_runner.rb