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