Sha256: cd858ec0072ad7c7eea491864d68acd3af56efc30f98d8069493a49155fb2f53

Contents?: true

Size: 519 Bytes

Versions: 1

Compression:

Stored size: 519 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

        private

        def method_missing(m, ...)
          connection.public_send(m, ...)
        end

        def respond_to_missing?(meth, include_private = false)
          connection.respond_to?(meth, include_private)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rom-sql-3.7.0 lib/rom/sql/migration/inline_runner.rb