Sha256: 6a225cde423e9ba0e09db3d113f6daa113de4ad4da0316c3b72c958aa112985c

Contents?: true

Size: 400 Bytes

Versions: 15

Compression:

Stored size: 400 Bytes

Contents

module Arel
  class DeleteManager < Arel::TreeManager
    def initialize
      super
      @ast = Nodes::DeleteStatement.new
      @ctx = @ast
    end

    def from relation
      @ast.relation = relation
      self
    end

    def take limit
      @ast.limit = Nodes::Limit.new(Nodes.build_quoted(limit)) if limit
      self
    end

    def wheres= list
      @ast.wheres = list
    end
  end
end

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/arel-7.1.4/lib/arel/delete_manager.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/arel-7.1.4/lib/arel/delete_manager.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/arel-7.1.4/lib/arel/delete_manager.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/arel-7.1.4/lib/arel/delete_manager.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/arel-7.1.4/lib/arel/delete_manager.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/arel-7.1.4/lib/arel/delete_manager.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/arel-7.1.4/lib/arel/delete_manager.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/arel-7.1.4/lib/arel/delete_manager.rb
abaci-0.3.0 vendor/bundle/gems/arel-7.1.0/lib/arel/delete_manager.rb
arel-7.1.4 lib/arel/delete_manager.rb
arel-7.1.3 lib/arel/delete_manager.rb
arel-7.1.2 lib/arel/delete_manager.rb
arel-7.1.1 lib/arel/delete_manager.rb
arel-7.1.0 lib/arel/delete_manager.rb
arel-7.0.0 lib/arel/delete_manager.rb