module Sequel::Postgres::DatasetMethods

Public Instance Methods

delete_clause_methods() click to toggle source
# File lib/cranium/extensions/sequel_greenplum.rb, line 18
def delete_clause_methods
  remove_returning_from DELETE_CLAUSE_METHODS, :delete
end
insert_clause_methods() click to toggle source
# File lib/cranium/extensions/sequel_greenplum.rb, line 6
def insert_clause_methods
  remove_returning_from INSERT_CLAUSE_METHODS, :insert
end
update_clause_methods() click to toggle source
# File lib/cranium/extensions/sequel_greenplum.rb, line 12
def update_clause_methods
  remove_returning_from UPDATE_CLAUSE_METHODS, :update
end

Private Instance Methods

remove_returning_from(methods, type) click to toggle source
# File lib/cranium/extensions/sequel_greenplum.rb, line 26
def remove_returning_from(methods, type)
  methods.reject { |method| method == :"#{type}_returning_sql" }
end