lib/sequel_core/adapters/postgres.rb
def execute(sql, opts={}, &block)
        return execute_prepared_statement(sql, opts, &block) if Symbol === sql
        begin
          log_info(sql, opts[:arguments])
          synchronize(opts[:server]){|conn| conn.execute(sql, opts[:arguments], &block)}
        rescue => e
          log_info(e.message)
          raise_error(e, :classes=>CONVERTED_EXCEPTIONS)
        end
      end
# Execute the given SQL with the given args on an available connection.
Execute the given SQL with the given args on an available connection.
Execute the given SQL with the given args on an available connection .
def execute(sql, opts={}, &block)
        return execute_prepared_statement(sql, opts, &block) if Symbol === sql
        begin
          log_info(sql, opts[:arguments])
          synchronize(opts[:server]){|conn| conn.execute(sql, opts[:arguments], &block)}
        rescue => e
          log_info(e.message)
          raise_error(e, :classes=>CONVERTED_EXCEPTIONS)
        end
      end
def execute ( sql , opts = { } , & block ) return execute_prepared_statement ( sql , opts , & block ) if Symbol === sql begin log_info ( sql , opts [ :arguments ] ) synchronize ( opts [ :server ] ) { | conn | conn . execute ( sql , opts [ :arguments ] , & block ) } rescue => e log_info ( e . message ) raise_error ( e , :classes => CONVERTED_EXCEPTIONS ) end end
Execute the given SQL with the given args on an available connection.
Execute the given SQL with the given args on an available connection .
sql
opts
block