Sha256: 356c4c20f14438ad0f6ee60c47d6d0a79e21051f681aea845aabf00584b84a8d

Contents?: true

Size: 331 Bytes

Versions: 9

Compression:

Stored size: 331 Bytes

Contents

module Arel
  module Middleware
    class ToSqlExecutor < DatabaseExecutor
      private

      def execute_sql(next_arel)
        Arel::Middleware::Result.create(
          data: next_arel.to_sql,
          from: Arel::Middleware::StringResult,
          to: Arel::Middleware::EmptyPGResult,
        )
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
arel_toolkit-0.4.9 lib/arel/middleware/to_sql_executor.rb
arel_toolkit-0.4.8 lib/arel/middleware/to_sql_executor.rb
arel_toolkit-0.4.7 lib/arel/middleware/to_sql_executor.rb
arel_toolkit-0.4.6 lib/arel/middleware/to_sql_executor.rb
arel_toolkit-0.4.5 lib/arel/middleware/to_sql_executor.rb
arel_toolkit-0.4.4 lib/arel/middleware/to_sql_executor.rb
arel_toolkit-0.4.3 lib/arel/middleware/to_sql_executor.rb
arel_toolkit-0.4.2 lib/arel/middleware/to_sql_executor.rb
arel_toolkit-0.4.1 lib/arel/middleware/to_sql_executor.rb