Re: Relicensed and downloadable (Re: Protocol 3, Execute, maxrows to return, impact?) - Mailing list pgsql-hackers

From Stephen R. van den Berg
Subject Re: Relicensed and downloadable (Re: Protocol 3, Execute, maxrows to return, impact?)
Date
Msg-id 20080729140352.GA22186@cuci.nl
Whole thread Raw
In response to Relicensed and downloadable (Re: Protocol 3, Execute, maxrows to return, impact?)  ("Stephen R. van den Berg" <srb@cuci.nl>)
List 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."


pgsql-hackers by date:

Previous
From: Zdenek Kotala
Date:
Subject: Re: Python 2.5 vs the buildfarm
Next
From: "Heikki Linnakangas"
Date:
Subject: Re: [PATCHES] odd output in restore mode