Re: Relicensed and downloadable (Re: Protocol 3, Execute, maxrows to return, impact?)

From: "Stephen R(dot) van den Berg" <srb(at)cuci(dot)nl>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Relicensed and downloadable (Re: Protocol 3, Execute, maxrows to return, impact?)
Date: 2008-07-29 14:03:52
Message-ID: 20080729140352.GA22186@cuci.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Stephen R. van den Berg wrote:
>The fetch_row() function actually returns an array for each row, where
>the individual columns are already parsed and converted into the native
>Pike formats for handling.

A typical (low level) usage sequence in Pike looks like this:

object db;
object q;
array row;

db = Sql.pgsql("host","database","user","password");

q = db->query("SELECT * FROM a");

while(row = q->fetch_row())
write("Processing row %O\n",row);

q = db->query("SELECT * FROM b");

etc.
--
Sincerely,
Stephen R. van den Berg.

"People who think they know everything are annoying to those of us who do."

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2008-07-29 14:27:23 Re: [PATCHES] odd output in restore mode
Previous Message Zdenek Kotala 2008-07-29 13:26:43 Re: Python 2.5 vs the buildfarm