Sha256: 9c057128bb20f1d68ff8d66f8ca0b57cde544472401562b3e36217bb3d87f146

Contents?: true

Size: 515 Bytes

Versions: 13

Compression:

Stored size: 515 Bytes

Contents

require 'sequel'
Sequel.require 'adapters/shared/postgres'

module Sequel::Postgres::DatasetMethods

  def insert_clause_methods
    remove_returning_from INSERT_CLAUSE_METHODS, :insert
  end



  def update_clause_methods
    remove_returning_from UPDATE_CLAUSE_METHODS, :update
  end



  def delete_clause_methods
    remove_returning_from DELETE_CLAUSE_METHODS, :delete
  end



  private

  def remove_returning_from(methods, type)
    methods.reject { |method| method == :"#{type}_returning_sql" }
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cranium-0.8.1 lib/cranium/extensions/sequel_greenplum.rb
cranium-0.8 lib/cranium/extensions/sequel_greenplum.rb
cranium-0.7 lib/cranium/extensions/sequel_greenplum.rb
cranium-0.6.1 lib/cranium/extensions/sequel_greenplum.rb
cranium-0.5 lib/cranium/extensions/sequel_greenplum.rb
cranium-0.4.3 lib/cranium/extensions/sequel_greenplum.rb
cranium-0.4.2 lib/cranium/extensions/sequel_greenplum.rb
cranium-0.4.1 lib/cranium/extensions/sequel_greenplum.rb
cranium-0.4 lib/cranium/extensions/sequel_greenplum.rb
cranium-0.3.1 lib/cranium/extensions/sequel_greenplum.rb
cranium-0.3.0 lib/cranium/extensions/sequel_greenplum.rb
cranium-0.2.1 lib/cranium/extensions/sequel_greenplum.rb
cranium-0.2.0 lib/cranium/extensions/sequel_greenplum.rb