PostgreSQL-Ruby extention: calling Postgres functions

  • Thread starter Alessandro Cipriani
  • Start date
A

Alessandro Cipriani

Hi all,
I'm quite new to Ruby, and I have a question:
I'm using the Postgres-ruby extention to connect to my Postgres db
(require 'postgres' etc)
Now I need to call existing db functions but I don't know how...
the function I want to call is

CREATE OR REPLACE FUNCTION sdr_new.pprocess_insert(pid_process integer,
pid_client integer, pid_entity integer, pppid integer, ppid_process
integer, pnotes character varying, pstatus integer, plast_update
timestamp without time zone, plogin_usuario character varying, pip
character varying)

as you can see it has a lot of parameter as well

Anyone could help me?

Cheers
Alessandro
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,588
Members
45,095
Latest member
EmiliaAlfo

Latest Threads

Top