Sha256: 2455602f03d215b70153b0b102dbffc3d0ee9c99bd4bb19ed192983c1431fb70

Contents?: true

Size: 607 Bytes

Versions: 10

Compression:

Stored size: 607 Bytes

Contents

# rubocop:disable Naming/MethodName
# rubocop:disable Naming/UncommunicativeMethodParamName

module Arel
  module Visitors
    class Dot
      def visit_Arel_Nodes_Dealocate(o)
        visit_edge o, 'name'
      end
    end

    class ToSql
      def visit_Arel_Nodes_Dealocate(o, collector)
        collector << 'DEALLOCATE ' << (o.name || 'ALL')
      end
    end
  end

  module Nodes
    class Dealocate < Node
      attr_reader :name

      def initialize(name)
        @name = name
      end
    end
  end
end

# rubocop:enable Naming/MethodName
# rubocop:enable Naming/UncommunicativeMethodParamName

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
arel_toolkit-0.4.9 lib/arel/extensions/dealocate.rb
arel_toolkit-0.4.8 lib/arel/extensions/dealocate.rb
arel_toolkit-0.4.7 lib/arel/extensions/dealocate.rb
arel_toolkit-0.4.6 lib/arel/extensions/dealocate.rb
arel_toolkit-0.4.5 lib/arel/extensions/dealocate.rb
arel_toolkit-0.4.4 lib/arel/extensions/dealocate.rb
arel_toolkit-0.4.3 lib/arel/extensions/dealocate.rb
arel_toolkit-0.4.2 lib/arel/extensions/dealocate.rb
arel_toolkit-0.4.1 lib/arel/extensions/dealocate.rb
arel_toolkit-0.4.0 lib/arel/extensions/dealocate.rb